From d7bcfe6a1a4fbeb85b70beb8f93896a0955c3147 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 27 Apr 2021 17:56:44 -0400 Subject: [PATCH 01/42] changing ContainerRepositoryClient to ContainerRepository --- .../azure/containerregistry/__init__.py | 4 +- .../azure/containerregistry/_base_client.py | 2 +- .../_container_registry_client.py | 8 +- .../_container_repository_client.py | 420 ++++++++--------- .../containerregistry/_exchange_client.py | 5 +- .../azure/containerregistry/_models.py | 13 +- .../azure/containerregistry/aio/__init__.py | 4 +- .../aio/_async_base_client.py | 2 +- .../aio/_async_container_registry_client.py | 8 +- .../aio/_async_container_repository_client.py | 18 +- .../aio/_async_exchange_client.py | 3 +- .../sample_create_client_async.py | 6 +- .../samples/sample_create_client.py | 6 +- .../tests/asynctestcase.py | 6 +- ...repository_client.test_get_properties.yaml | 55 +-- ...repository_client.test_set_properties.yaml | 363 +++++++++++++++ ...tory_client_async.test_get_properties.yaml | 89 ++++ ...tory_client_async.test_set_properties.yaml | 275 +++++++++++ .../test_container_registry_client_async.py | 1 - .../tests/test_container_repository_client.py | 429 +++++++++--------- .../test_container_repository_client_async.py | 127 ++++-- .../azure-containerregistry/tests/testcase.py | 8 +- 22 files changed, 1317 insertions(+), 535 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index 580f112f26b8..396e3d16775b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from ._container_registry_client import ContainerRegistryClient -from ._container_repository_client import ContainerRepositoryClient +from ._container_repository_client import ContainerRepository from ._models import ( ContentPermissions, DeletedRepositoryResult, @@ -23,7 +23,7 @@ __all__ = [ "ContainerRegistryClient", - "ContainerRepositoryClient", + "ContainerRepository", "ContentPermissions", "DeletedRepositoryResult", "RegistryArtifactOrderBy", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py index c8fbe64eeb54..d302c11397fe 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py @@ -23,7 +23,7 @@ class ContainerRegistryApiVersion(str, Enum): class ContainerRegistryBaseClient(object): - """Base class for ContainerRegistryClient and ContainerRepositoryClient + """Base class for ContainerRegistryClient and ContainerRepository :param str endpoint: Azure Container Registry endpoint :param credential: AAD Token for authenticating requests with Azure diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index 67456d6f95fb..307181a23f45 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -16,7 +16,7 @@ from azure.core.tracing.decorator import distributed_trace from ._base_client import ContainerRegistryBaseClient, TransportWrapper -from ._container_repository_client import ContainerRepositoryClient +from ._container_repository_client import ContainerRepository from ._generated.models import AcrErrors from ._helpers import _parse_next_link from ._models import DeletedRepositoryResult @@ -166,17 +166,17 @@ def get_next(next_link=None): @distributed_trace def get_repository_client(self, repository, **kwargs): - # type: (str, Dict[str, Any]) -> ContainerRepositoryClient + # type: (str, Dict[str, Any]) -> ContainerRepository """Get a repository client :param str repository: The repository to create a client for - :returns: :class:`~azure.containerregistry.ContainerRepositoryClient` + :returns: :class:`~azure.containerregistry.ContainerRepository` :raises: None """ _pipeline = Pipeline( transport=TransportWrapper(self._client._client._pipeline._transport), # pylint: disable=protected-access policies=self._client._client._pipeline._impl_policies, # pylint: disable=protected-access ) - return ContainerRepositoryClient( + return ContainerRepository( self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py index 1f4cb03685dc..cf426e00cf14 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py @@ -31,10 +31,10 @@ from ._models import ContentPermissions -class ContainerRepositoryClient(ContainerRegistryBaseClient): +class ContainerRepository(ContainerRegistryBaseClient): def __init__(self, endpoint, repository, credential, **kwargs): # type: (str, str, TokenCredential, Dict[str, Any]) -> None - """Create a ContainerRepositoryClient from an endpoint, repository name, and credential + """Create a ContainerRepository from an endpoint, repository name, and credential :param endpoint: An ACR endpoint :type endpoint: str @@ -49,7 +49,7 @@ def __init__(self, endpoint, repository, credential, **kwargs): endpoint = "https://" + endpoint self._endpoint = endpoint self.repository = repository - super(ContainerRepositoryClient, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) + super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) def _get_digest_from_tag(self, tag): # type: (str) -> str @@ -69,28 +69,28 @@ def delete(self, **kwargs): self._client.container_registry.delete_repository(self.repository, **kwargs) ) - @distributed_trace - def delete_registry_artifact(self, digest, **kwargs): - # type: (str, Dict[str, Any]) -> None - """Delete a registry artifact - - :param digest: The digest of the artifact to be deleted - :type digest: str - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - @distributed_trace - def delete_tag(self, tag, **kwargs): - # type: (str, Dict[str, Any]) -> None - """Delete a tag from a repository - - :param str tag: The tag to be deleted - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - self._client.container_registry.delete_tag(self.repository, tag, **kwargs) + # @distributed_trace + # def delete_registry_artifact(self, digest, **kwargs): + # # type: (str, Dict[str, Any]) -> None + # """Delete a registry artifact + + # :param digest: The digest of the artifact to be deleted + # :type digest: str + # :returns: None + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) + + # @distributed_trace + # def delete_tag(self, tag, **kwargs): + # # type: (str, Dict[str, Any]) -> None + # """Delete a tag from a repository + + # :param str tag: The tag to be deleted + # :returns: None + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # self._client.container_registry.delete_tag(self.repository, tag, **kwargs) @distributed_trace def get_properties(self, **kwargs): @@ -104,38 +104,38 @@ def get_properties(self, **kwargs): self._client.container_registry.get_properties(self.repository, **kwargs) ) - @distributed_trace - def get_registry_artifact_properties(self, tag_or_digest, **kwargs): - # type: (str, Dict[str, Any]) -> RegistryArtifactProperties - """Get the properties of a registry artifact - - :param tag_or_digest: The tag/digest of a registry artifact - :type tag_or_digest: str - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - if _is_tag(tag_or_digest): - tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_manifest_properties( - self.repository, tag_or_digest, **kwargs - ) - ) - - @distributed_trace - def get_tag_properties(self, tag, **kwargs): - # type: (str, Dict[str, Any]) -> TagProperties - """Get the properties for a tag - - :param tag: The tag to get properties for - :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - ) + # @distributed_trace + # def get_registry_artifact_properties(self, tag_or_digest, **kwargs): + # # type: (str, Dict[str, Any]) -> RegistryArtifactProperties + # """Get the properties of a registry artifact + + # :param tag_or_digest: The tag/digest of a registry artifact + # :type tag_or_digest: str + # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # if _is_tag(tag_or_digest): + # tag_or_digest = self._get_digest_from_tag(tag_or_digest) + + # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # self._client.container_registry.get_manifest_properties( + # self.repository, tag_or_digest, **kwargs + # ) + # ) + + # @distributed_trace + # def get_tag_properties(self, tag, **kwargs): + # # type: (str, Dict[str, Any]) -> TagProperties + # """Get the properties for a tag + + # :param tag: The tag to get properties for + # :type tag: str + # :returns: :class:`~azure.containerregistry.TagProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return TagProperties._from_generated( # pylint: disable=protected-access + # self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) + # ) @distributed_trace def list_registry_artifacts(self, **kwargs): @@ -255,156 +255,168 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - @distributed_trace - def list_tags(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[TagProperties] - """List the tags for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - :rtype: :class:`~azure.core.paging.ItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - digest = kwargs.pop("digest", None) - cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_tags" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - if digest is not None: - query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - "digest", digest, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - def extract_data(pipeline_response): - deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - list_of_elem = deserialized.tag_attribute_bases - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return ItemPaged(get_next, extract_data) + # @distributed_trace + # def list_tags(self, **kwargs): + # # type: (Dict[str, Any]) -> ItemPaged[TagProperties] + # """List the tags for a repository + + # :keyword last: Query parameter for the last item in the previous call. Ensuing + # call will return values after last lexically + # :paramtype last: str + # :keyword order_by: Query parameter for ordering by time ascending or descending + # :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` + # :keyword results_per_page: Number of repositories to return per page + # :paramtype results_per_page: int + # :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + # :rtype: :class:`~azure.core.paging.ItemPaged` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # name = self.repository + # last = kwargs.pop("last", None) + # n = kwargs.pop("results_per_page", None) + # orderby = kwargs.pop("order_by", None) + # digest = kwargs.pop("digest", None) + # cls = kwargs.pop( + # "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + # ) + + # error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + # error_map.update(kwargs.pop("error_map", {})) + # accept = "application/json" + + # def prepare_request(next_link=None): + # # Construct headers + # header_parameters = {} # type: Dict[str, Any] + # header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access + # "accept", accept, "str" + # ) + + # if not next_link: + # # Construct URL + # url = "/acr/v1/{name}/_tags" + # path_format_arguments = { + # "url": self._client._serialize.url( # pylint: disable=protected-access + # "self._config.url", + # self._client._config.url, # pylint: disable=protected-access + # "str", + # skip_quote=True, + # ), + # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + # } + # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # # Construct parameters + # query_parameters = {} # type: Dict[str, Any] + # if last is not None: + # query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access + # "last", last, "str" + # ) + # if n is not None: + # query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access + # "n", n, "int" + # ) + # if orderby is not None: + # query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access + # "orderby", orderby, "str" + # ) + # if digest is not None: + # query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access + # "digest", digest, "str" + # ) + + # request = self._client._client.get( # pylint: disable=protected-access + # url, query_parameters, header_parameters + # ) + # else: + # url = next_link + # query_parameters = {} # type: Dict[str, Any] + # path_format_arguments = { + # "url": self._client._serialize.url( # pylint: disable=protected-access + # "self._client._config.url", + # self._client._config.url, # pylint: disable=protected-access + # "str", + # skip_quote=True, + # ), + # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + # } + # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # request = self._client._client.get( # pylint: disable=protected-access + # url, query_parameters, header_parameters + # ) + # return request + + # def extract_data(pipeline_response): + # deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access + # list_of_elem = deserialized.tag_attribute_bases + # if cls: + # list_of_elem = cls(list_of_elem) + # link = None + # if "Link" in pipeline_response.http_response.headers.keys(): + # link = _parse_next_link(pipeline_response.http_response.headers["Link"]) + # return link, iter(list_of_elem) + + # def get_next(next_link=None): + # request = prepare_request(next_link) + + # pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access + # request, stream=False, **kwargs + # ) + # response = pipeline_response.http_response + + # if response.status_code not in [200]: + # error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access + # AcrErrors, response + # ) + # map_error(status_code=response.status_code, response=response, error_map=error_map) + # raise HttpResponseError(response=response, model=error) + + # return pipeline_response + + # return ItemPaged(get_next, extract_data) + + # @distributed_trace + # def set_manifest_properties(self, digest, permissions, **kwargs): + # # type: (str, ContentPermissions, Dict[str, Any]) -> RegistryArtifactProperties + # """Set the properties for a manifest + + # :param digest: Digest of a manifest + # :type digest: str + # :param permissions: The property's values to be set + # :type permissions: ContentPermissions + # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # self._client.container_registry.update_manifest_properties( + # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + # ) + # ) + + # @distributed_trace + # def set_tag_properties(self, tag, permissions, **kwargs): + # # type: (str, ContentPermissions, Dict[str, Any]) -> TagProperties + # """Set the properties for a tag + + # :param tag: Tag to set properties for + # :type tag: str + # :param permissions: The property's values to be set + # :type permissions: ContentPermissions + # :returns: :class:`~azure.containerregistry.TagProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return TagProperties._from_generated( # pylint: disable=protected-access + # self._client.container_registry.update_tag_attributes( + # self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + # ) + # ) @distributed_trace - def set_manifest_properties(self, digest, permissions, **kwargs): - # type: (str, ContentPermissions, Dict[str, Any]) -> RegistryArtifactProperties - """Set the properties for a manifest - - :param digest: Digest of a manifest - :type digest: str - :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.update_manifest_properties( - self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) + def set_properties(self, properties, **kwargs): + # type: (RepositoryProperties, Dict[str, Any]) -> RepositoryProperties + """Set the properties of a repository - @distributed_trace - def set_tag_properties(self, tag, permissions, **kwargs): - # type: (str, ContentPermissions, Dict[str, Any]) -> TagProperties - """Set the properties for a tag - - :param tag: Tag to set properties for - :type tag: str - :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.TagProperties` + :returns: :class:`~azure.containerregistry.RepositoryProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - return TagProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.update_tag_attributes( - self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) + return RepositoryProperties._from_generated( # pylint: disable=protected-access + self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py index 5d2710c291af..95f491749fa8 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py @@ -64,13 +64,14 @@ def __init__(self, endpoint, credential, **kwargs): def get_acr_access_token(self, challenge, **kwargs): # type: (str, Dict[str, Any]) -> str parsed_challenge = _parse_challenge(challenge) - refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) + # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) # TODO: This is interfering with recordings + refresh_token = self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) return self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs ) def get_refresh_token(self, service, **kwargs): - # type: (str, **Any) -> str + # type: (str, Dict[str, Any]) -> str if not self._refresh_token or time.time() - self._last_refresh_time > 300: self._refresh_token = self.exchange_aad_token_for_refresh_token(service, **kwargs) self._last_refresh_time = time.time() diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index b5ceece84439..ba8333511e06 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -7,10 +7,10 @@ from enum import Enum from typing import TYPE_CHECKING from ._generated.models import ContentProperties +from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties if TYPE_CHECKING: from ._generated.models import ManifestAttributesBase - from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties from ._generated.models import ArtifactTagProperties as GeneratedTagProperties @@ -152,6 +152,17 @@ def _from_generated(cls, generated): registry=generated.additional_properties.get("registry", None), ) + def _to_generated(self): + # type: () -> GeneratedRepositoryProperties + return GeneratedRepositoryProperties( + name=self.name, + created_on=self.created_on, + last_updated_on=self.last_updated_on, + manifest_count=self.manifest_count, + tag_count=self.tag_count, + writeable_propertie=self.content_permissions._to_generated() + ) + class RegistryArtifactOrderBy(str, Enum): """Enum for ordering registry artifacts""" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py index 7ea2cd7e2883..72f908b64611 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py @@ -7,9 +7,9 @@ # -------------------------------------------------------------------------- from ._async_container_registry_client import ContainerRegistryClient -from ._async_container_repository_client import ContainerRepositoryClient +from ._async_container_repository_client import ContainerRepository __all__ = [ "ContainerRegistryClient", - "ContainerRepositoryClient", + "ContainerRepository", ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py index 19377c31105d..5362fe3eb86b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py @@ -22,7 +22,7 @@ class ContainerRegistryApiVersion(str, Enum): class ContainerRegistryBaseClient(object): - """Base class for ContainerRegistryClient and ContainerRepositoryClient + """Base class for ContainerRegistryClient and ContainerRepository :param endpoint: Azure Container Registry endpoint :type endpoint: str diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 9e6fa68e96fb..c0604d48e3f9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -18,7 +18,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async from ._async_base_client import ContainerRegistryBaseClient, AsyncTransportWrapper -from ._async_container_repository_client import ContainerRepositoryClient +from ._async_container_repository_client import ContainerRepository from .._generated.models import AcrErrors from .._helpers import _parse_next_link from .._models import RepositoryProperties, DeletedRepositoryResult @@ -162,12 +162,12 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> ContainerRepositoryClient: + def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> ContainerRepository: """Get a repository client :param repository: The repository to create a client for :type repository: str - :returns: :class:`~azure.containerregistry.aio.ContainerRepositoryClient` + :returns: :class:`~azure.containerregistry.aio.ContainerRepository` """ _pipeline = AsyncPipeline( transport=AsyncTransportWrapper( @@ -175,6 +175,6 @@ def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> Co ), policies=self._client._client._pipeline._impl_policies, # pylint: disable=protected-access ) - return ContainerRepositoryClient( + return ContainerRepository( self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py index 67a4f6d66551..efa6fabac4ce 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py @@ -31,11 +31,11 @@ from azure.core.credentials_async import AsyncTokenCredential -class ContainerRepositoryClient(ContainerRegistryBaseClient): +class ContainerRepository(ContainerRegistryBaseClient): def __init__( self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any] ) -> None: - """Create a ContainerRepositoryClient from an endpoint, repository name, and credential + """Create a ContainerRepository from an endpoint, repository name, and credential :param endpoint: An ACR endpoint :type endpoint: str @@ -51,7 +51,7 @@ def __init__( self._endpoint = endpoint self._credential = credential self.repository = repository - super(ContainerRepositoryClient, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) + super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) async def _get_digest_from_tag(self, tag: str) -> None: tag_props = await self.get_tag_properties(tag) @@ -405,3 +405,15 @@ async def set_tag_properties( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ) ) + + @distributed_trace_async + async def set_properties(self, properties, **kwargs): + # type: (RepositoryProperties, Dict[str, Any]) -> RepositoryProperties + """Set the properties of a repository + + :returns: :class:`~azure.containerregistry.RepositoryProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + return RepositoryProperties._from_generated( # pylint: disable=protected-access + await self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) + ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py index 7041aa08839b..47c42ac981c7 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py @@ -61,7 +61,8 @@ def __init__( async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: parsed_challenge = _parse_challenge(challenge) - refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) + # refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) # TODO: This is interfering with recordings + refresh_token = await self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) return await self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs ) diff --git a/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py b/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py index 718c605ee239..bb6f4b035068 100644 --- a/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py +++ b/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py @@ -10,7 +10,7 @@ FILE: sample_create_client_async.py DESCRIPTION: - These samples demonstrate creating a ContainerRegistryClient and a ContainerRepositoryClient + These samples demonstrate creating a ContainerRegistryClient and a ContainerRepository USAGE: python sample_create_client_async.py @@ -40,10 +40,10 @@ def create_registry_client(self): def create_repository_client(self): # Instantiate the ContainerRegistryClient # [START create_repository_client] - from azure.containerregistry.aio import ContainerRepositoryClient + from azure.containerregistry.aio import ContainerRepository from azure.identity.aio import DefaultAzureCredential - client = ContainerRepositoryClient(self.account_url, "my_repository", DefaultAzureCredential()) + client = ContainerRepository(self.account_url, "my_repository", DefaultAzureCredential()) # [END create_repository_client] async def basic_sample(self): diff --git a/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py b/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py index df9fa8066d4e..0c538b0c5b66 100644 --- a/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py +++ b/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py @@ -10,7 +10,7 @@ FILE: sample_create_client.py DESCRIPTION: - These samples demonstrate creating a ContainerRegistryClient and a ContainerRepositoryClient + These samples demonstrate creating a ContainerRegistryClient and a ContainerRepository USAGE: python sample_create_client.py @@ -40,10 +40,10 @@ def create_registry_client(self): def create_repository_client(self): # Instantiate the ContainerRegistryClient # [START create_repository_client] - from azure.containerregistry import ContainerRepositoryClient + from azure.containerregistry import ContainerRepository from azure.identity import DefaultAzureCredential - client = ContainerRepositoryClient(self.account_url, "my_repository", DefaultAzureCredential()) + client = ContainerRepository(self.account_url, "my_repository", DefaultAzureCredential()) # [END create_repository_client] def basic_sample(self): diff --git a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py index 07ad54c2a7ff..b3475d5811c2 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py @@ -10,7 +10,7 @@ import six from azure.containerregistry.aio import ( - ContainerRepositoryClient, + ContainerRepository, ContainerRegistryClient, ) from azure.containerregistry import ( @@ -56,8 +56,8 @@ def create_registry_client(self, endpoint, **kwargs): **kwargs, ) - def create_repository_client(self, endpoint, name, **kwargs): - return ContainerRepositoryClient( + def create_container_repository(self, endpoint, name, **kwargs): + return ContainerRepository( endpoint=endpoint, repository=name, credential=self.get_credential(), diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml index 8d4d916ab33f..43bf74192144 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:17 GMT + - Tue, 27 Apr 2021 21:52:55 GMT docker-distribution-api-version: - registry/2.0 server: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:19 GMT + - Tue, 27 Apr 2021 21:52:57 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:19 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.766667' + - '166.65' status: code: 200 message: OK @@ -138,9 +100,10 @@ interactions: response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-13T15:26:48.3839908Z", - "manifestCount": 10, "tagCount": 5, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", + "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": + false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, + "teleportEnabled": false}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -150,11 +113,11 @@ interactions: connection: - keep-alive content-length: - - '298' + - '326' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:19 GMT + - Tue, 27 Apr 2021 21:52:57 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml new file mode 100644 index 000000000000..c2da2bba6682 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml @@ -0,0 +1,363 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo412415c5:tag412415c5"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 27 Apr 2021 21:51:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b9118bb8-a7a2-11eb-aa2d-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b9118bb8-a7a2-11eb-aa2d-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 27 Apr 2021 21:51:44 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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo412415c5","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: + - Tue, 27 Apr 2021 21:51:45 GMT + 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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo412415c5:metadata_read" + 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.0b1 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: + - Tue, 27 Apr 2021 21:51:47 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo412415c5", "createdTime": + "2021-04-27T21:22:52.1208647Z", "lastUpdateTime": "2021-04-27T21:22:50.4689043Z", + "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: + - Tue, 27 Apr 2021 21:51: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 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo412415c5","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: + - Tue, 27 Apr 2021 21:51: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo412415c5:metadata_write" + 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.0b1 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: + - Tue, 27 Apr 2021 21:51:47 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo412415c5", "createdTime": + "2021-04-27T21:22:52.1208647Z", "lastUpdateTime": "2021-04-27T21:22:50.4689043Z", + "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: + - Tue, 27 Apr 2021 21:51: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml new file mode 100644 index 000000000000..5d745cac17f8 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml @@ -0,0 +1,89 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 27 Apr 2021 21:52:58 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world +- 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.0b1 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: Tue, 27 Apr 2021 21:52: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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", + "manifestCount": 12, "tagCount": 5, "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: '326' + content-type: application/json; charset=utf-8 + date: Tue, 27 Apr 2021 21:52: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://fake_url.azurecr.io/acr/v1/library%2Fhello-world +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml new file mode 100644 index 000000000000..ea14dd9b9a80 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml @@ -0,0 +1,275 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repocc7d1842:tagcc7d1842"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 27 Apr 2021 21:51:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c407c0b8-a7a2-11eb-aea5-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c407c0b8-a7a2-11eb-aea5-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 27 Apr 2021 21:52: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repocc7d1842","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: Tue, 27 Apr 2021 21:52:03 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repocc7d1842:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repocc7d1842 +- 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.0b1 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: Tue, 27 Apr 2021 21:52:04 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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repocc7d1842", "createdTime": + "2021-04-27T21:23:10.2127384Z", "lastUpdateTime": "2021-04-27T21:23:08.5162954Z", + "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: '319' + content-type: application/json; charset=utf-8 + date: Tue, 27 Apr 2021 21:52:04 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/repocc7d1842 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repocc7d1842","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: Tue, 27 Apr 2021 21:52:04 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repocc7d1842:metadata_write" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repocc7d1842 +- 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.0b1 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: Tue, 27 Apr 2021 21:52:05 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://fake_url.azurecr.io/oauth2/exchange +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repocc7d1842", "createdTime": + "2021-04-27T21:23:10.2127384Z", "lastUpdateTime": "2021-04-27T21:23:08.5162954Z", + "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: '319' + content-type: application/json; charset=utf-8 + date: Tue, 27 Apr 2021 21:52:05 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/repocc7d1842 +version: 1 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 4535b41f6540..e9dc15dee5de 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 @@ -12,7 +12,6 @@ DeletedRepositoryResult, RepositoryProperties, ) -from azure.containerregistry.aio import ContainerRegistryClient, ContainerRepositoryClient from azure.core.exceptions import ResourceNotFoundError from azure.core.paging import ItemPaged from azure.core.pipeline.transport import AioHttpTransport diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py index 1560013f5417..6af268880801 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py @@ -9,7 +9,7 @@ from devtools_testutils import AzureTestCase from azure.containerregistry import ( - ContainerRepositoryClient, + ContainerRepository, ContainerRegistryClient, ContentPermissions, DeletedRepositoryResult, @@ -27,49 +27,74 @@ from preparer import acr_preparer -class TestContainerRepositoryClient(ContainerRegistryTestClass): - @acr_preparer() - def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - repo = self.get_resource_name("repo") - tag = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) +class TestContainerRepository(ContainerRegistryTestClass): + # @acr_preparer() + # def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): + # repo = self.get_resource_name("repo") + # tag = self.get_resource_name("tag") + # self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - client = self.create_repository_client(containerregistry_endpoint, repo) + # client = self.create_container_repository(containerregistry_endpoint, repo) - tag_props = client.get_tag_properties(tag) - assert tag_props is not None + # tag_props = client.get_tag_properties(tag) + # assert tag_props is not None - client.delete_tag(tag) - self.sleep(5) - with pytest.raises(ResourceNotFoundError): - client.get_tag_properties(tag) + # client.delete_tag(tag) + # self.sleep(5) + # with pytest.raises(ResourceNotFoundError): + # client.get_tag_properties(tag) - @acr_preparer() - def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) + # @acr_preparer() + # def test_delete_tag_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - with pytest.raises(ResourceNotFoundError): - client.delete_tag(TO_BE_DELETED) + # with pytest.raises(ResourceNotFoundError): + # client.delete_tag(TO_BE_DELETED) + @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() def test_get_properties(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) + repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) properties = repo_client.get_properties() + assert isinstance(properties, RepositoryProperties) assert isinstance(properties.content_permissions, ContentPermissions) + assert properties.name == u"library/hello-world" + assert properties.registry == containerregistry_endpoint + + @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() - def test_get_tag(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + def test_set_properties(self, containerregistry_endpoint): + repository = self.get_resource_name("repo") + tag_identifier = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + repo_client = self.create_container_repository(containerregistry_endpoint, repository) + + properties = repo_client.get_properties() + assert isinstance(properties.content_permissions, ContentPermissions) + + c = ContentPermissions(can_delete=False, can_read=False, can_list=False, can_write=False) + properties.content_permissions = c + new_properties = repo_client.set_properties(c) + + assert c.can_delete == new_properties.content_permissions.can_delete + assert c.can_read == new_properties.content_permissions.can_read + assert c.can_list == new_properties.content_permissions.can_list + assert c.can_write == new_properties.content_permissions.can_write - tag = client.get_tag_properties("latest") + # @acr_preparer() + # def test_get_tag(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) - assert tag is not None - assert isinstance(tag, TagProperties) + # tag = client.get_tag_properties("latest") + + # assert tag is not None + # assert isinstance(tag, TagProperties) @acr_preparer() def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) count = 0 for artifact in client.list_registry_artifacts(): @@ -85,7 +110,7 @@ def test_list_registry_artifacts(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) results_per_page = 2 pages = client.list_registry_artifacts(results_per_page=results_per_page) @@ -101,7 +126,7 @@ def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -115,7 +140,7 @@ def test_list_registry_artifacts_descending(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -127,161 +152,161 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): assert count > 0 - @acr_preparer() - def test_get_registry_artifact_properties(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - properties = client.get_registry_artifact_properties("latest") - - assert isinstance(properties, RegistryArtifactProperties) - assert isinstance(properties.created_on, datetime) - assert isinstance(properties.last_updated_on, datetime) - - @acr_preparer() - def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tags = client.list_tags() - assert isinstance(tags, ItemPaged) - count = 0 - for tag in tags: - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - results_per_page = 2 - - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - for page in pages.by_page(): - tag_count = 0 - for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - tag_props = client.get_tag_properties(tag_identifier) - permissions = tag_props.content_permissions - - received = client.set_tag_properties( - tag_identifier, - ContentPermissions( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.content_permissions.can_write - assert not received.content_permissions.can_read - assert not received.content_permissions.can_list - assert not received.content_permissions.can_delete - - client.set_tag_properties( - tag_identifier, - ContentPermissions( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) - - @acr_preparer() - def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposetmani") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - for artifact in client.list_registry_artifacts(): - permissions = artifact.content_permissions - - received_permissions = client.set_manifest_properties( - artifact.digest, - ContentPermissions( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received_permissions.content_permissions.can_delete - assert not received_permissions.content_permissions.can_read - assert not received_permissions.content_permissions.can_list - assert not received_permissions.content_permissions.can_write - - # Reset and delete - client.set_manifest_properties( - artifact.digest, - ContentPermissions( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - client.delete() - break - - @acr_preparer() - def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) + # @acr_preparer() + # def test_get_registry_artifact_properties(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) + + # properties = client.get_registry_artifact_properties("latest") + + # assert isinstance(properties, RegistryArtifactProperties) + # assert isinstance(properties.created_on, datetime) + # assert isinstance(properties.last_updated_on, datetime) + + # @acr_preparer() + # def test_list_tags(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) + + # tags = client.list_tags() + # assert isinstance(tags, ItemPaged) + # count = 0 + # for tag in tags: + # count += 1 + + # assert count > 0 + + # @acr_preparer() + # def test_list_tags_by_page(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) + + # results_per_page = 2 + + # pages = client.list_tags(results_per_page=results_per_page) + # page_count = 0 + # for page in pages.by_page(): + # tag_count = 0 + # for tag in page: + # tag_count += 1 + # assert tag_count <= results_per_page + # page_count += 1 + + # assert page_count >= 1 + + # @acr_preparer() + # def test_list_tags_descending(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) + + # prev_last_updated_on = None + # count = 0 + # for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): + # if prev_last_updated_on: + # assert tag.last_updated_on < prev_last_updated_on + # prev_last_updated_on = tag.last_updated_on + # count += 1 + + # assert count > 0 + + # @acr_preparer() + # def test_list_tags_ascending(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) + + # prev_last_updated_on = None + # count = 0 + # for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): + # if prev_last_updated_on: + # assert tag.last_updated_on > prev_last_updated_on + # prev_last_updated_on = tag.last_updated_on + # count += 1 + + # assert count > 0 + + # @acr_preparer() + # def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("repo") + # tag_identifier = self.get_resource_name("tag") + # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + + # client = self.create_container_repository(containerregistry_endpoint, repository) + + # tag_props = client.get_tag_properties(tag_identifier) + # permissions = tag_props.content_permissions + + # received = client.set_tag_properties( + # tag_identifier, + # ContentPermissions( + # can_delete=False, + # can_list=False, + # can_read=False, + # can_write=False, + # ), + # ) + + # assert not received.content_permissions.can_write + # assert not received.content_permissions.can_read + # assert not received.content_permissions.can_list + # assert not received.content_permissions.can_delete + + # client.set_tag_properties( + # tag_identifier, + # ContentPermissions( + # can_delete=True, + # can_list=True, + # can_read=True, + # can_write=True, + # ), + # ) + + # @acr_preparer() + # def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) + + # with pytest.raises(ResourceNotFoundError): + # client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) + + # @acr_preparer() + # def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("reposetmani") + # tag_identifier = self.get_resource_name("tag") + # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + + # client = self.create_container_repository(containerregistry_endpoint, repository) + + # for artifact in client.list_registry_artifacts(): + # permissions = artifact.content_permissions + + # received_permissions = client.set_manifest_properties( + # artifact.digest, + # ContentPermissions( + # can_delete=False, + # can_list=False, + # can_read=False, + # can_write=False, + # ), + # ) + + # assert not received_permissions.content_permissions.can_delete + # assert not received_permissions.content_permissions.can_read + # assert not received_permissions.content_permissions.can_list + # assert not received_permissions.content_permissions.can_write + + # # Reset and delete + # client.set_manifest_properties( + # artifact.digest, + # ContentPermissions( + # can_delete=True, + # can_list=True, + # can_read=True, + # can_write=True, + # ), + # ) + # client.delete() + # break + + # @acr_preparer() + # def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) + + # with pytest.raises(ResourceNotFoundError): + # client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) @acr_preparer() def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): @@ -291,7 +316,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r existing_repos = list(reg_client.list_repositories()) assert TO_BE_DELETED in existing_repos - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) + repo_client = self.create_container_repository(containerregistry_endpoint, TO_BE_DELETED) result = repo_client.delete() assert isinstance(result, DeletedRepositoryResult) assert result.deleted_registry_artifact_digests is not None @@ -302,27 +327,27 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r @acr_preparer() def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) + repo_client = self.create_container_repository(containerregistry_endpoint, DOES_NOT_EXIST) with pytest.raises(ResourceNotFoundError): repo_client.delete() - @acr_preparer() - def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) + # @acr_preparer() + # def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("repo") + # self.import_image(HELLO_WORLD, [repository]) - repo_client = self.create_repository_client(containerregistry_endpoint, repository) + # repo_client = self.create_container_repository(containerregistry_endpoint, repository) - count = 0 - for artifact in repo_client.list_registry_artifacts(): - if count == 0: - repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 + # count = 0 + # for artifact in repo_client.list_registry_artifacts(): + # if count == 0: + # repo_client.delete_registry_artifact(artifact.digest) + # count += 1 + # assert count > 0 - artifacts = [] - for a in repo_client.list_registry_artifacts(): - artifacts.append(a) + # artifacts = [] + # for a in repo_client.list_registry_artifacts(): + # artifacts.append(a) - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 + # assert len(artifacts) > 0 + # assert len(artifacts) == count - 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py index 0ba0bada4384..25d41c06e0a8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py @@ -16,7 +16,7 @@ RegistryArtifactProperties, TagOrderBy, ) -from azure.containerregistry.aio import ContainerRegistryClient, ContainerRepositoryClient +from azure.containerregistry.aio import ContainerRegistryClient, ContainerRepository from azure.core.exceptions import ResourceNotFoundError from azure.core.async_paging import AsyncItemPaged @@ -25,10 +25,10 @@ from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD -class TestContainerRepositoryClient(AsyncContainerRegistryTestClass): +class TestContainerRepository(AsyncContainerRegistryTestClass): @acr_preparer() async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) async for artifact in client.list_registry_artifacts(): assert artifact is not None @@ -40,7 +40,7 @@ async def test_list_registry_artifacts(self, containerregistry_endpoint): @acr_preparer() async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) results_per_page = 2 pages = client.list_registry_artifacts(results_per_page=results_per_page) @@ -56,7 +56,7 @@ async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint) @acr_preparer() async def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) tags = client.list_tags() assert isinstance(tags, AsyncItemPaged) @@ -68,7 +68,7 @@ async def test_list_tags(self, containerregistry_endpoint): @acr_preparer() async def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) results_per_page = 2 @@ -83,27 +83,27 @@ async def test_list_tags_by_page(self, containerregistry_endpoint): assert page_count >= 1 - @acr_preparer() - async def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, ["{}:{}".format(HELLO_WORLD, TO_BE_DELETED)]) + # @acr_preparer() + # async def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): + # self.import_image(HELLO_WORLD, ["{}:{}".format(HELLO_WORLD, TO_BE_DELETED)]) - client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) + # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - tag = await client.get_tag_properties(TO_BE_DELETED) - assert tag is not None + # tag = await client.get_tag_properties(TO_BE_DELETED) + # assert tag is not None - await client.delete_tag(TO_BE_DELETED) - self.sleep(5) + # await client.delete_tag(TO_BE_DELETED) + # self.sleep(5) - with pytest.raises(ResourceNotFoundError): - await client.get_tag_properties(TO_BE_DELETED) + # with pytest.raises(ResourceNotFoundError): + # await client.get_tag_properties(TO_BE_DELETED) - @acr_preparer() - async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) + # @acr_preparer() + # async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - with pytest.raises(ResourceNotFoundError): - await client.delete_tag(TO_BE_DELETED) + # with pytest.raises(ResourceNotFoundError): + # await client.delete_tag(TO_BE_DELETED) @acr_preparer() async def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): @@ -115,7 +115,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi existing_repos.append(repo) assert TO_BE_DELETED in existing_repos - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) + repo_client = self.create_container_repository(containerregistry_endpoint, TO_BE_DELETED) result = await repo_client.delete() assert isinstance(result, DeletedRepositoryResult) assert result.deleted_registry_artifact_digests is not None @@ -128,30 +128,30 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi @acr_preparer() async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) + repo_client = self.create_container_repository(containerregistry_endpoint, DOES_NOT_EXIST) with pytest.raises(ResourceNotFoundError): await repo_client.delete() - @acr_preparer() - async def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) + # @acr_preparer() + # async def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("repo") + # self.import_image(HELLO_WORLD, [repository]) - repo_client = self.create_repository_client(containerregistry_endpoint, repository) + # repo_client = self.create_container_repository(containerregistry_endpoint, repository) - count = 0 - async for artifact in repo_client.list_registry_artifacts(): - if count == 0: - await repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 + # count = 0 + # async for artifact in repo_client.list_registry_artifacts(): + # if count == 0: + # await repo_client.delete_registry_artifact(artifact.digest) + # count += 1 + # assert count > 0 - artifacts = [] - async for a in repo_client.list_registry_artifacts(): - artifacts.append(a) + # artifacts = [] + # async for a in repo_client.list_registry_artifacts(): + # artifacts.append(a) - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 + # assert len(artifacts) > 0 + # assert len(artifacts) == count - 1 @acr_preparer() async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): @@ -159,7 +159,7 @@ async def test_set_tag_properties(self, containerregistry_endpoint, containerreg tag_identifier = self.get_resource_name("tag") self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - client = self.create_repository_client(containerregistry_endpoint, repository) + client = self.create_container_repository(containerregistry_endpoint, repository) tag_props = await client.get_tag_properties(tag_identifier) permissions = tag_props.content_permissions @@ -192,7 +192,7 @@ async def test_set_tag_properties(self, containerregistry_endpoint, containerreg @acr_preparer() async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) + client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) with pytest.raises(ResourceNotFoundError): await client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) @@ -203,7 +203,7 @@ async def test_set_manifest_properties(self, containerregistry_endpoint, contain tag_identifier = self.get_resource_name("tag") self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - client = self.create_repository_client(containerregistry_endpoint, repository) + client = self.create_container_repository(containerregistry_endpoint, repository) async for artifact in client.list_registry_artifacts(): permissions = artifact.content_permissions @@ -238,14 +238,14 @@ async def test_set_manifest_properties(self, containerregistry_endpoint, contain @acr_preparer() async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) + client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) with pytest.raises(ResourceNotFoundError): await client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) @acr_preparer() async def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -259,7 +259,7 @@ async def test_list_tags_descending(self, containerregistry_endpoint): @acr_preparer() async def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -273,7 +273,7 @@ async def test_list_tags_ascending(self, containerregistry_endpoint): @acr_preparer() async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) count = 0 async for artifact in client.list_registry_artifacts(): @@ -289,7 +289,7 @@ async def test_list_registry_artifacts(self, containerregistry_endpoint): @acr_preparer() async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -305,7 +305,7 @@ async def test_list_registry_artifacts_descending(self, containerregistry_endpoi @acr_preparer() async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, self.repository) prev_last_updated_on = None count = 0 @@ -318,3 +318,34 @@ async def test_list_registry_artifacts_ascending(self, containerregistry_endpoin count += 1 assert count > 0 + + @pytest.mark.live_test_only # This needs to be removed in the future + @acr_preparer() + async def test_get_properties(self, containerregistry_endpoint): + repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) + + properties = await repo_client.get_properties() + assert isinstance(properties, RepositoryProperties) + assert isinstance(properties.content_permissions, ContentPermissions) + assert properties.name == u"library/hello-world" + assert properties.registry == containerregistry_endpoint + + @pytest.mark.live_test_only # This needs to be removed in the future + @acr_preparer() + async def test_set_properties(self, containerregistry_endpoint): + repository = self.get_resource_name("repo") + tag_identifier = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + repo_client = self.create_container_repository(containerregistry_endpoint, repository) + + properties = await repo_client.get_properties() + assert isinstance(properties.content_permissions, ContentPermissions) + + c = ContentPermissions(can_delete=False, can_read=False, can_list=False, can_write=False) + properties.content_permissions = c + new_properties = await repo_client.set_properties(c) + + assert c.can_delete == new_properties.content_permissions.can_delete + assert c.can_read == new_properties.content_permissions.can_read + assert c.can_list == new_properties.content_permissions.can_list + assert c.can_write == new_properties.content_permissions.can_write \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 223a0819def5..721a59a58ced 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -13,7 +13,7 @@ import time from azure.containerregistry import ( - ContainerRepositoryClient, + ContainerRepository, ContainerRegistryClient, TagProperties, ContentPermissions, @@ -156,7 +156,7 @@ def _clean_up(self, endpoint): reg_client = self.create_registry_client(endpoint) for repo in reg_client.list_repositories(): if repo.startswith("repo"): - repo_client = self.create_repository_client(endpoint, repo) + repo_client = self.create_container_repository(endpoint, repo) for tag in repo_client.list_tags(): try: @@ -188,8 +188,8 @@ def get_credential(self): def create_registry_client(self, endpoint, **kwargs): return ContainerRegistryClient(endpoint=endpoint, credential=self.get_credential(), **kwargs) - def create_repository_client(self, endpoint, name, **kwargs): - return ContainerRepositoryClient(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) + def create_container_repository(self, endpoint, name, **kwargs): + return ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) def assert_content_permission(self, content_perm, content_perm2): assert isinstance(content_perm, ContentPermissions) From 7a0b5988b5634fc500f65ba01845810f96297e99 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 27 Apr 2021 18:02:18 -0400 Subject: [PATCH 02/42] renaming files --- .../azure-containerregistry/azure/containerregistry/__init__.py | 2 +- .../azure/containerregistry/_container_registry_client.py | 2 +- ..._container_repository_client.py => _container_repository.py} | 0 .../azure/containerregistry/aio/__init__.py | 2 +- .../containerregistry/aio/_async_container_registry_client.py | 2 +- ...iner_repository_client.py => _async_container_repository.py} | 0 ...tainer_repository_client.py => test_container_repository.py} | 0 ...itory_client_async.py => test_container_repository_async.py} | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename sdk/containerregistry/azure-containerregistry/azure/containerregistry/{_container_repository_client.py => _container_repository.py} (100%) rename sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/{_async_container_repository_client.py => _async_container_repository.py} (100%) rename sdk/containerregistry/azure-containerregistry/tests/{test_container_repository_client.py => test_container_repository.py} (100%) rename sdk/containerregistry/azure-containerregistry/tests/{test_container_repository_client_async.py => test_container_repository_async.py} (100%) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index 396e3d16775b..cd7ee4064a73 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from ._container_registry_client import ContainerRegistryClient -from ._container_repository_client import ContainerRepository +from ._container_repository import ContainerRepository from ._models import ( ContentPermissions, DeletedRepositoryResult, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index 307181a23f45..ecc9cc118ece 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -16,7 +16,7 @@ from azure.core.tracing.decorator import distributed_trace from ._base_client import ContainerRegistryBaseClient, TransportWrapper -from ._container_repository_client import ContainerRepository +from ._container_repository import ContainerRepository from ._generated.models import AcrErrors from ._helpers import _parse_next_link from ._models import DeletedRepositoryResult diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py similarity index 100% rename from sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py rename to sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py index 72f908b64611..98ab2a7b4103 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from ._async_container_registry_client import ContainerRegistryClient -from ._async_container_repository_client import ContainerRepository +from ._async_container_repository import ContainerRepository __all__ = [ "ContainerRegistryClient", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index c0604d48e3f9..7220f8331de7 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -18,7 +18,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async from ._async_base_client import ContainerRegistryBaseClient, AsyncTransportWrapper -from ._async_container_repository_client import ContainerRepository +from ._async_container_repository import ContainerRepository from .._generated.models import AcrErrors from .._helpers import _parse_next_link from .._models import RepositoryProperties, DeletedRepositoryResult diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py similarity index 100% rename from sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py rename to sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py similarity index 100% rename from sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py rename to sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py similarity index 100% rename from sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py rename to sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py From 15bbaaf6aa18273a196b82294c69daef28581401 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 27 Apr 2021 18:46:16 -0400 Subject: [PATCH 03/42] re-recording, commenting out tests that are not necessary --- .../aio/_async_container_repository.py | 412 ++++----- ...egistry_client.test_delete_repository.yaml | 111 +-- ...test_delete_repository_does_not_exist.yaml | 46 +- ...egistry_client.test_list_repositories.yaml | 51 +- ...client.test_list_repositories_by_page.yaml | 261 +++--- ...lient.test_transport_closed_only_once.yaml | 106 +-- ...y_client_async.test_delete_repository.yaml | 95 +- ...test_delete_repository_does_not_exist.yaml | 36 +- ...y_client_async.test_list_repositories.yaml | 43 +- ..._async.test_list_repositories_by_page.yaml | 204 ++--- ...async.test_transport_closed_only_once.yaml | 86 +- ...er_repository.test_delete_repository.yaml} | 169 +--- ....test_delete_repository_doesnt_exist.yaml} | 46 +- ...ainer_repository.test_get_properties.yaml} | 8 +- ...ository.test_list_registry_artifacts.yaml} | 128 +-- ...st_list_registry_artifacts_ascending.yaml} | 127 +-- ...test_list_registry_artifacts_by_page.yaml} | 382 ++------ ...t_list_registry_artifacts_descending.yaml} | 129 +-- ...ainer_repository.test_set_properties.yaml} | 247 ++--- ...ository_async.test_delete_repository.yaml} | 139 +-- ....test_delete_repository_doesnt_exist.yaml} | 36 +- ...repository_async.test_get_properties.yaml} | 6 +- ...y_async.test_list_registry_artifacts.yaml} | 121 +-- ...st_list_registry_artifacts_ascending.yaml} | 122 +-- ...test_list_registry_artifacts_by_page.yaml} | 352 +++----- ...t_list_registry_artifacts_descending.yaml} | 123 +-- ...repository_async.test_set_properties.yaml} | 190 ++-- ..._client.test_delete_registry_artifact.yaml | 685 -------------- ...client.test_delete_tag_does_not_exist.yaml | 174 ---- ...test_get_registry_artifact_properties.yaml | 351 ------- ...tainer_repository_client.test_get_tag.yaml | 171 ---- ...iner_repository_client.test_list_tags.yaml | 187 ---- ...itory_client.test_list_tags_ascending.yaml | 187 ---- ...ository_client.test_list_tags_by_page.yaml | 521 ----------- ...tory_client.test_list_tags_descending.yaml | 187 ---- ...y_client.test_set_manifest_properties.yaml | 853 ------------------ ...et_manifest_properties_does_not_exist.yaml | 175 ---- ...repository_client.test_set_properties.yaml | 363 -------- ...sitory_client.test_set_tag_properties.yaml | 618 ------------- ...est_set_tag_properties_does_not_exist.yaml | 176 ---- ...t_async.test_delete_registry_artifact.yaml | 519 ----------- ...pository_client_async.test_delete_tag.yaml | 430 --------- ..._async.test_delete_tag_does_not_exist.yaml | 115 --- ...epository_client_async.test_list_tags.yaml | 133 --- ...client_async.test_list_tags_ascending.yaml | 133 --- ...y_client_async.test_list_tags_by_page.yaml | 357 -------- ...lient_async.test_list_tags_descending.yaml | 133 --- ...nt_async.test_set_manifest_properties.yaml | 632 ------------- ...et_manifest_properties_does_not_exist.yaml | 121 --- ...tory_client_async.test_set_properties.yaml | 275 ------ ...est_set_tag_properties_does_not_exist.yaml | 122 --- .../tests/test_container_repository.py | 17 +- .../tests/test_container_repository_async.py | 314 ++++--- 53 files changed, 1352 insertions(+), 10373 deletions(-) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_delete_repository.yaml => test_container_repository.test_delete_repository.yaml} (75%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_delete_repository_doesnt_exist.yaml => test_container_repository.test_delete_repository_doesnt_exist.yaml} (75%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_get_properties.yaml => test_container_repository.test_get_properties.yaml} (97%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_list_registry_artifacts_descending.yaml => test_container_repository.test_list_registry_artifacts.yaml} (56%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_list_registry_artifacts.yaml => test_container_repository.test_list_registry_artifacts_ascending.yaml} (56%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_list_registry_artifacts_by_page.yaml => test_container_repository.test_list_registry_artifacts_by_page.yaml} (59%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_list_registry_artifacts_ascending.yaml => test_container_repository.test_list_registry_artifacts_descending.yaml} (55%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client.test_delete_tag.yaml => test_container_repository.test_set_properties.yaml} (67%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_delete_repository.yaml => test_container_repository_async.test_delete_repository.yaml} (73%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_delete_repository_doesnt_exist.yaml => test_container_repository_async.test_delete_repository_doesnt_exist.yaml} (73%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_get_properties.yaml => test_container_repository_async.test_get_properties.yaml} (96%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_list_registry_artifacts.yaml => test_container_repository_async.test_list_registry_artifacts.yaml} (52%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_list_registry_artifacts_descending.yaml => test_container_repository_async.test_list_registry_artifacts_ascending.yaml} (52%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_list_registry_artifacts_by_page.yaml => test_container_repository_async.test_list_registry_artifacts_by_page.yaml} (52%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_list_registry_artifacts_ascending.yaml => test_container_repository_async.test_list_registry_artifacts_descending.yaml} (51%) rename sdk/containerregistry/azure-containerregistry/tests/recordings/{test_container_repository_client_async.test_set_tag_properties.yaml => test_container_repository_async.test_set_properties.yaml} (62%) delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_registry_artifact.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag_does_not_exist.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_registry_artifact_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_by_page.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties_does_not_exist.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties_does_not_exist.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag_does_not_exist.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_by_page.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties_does_not_exist.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties_does_not_exist.yaml diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index efa6fabac4ce..8a6ed6034ee1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -69,26 +69,26 @@ async def delete(self, **kwargs: Dict[str, Any]) -> DeletedRepositoryResult: await self._client.container_registry.delete_repository(self.repository, **kwargs) ) - @distributed_trace_async - async def delete_registry_artifact(self, digest: str, **kwargs: Dict[str, Any]) -> None: - """Delete a registry artifact - - :param digest: The digest of the artifact to be deleted - :type digest: str - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - await self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - @distributed_trace_async - async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: - """Delete a tag from a repository - - :param str tag: The tag to be deleted - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - await self._client.container_registry.delete_tag(self.repository, tag, **kwargs) + # @distributed_trace_async + # async def delete_registry_artifact(self, digest: str, **kwargs: Dict[str, Any]) -> None: + # """Delete a registry artifact + + # :param digest: The digest of the artifact to be deleted + # :type digest: str + # :returns: None + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # await self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) + + # @distributed_trace_async + # async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: + # """Delete a tag from a repository + + # :param str tag: The tag to be deleted + # :returns: None + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # await self._client.container_registry.delete_tag(self.repository, tag, **kwargs) @distributed_trace_async async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties: @@ -101,38 +101,38 @@ async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties await self._client.container_registry.get_properties(self.repository, **kwargs) ) - @distributed_trace_async - async def get_registry_artifact_properties( - self, tag_or_digest: str, **kwargs: Dict[str, Any] - ) -> RegistryArtifactProperties: - """Get the properties of a registry artifact - - :param tag_or_digest: The tag/digest of a registry artifact - :type tag_or_digest: str - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - if _is_tag(tag_or_digest): - tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_manifest_properties( - self.repository, tag_or_digest, **kwargs - ) - ) - - @distributed_trace_async - async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: - """Get the properties for a tag - - :param tag: The tag to get properties for - :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - ) + # @distributed_trace_async + # async def get_registry_artifact_properties( + # self, tag_or_digest: str, **kwargs: Dict[str, Any] + # ) -> RegistryArtifactProperties: + # """Get the properties of a registry artifact + + # :param tag_or_digest: The tag/digest of a registry artifact + # :type tag_or_digest: str + # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # if _is_tag(tag_or_digest): + # tag_or_digest = self._get_digest_from_tag(tag_or_digest) + + # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # await self._client.container_registry.get_manifest_properties( + # self.repository, tag_or_digest, **kwargs + # ) + # ) + + # @distributed_trace_async + # async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: + # """Get the properties for a tag + + # :param tag: The tag to get properties for + # :type tag: str + # :returns: :class:`~azure.containerregistry.TagProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return TagProperties._from_generated( # pylint: disable=protected-access + # await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) + # ) @distributed_trace def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[RegistryArtifactProperties]: @@ -251,160 +251,160 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace - def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: - """List the tags for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - digest = kwargs.pop("digest", None) - cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_tags" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - if digest is not None: - query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - "digest", digest, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - async def extract_data(pipeline_response): - deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - list_of_elem = deserialized.tag_attribute_bases - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def set_manifest_properties( - self, digest: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] - ) -> None: - """Set the properties for a manifest - - :param digest: Digest of a manifest - :type digest: str - :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.update_manifest_properties( - self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) - - @distributed_trace_async - async def set_tag_properties( - self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] - ) -> TagProperties: - """Set the properties for a tag - - :param tag: Tag to set properties for - :type tag: str - :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.update_tag_attributes( - self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) + # @distributed_trace + # def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: + # """List the tags for a repository + + # :keyword last: Query parameter for the last item in the previous call. Ensuing + # call will return values after last lexically + # :paramtype last: str + # :keyword order_by: Query parameter for ordering by time ascending or descending + # :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` + # :keyword results_per_page: Number of repositories to return per page + # :paramtype results_per_page: int + # :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + # :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # name = self.repository + # last = kwargs.pop("last", None) + # n = kwargs.pop("results_per_page", None) + # orderby = kwargs.pop("order_by", None) + # digest = kwargs.pop("digest", None) + # cls = kwargs.pop( + # "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + # ) + + # error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + # error_map.update(kwargs.pop("error_map", {})) + # accept = "application/json" + + # def prepare_request(next_link=None): + # # Construct headers + # header_parameters = {} # type: Dict[str, Any] + # header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access + # "accept", accept, "str" + # ) + + # if not next_link: + # # Construct URL + # url = "/acr/v1/{name}/_tags" + # path_format_arguments = { + # "url": self._client._serialize.url( # pylint: disable=protected-access + # "self._client._config.url", + # self._client._config.url, # pylint: disable=protected-access + # "str", + # skip_quote=True, + # ), + # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + # } + # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # # Construct parameters + # query_parameters = {} # type: Dict[str, Any] + # if last is not None: + # query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access + # "last", last, "str" + # ) + # if n is not None: + # query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access + # "n", n, "int" + # ) + # if orderby is not None: + # query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access + # "orderby", orderby, "str" + # ) + # if digest is not None: + # query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access + # "digest", digest, "str" + # ) + + # request = self._client._client.get( # pylint: disable=protected-access + # url, query_parameters, header_parameters + # ) + # else: + # url = next_link + # query_parameters = {} # type: Dict[str, Any] + # path_format_arguments = { + # "url": self._client._serialize.url( # pylint: disable=protected-access + # "self._client._config.url", + # self._client._config.url, # pylint: disable=protected-access + # "str", + # skip_quote=True, + # ), + # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + # } + # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # request = self._client._client.get( # pylint: disable=protected-access + # url, query_parameters, header_parameters + # ) + # return request + + # async def extract_data(pipeline_response): + # deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access + # list_of_elem = deserialized.tag_attribute_bases + # if cls: + # list_of_elem = cls(list_of_elem) + # link = None + # if "Link" in pipeline_response.http_response.headers.keys(): + # link = _parse_next_link(pipeline_response.http_response.headers["Link"]) + # return link, AsyncList(list_of_elem) + + # async def get_next(next_link=None): + # request = prepare_request(next_link) + + # pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access + # request, stream=False, **kwargs + # ) + # response = pipeline_response.http_response + + # if response.status_code not in [200]: + # error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access + # AcrErrors, response + # ) + # map_error(status_code=response.status_code, response=response, error_map=error_map) + # raise HttpResponseError(response=response, model=error) + + # return pipeline_response + + # return AsyncItemPaged(get_next, extract_data) + + # @distributed_trace_async + # async def set_manifest_properties( + # self, digest: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] + # ) -> None: + # """Set the properties for a manifest + + # :param digest: Digest of a manifest + # :type digest: str + # :param permissions: The property's values to be set + # :type permissions: ContentPermissions + # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # await self._client.container_registry.update_manifest_properties( + # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + # ) + # ) + + # @distributed_trace_async + # async def set_tag_properties( + # self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] + # ) -> TagProperties: + # """Set the properties for a tag + + # :param tag: Tag to set properties for + # :type tag: str + # :param permissions: The property's values to be set + # :type permissions: ContentPermissions + # :returns: :class:`~azure.containerregistry.TagProperties` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return TagProperties._from_generated( # pylint: disable=protected-access + # await self._client.container_registry.update_tag_attributes( + # self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + # ) + # ) @distributed_trace_async async def set_properties(self, properties, **kwargs): 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 index 3b0753d55543..d3eaed51e9bb 100644 --- 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 @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:07 GMT + - Tue, 27 Apr 2021 22:42:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e542e949-9c70-11eb-9c3f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9964ea8-a7a9-11eb-a5f3-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e542e949-9c70-11eb-9c3f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9964ea8-a7a9-11eb-a5f3-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:20 GMT + - Tue, 27 Apr 2021 22:43:11 GMT expires: - '-1' pragma: @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:21 GMT + - Tue, 27 Apr 2021 22:43:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:22 GMT + - Tue, 27 Apr 2021 22:43:14 GMT server: - openresty strict-transport-security: @@ -175,44 +175,6 @@ interactions: status: code: 200 message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Ato_be_deleted%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1074' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:22 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: @@ -231,15 +193,15 @@ interactions: response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], + "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", + "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], "tagsDeleted": ["latest"]}' headers: access-control-expose-headers: @@ -254,7 +216,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:26 GMT + - Tue, 27 Apr 2021 22:43:16 GMT docker-distribution-api-version: - registry/2.0 server: @@ -301,7 +263,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:26 GMT + - Tue, 27 Apr 2021 22:43:16 GMT docker-distribution-api-version: - registry/2.0 server: @@ -342,45 +304,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:26 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:26 GMT + - Tue, 27 Apr 2021 22:43:16 GMT server: - openresty strict-transport-security: @@ -388,7 +312,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.616667' status: code: 200 message: OK @@ -407,8 +331,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -418,11 +343,11 @@ interactions: connection: - keep-alive content-length: - - '151' + - '174' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:26 GMT + - Tue, 27 Apr 2021 22:43:17 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 02740e9142d0..0dd031eba40e 100644 --- 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 @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:27 GMT + - Tue, 27 Apr 2021 22:43:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:28 GMT + - Tue, 27 Apr 2021 22:43:19 GMT server: - openresty strict-transport-security: @@ -82,45 +82,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Anot_real_repo%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1074' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.2' + - '166.516667' status: code: 200 message: OK @@ -156,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:29 GMT + - Tue, 27 Apr 2021 22:43:19 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml index bf85e08f6ee6..86dc29fe968e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:29 GMT + - Tue, 27 Apr 2021 22:43:20 GMT docker-distribution-api-version: - registry/2.0 server: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:31 GMT + - Tue, 27 Apr 2021 22:43:21 GMT server: - openresty strict-transport-security: @@ -84,44 +84,6 @@ interactions: status: code: 200 message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57: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: @@ -137,8 +99,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -148,11 +111,11 @@ interactions: connection: - keep-alive content-length: - - '151' + - '174' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:31 GMT + - Tue, 27 Apr 2021 22:43:21 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml index 46e7429f0612..f343b8a86ba9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:32 GMT + - Tue, 27 Apr 2021 22:43:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:33 GMT + - Tue, 27 Apr 2021 22:43:23 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.65' status: code: 200 message: OK @@ -151,7 +113,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:33 GMT + - Tue, 27 Apr 2021 22:43:24 GMT docker-distribution-api-version: - registry/2.0 link: @@ -198,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:33 GMT + - Tue, 27 Apr 2021 22:43:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -239,7 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:34 GMT + - Tue, 27 Apr 2021 22:43:24 GMT server: - openresty strict-transport-security: @@ -247,45 +209,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:34 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.616667' status: code: 200 message: OK @@ -304,7 +228,7 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: - string: '{"repositories": ["library/hello-world", "repo2e8319c5"]}' + string: '{"repositories": ["repo2c591564", "repo2e8319c5"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -314,11 +238,11 @@ interactions: connection: - keep-alive content-length: - - '56' + - '49' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:34 GMT + - Tue, 27 Apr 2021 22:43:25 GMT docker-distribution-api-version: - registry/2.0 link: @@ -365,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:34 GMT + - Tue, 27 Apr 2021 22:43:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -406,45 +330,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:34 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:25 GMT server: - openresty strict-transport-security: @@ -452,7 +338,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' + - '166.583333' status: code: 200 message: OK @@ -471,7 +357,7 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= response: body: - string: '{"repositories": ["repo308e19dd", "repo9b321760"]}' + string: '{"repositories": ["repo308e19dd", "repo84e316ff"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -485,11 +371,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:25 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -512,7 +398,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -532,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -573,7 +459,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:26 GMT server: - openresty strict-transport-security: @@ -581,12 +467,103 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '166.55' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repob22512e7"]}' + 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: + - Tue, 27 Apr 2021 22:43:26 GMT + docker-distribution-api-version: + - registry/2.0 + link: + - ; rel="next" + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&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: + - Tue, 27 Apr 2021 22:43: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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 @@ -595,23 +572,23 @@ interactions: Connection: - keep-alive Content-Length: - - '1063' + - '1343' Content-Type: - application/x-www-form-urlencoded User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: - string: '{"access_token": "REDACTED"}' + string: '{"refresh_token": "REDACTED"}' headers: connection: - keep-alive content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:26 GMT server: - openresty strict-transport-security: @@ -619,7 +596,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.516667' status: code: 200 message: OK @@ -635,7 +612,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' @@ -652,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:35 GMT + - Tue, 27 Apr 2021 22:43:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index 9423b6a088af..a70a9ee3edc0 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:36 GMT + - Tue, 27 Apr 2021 22:43:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:37 GMT + - Tue, 27 Apr 2021 22:43:29 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:38 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' + - '166.5' status: code: 200 message: OK @@ -137,8 +99,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -148,11 +111,11 @@ interactions: connection: - keep-alive content-length: - - '151' + - '174' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:38 GMT + - Tue, 27 Apr 2021 22:43:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -197,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:38 GMT + - Tue, 27 Apr 2021 22:43:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -238,45 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:38 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:57:38 GMT + - Tue, 27 Apr 2021 22:43:30 GMT server: - openresty strict-transport-security: @@ -284,7 +209,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '166.466667' status: code: 200 message: OK @@ -303,8 +228,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -314,11 +240,11 @@ interactions: connection: - keep-alive content-length: - - '151' + - '174' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:39 GMT + - Tue, 27 Apr 2021 22:43:30 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 7db3a6857642..d5e95847d02b 100644 --- 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 @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:40 GMT + - Tue, 27 Apr 2021 22:43:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f95607cc-9c70-11eb-a4a1-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fd1fe60f-a7a9-11eb-83b3-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f95607cc-9c70-11eb-a4a1-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fd1fe60f-a7a9-11eb-83b3-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:57:53 GMT + - Tue, 27 Apr 2021 22:43:44 GMT expires: - '-1' pragma: @@ -108,7 +108,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:54 GMT + date: Tue, 27 Apr 2021 22:43:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,43 +136,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:55 GMT + date: Tue, 27 Apr 2021 22:43:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:to_be_deleted:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:57:55 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -185,22 +157,22 @@ interactions: response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], + "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", + "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], "tagsDeleted": ["latest"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:57 GMT + date: Tue, 27 Apr 2021 22:43:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -230,7 +202,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:57 GMT + date: Tue, 27 Apr 2021 22:43:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -258,43 +230,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:57 GMT + date: Tue, 27 Apr 2021 22:43:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '166.4' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:57: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 - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -306,14 +250,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '151' + content-length: '174' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:57 GMT + date: Tue, 27 Apr 2021 22:43:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index bcbb6365b829..09c5cf0833c2 100644 --- 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 @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:58 GMT + date: Tue, 27 Apr 2021 22:43:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:59 GMT + date: Tue, 27 Apr 2021 22:43:51 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:not_real_repo:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:57:59 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -102,7 +74,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:57:59 GMT + date: Tue, 27 Apr 2021 22:43:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml index 31c445e66b28..2a89e2e9565e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:00 GMT + date: Tue, 27 Apr 2021 22:43:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:01 GMT + date: Tue, 27 Apr 2021 22:43:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58:01 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: null headers: @@ -95,14 +67,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '151' + content-length: '174' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:01 GMT + date: Tue, 27 Apr 2021 22:43:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml index af25927c09a7..708dc576b171 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:01 GMT + date: Tue, 27 Apr 2021 22:43:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,35 +47,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:02 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58:02 GMT + date: Tue, 27 Apr 2021 22:43:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -83,7 +55,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/oauth2/token + url: https://fake_url.azurecr.io/oauth2/exchange - request: body: null headers: @@ -101,7 +73,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:03 GMT + date: Tue, 27 Apr 2021 22:43:55 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -131,7 +103,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:03 GMT + date: Tue, 27 Apr 2021 22:43:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -159,43 +131,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:03 GMT + date: Tue, 27 Apr 2021 22:43:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '166.2' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58:03 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -207,13 +151,13 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: - string: '{"repositories": ["library/hello-world", "repo2e8319c5"]}' + string: '{"repositories": ["repo2c591564", "repo2e8319c5"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '56' + content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:03 GMT + date: Tue, 27 Apr 2021 22:43:55 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -243,7 +187,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:03 GMT + date: Tue, 27 Apr 2021 22:43:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -271,43 +215,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:56 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58: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 - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -319,15 +235,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= response: body: - string: '{"repositories": ["repo308e19dd", "repo9b321760"]}' + string: '{"repositories": ["repo308e19dd", "repo84e316ff"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:56 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff @@ -343,7 +259,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -355,7 +271,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -364,7 +280,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= - request: body: access_token: REDACTED @@ -383,20 +299,76 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:56 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repob22512e7"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Tue, 27 Apr 2021 22:43:57 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&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: Tue, 27 Apr 2021 22:43:57 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= - request: body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* + access_token: REDACTED + grant_type: access_token service: fake_url.azurecr.io headers: Accept: @@ -404,22 +376,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: - string: '{"access_token": "REDACTED"}' + string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK - url: https://fake_url.azurecr.io/oauth2/token + url: https://fake_url.azurecr.io/oauth2/exchange - request: body: null headers: @@ -428,7 +400,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' @@ -437,7 +409,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:04 GMT + date: Tue, 27 Apr 2021 22:43:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -445,5 +417,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index e5ab89d51ec3..b855654292c0 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:05 GMT + date: Tue, 27 Apr 2021 22:43:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:06 GMT + date: Tue, 27 Apr 2021 22:43:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + 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: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58: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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -95,14 +67,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '151' + content-length: '174' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:06 GMT + date: Tue, 27 Apr 2021 22:43:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -131,7 +104,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:06 GMT + date: Tue, 27 Apr 2021 22:43:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -159,43 +132,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:07 GMT + date: Tue, 27 Apr 2021 22:43:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 15:58:07 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: @@ -207,14 +152,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '151' + content-length: '174' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 15:58:07 GMT + date: Tue, 27 Apr 2021 22:44:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml similarity index 75% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index 4f820308f80c..679dbc7492df 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:28 GMT + - Tue, 27 Apr 2021 22:44:02 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-15a1cf12-9c71-11eb-9c7f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0ec75998-a7aa-11eb-962f-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-15a1cf12-9c71-11eb-9c7f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0ec75998-a7aa-11eb-962f-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:40 GMT + - Tue, 27 Apr 2021 22:44:14 GMT expires: - '-1' pragma: @@ -120,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:42 GMT + - Tue, 27 Apr 2021 22:44:15 GMT docker-distribution-api-version: - registry/2.0 server: @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:43 GMT + - Tue, 27 Apr 2021 22:44:17 GMT server: - openresty strict-transport-security: @@ -169,45 +169,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:43 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.2' + - '166.65' status: code: 200 message: OK @@ -226,9 +188,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db", - "to_be_deleted"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db", "to_be_deleted"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -238,11 +200,11 @@ interactions: connection: - keep-alive content-length: - - '167' + - '190' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:43 GMT + - Tue, 27 Apr 2021 22:44:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -289,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:44 GMT + - Tue, 27 Apr 2021 22:44:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -330,45 +292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Ato_be_deleted%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1074' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:46 GMT + - Tue, 27 Apr 2021 22:44:19 GMT server: - openresty strict-transport-security: @@ -376,7 +300,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' + - '166.216667' status: code: 200 message: OK @@ -398,15 +322,15 @@ interactions: response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], + "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", + "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], "tagsDeleted": ["latest"]}' headers: access-control-expose-headers: @@ -421,7 +345,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:47 GMT + - Tue, 27 Apr 2021 22:44:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -468,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:47 GMT + - Tue, 27 Apr 2021 22:44:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -509,45 +433,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:48 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:48 GMT + - Tue, 27 Apr 2021 22:44:22 GMT server: - openresty strict-transport-security: @@ -555,7 +441,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.6' + - '166.616667' status: code: 200 message: OK @@ -574,8 +460,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -585,11 +472,11 @@ interactions: connection: - keep-alive content-length: - - '151' + - '174' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:48 GMT + - Tue, 27 Apr 2021 22:44:22 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml similarity index 75% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository_doesnt_exist.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index 8a3d7c07afa8..8ffa4b960680 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:49 GMT + - Tue, 27 Apr 2021 22:44:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:50 GMT + - Tue, 27 Apr 2021 22:44:24 GMT server: - openresty strict-transport-security: @@ -82,45 +82,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Adoes_not_exist%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1075' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:50 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' + - '166.183333' status: code: 200 message: OK @@ -156,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:58:50 GMT + - Tue, 27 Apr 2021 22:44:24 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml similarity index 97% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index 43bf74192144..cce62fdebe22 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 21:52:55 GMT + - Tue, 27 Apr 2021 22:44:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 21:52:57 GMT + - Tue, 27 Apr 2021 22:44:26 GMT server: - openresty strict-transport-security: @@ -80,7 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.616667' status: code: 200 message: OK @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 21:52:57 GMT + - Tue, 27 Apr 2021 22:44:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml similarity index 56% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_descending.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml index 7e6531098b94..649e26a6991f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml @@ -11,11 +11,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + 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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -27,11 +27,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:36 GMT + - Tue, 27 Apr 2021 22:44:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,7 +40,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:37 GMT + - Tue, 27 Apr 2021 22:44:29 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' + - '166.65' status: code: 200 message: OK @@ -134,60 +96,60 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -199,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:38 GMT + - Tue, 27 Apr 2021 22:44:30 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml similarity index 56% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml index 91f2ad85a35f..0437c24c9587 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml @@ -11,11 +11,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + 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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -27,11 +27,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:25 GMT + - Tue, 27 Apr 2021 22:44:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,7 +40,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:27 GMT + - Tue, 27 Apr 2021 22:44:32 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:27 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '166.583333' status: code: 200 message: OK @@ -134,59 +96,58 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "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:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' headers: @@ -200,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:27 GMT + - Tue, 27 Apr 2021 22:44:33 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml similarity index 59% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_by_page.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml index 35e30e1d0ce0..14735664111a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml @@ -11,11 +11,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + 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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -27,11 +27,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:31 GMT + - Tue, 27 Apr 2021 22:44:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,7 +40,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:32 GMT + - Tue, 27 Apr 2021 22:44:35 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:32 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.383333' status: code: 200 message: OK @@ -134,20 +96,21 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "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: - Docker-Content-Digest @@ -157,15 +120,15 @@ interactions: connection: - keep-alive content-length: - - '886' + - '931' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:32 GMT + - Tue, 27 Apr 2021 22:44:35 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -189,11 +152,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -205,11 +168,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:32 GMT + - Tue, 27 Apr 2021 22:44:35 GMT docker-distribution-api-version: - registry/2.0 server: @@ -218,7 +181,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -250,45 +213,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:33 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:33 GMT + - Tue, 27 Apr 2021 22:44:36 GMT server: - openresty strict-transport-security: @@ -296,7 +221,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.216667' status: code: 200 message: OK @@ -312,19 +237,19 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' headers: @@ -336,15 +261,15 @@ interactions: connection: - keep-alive content-length: - - '936' + - '927' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:33 GMT + - Tue, 27 Apr 2021 22:44:36 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -368,11 +293,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -384,11 +309,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:33 GMT + - Tue, 27 Apr 2021 22:44:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -397,7 +322,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -429,45 +354,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:33 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:34 GMT + - Tue, 27 Apr 2021 22:44:36 GMT server: - openresty strict-transport-security: @@ -475,7 +362,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.183333' status: code: 200 message: OK @@ -491,21 +378,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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 @@ -515,15 +401,15 @@ interactions: connection: - keep-alive content-length: - - '937' + - '889' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:34 GMT + - Tue, 27 Apr 2021 22:44:37 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -547,11 +433,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3Ab0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -563,11 +449,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:34 GMT + - Tue, 27 Apr 2021 22:44:37 GMT docker-distribution-api-version: - registry/2.0 server: @@ -576,7 +462,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -608,45 +494,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:34 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:34 GMT + - Tue, 27 Apr 2021 22:44:37 GMT server: - openresty strict-transport-security: @@ -654,7 +502,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.15' status: code: 200 message: OK @@ -670,19 +518,19 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3Ab0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' headers: @@ -694,15 +542,15 @@ interactions: connection: - keep-alive content-length: - - '935' + - '936' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:35 GMT + - Tue, 27 Apr 2021 22:44:37 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -726,11 +574,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3Acb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -742,11 +590,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:35 GMT + - Tue, 27 Apr 2021 22:44:38 GMT docker-distribution-api-version: - registry/2.0 server: @@ -755,7 +603,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -787,45 +635,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:35 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:35 GMT + - Tue, 27 Apr 2021 22:44:38 GMT server: - openresty strict-transport-security: @@ -833,7 +643,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.116667' status: code: 200 message: OK @@ -849,18 +659,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3Acb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' @@ -873,11 +683,11 @@ interactions: connection: - keep-alive content-length: - - '933' + - '929' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:35 GMT + - Tue, 27 Apr 2021 22:44:38 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml similarity index 55% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_ascending.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml index c277b36162f1..1f77d7c15a21 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml @@ -11,11 +11,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + 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/hello-world","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"metadata_read"}]}]} ' headers: @@ -27,11 +27,11 @@ interactions: connection: - keep-alive content-length: - - '222' + - '218' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:28 GMT + - Tue, 27 Apr 2021 22:44:39 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,7 +40,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: - nosniff status: @@ -72,7 +72,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:29 GMT + - Tue, 27 Apr 2021 22:44:40 GMT server: - openresty strict-transport-security: @@ -80,45 +80,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.483333' status: code: 200 message: OK @@ -134,61 +96,60 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "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:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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 @@ -200,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 15:59:30 GMT + - Tue, 27 Apr 2021 22:44:41 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml similarity index 67% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 3ed6dcd35828..a2309aff6cf7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repoeb7113db:tageb7113db"], "mode": "Force"}' + "targetTags": ["repob22512e7:tagb22512e7"], "mode": "Force"}' headers: Accept: - '*/*' @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:24 GMT + - Tue, 27 Apr 2021 22:44:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d95c2805-9c74-11eb-9841-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-276ae28b-a7aa-11eb-9c08-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d95c2805-9c74-11eb-9841-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-276ae28b-a7aa-11eb-9c08-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:37 GMT + - Tue, 27 Apr 2021 22:44:56 GMT expires: - '-1' pragma: @@ -100,11 +100,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoeb7113db","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_read"}]}]} ' headers: @@ -120,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:38 GMT + - Tue, 27 Apr 2021 22:44:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -129,7 +129,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoeb7113db:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_read" x-content-type-options: - nosniff status: @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:40 GMT + - Tue, 27 Apr 2021 22:44:59 GMT server: - openresty strict-transport-security: @@ -169,45 +169,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoeb7113db%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1080' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:25:40 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.516667' status: code: 200 message: OK @@ -223,14 +185,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoeb7113db", "tag": - {"name": "tageb7113db", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T16:25:28.2023232Z", "lastUpdateTime": "2021-04-13T16:25:28.2023232Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": + true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": + false}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -240,11 +202,11 @@ interactions: connection: - keep-alive content-length: - - '386' + - '313' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:40 GMT + - Tue, 27 Apr 2021 22:44:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -258,7 +220,8 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": + false}' headers: Accept: - application/json @@ -267,15 +230,17 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '91' + Content-Type: + - application/json User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoeb7113db","Action":"delete"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_write"}]}]} ' headers: @@ -287,11 +252,11 @@ interactions: connection: - keep-alive content-length: - - '208' + - '216' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:40 GMT + - Tue, 27 Apr 2021 22:44:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -300,7 +265,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoeb7113db:delete" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_write" x-content-type-options: - nosniff status: @@ -332,7 +297,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:41 GMT + - Tue, 27 Apr 2021 22:44:59 GMT server: - openresty strict-transport-security: @@ -340,12 +305,13 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.35' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoeb7113db%3Adelete&refresh_token=REDACTED + body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": + false}' headers: Accept: - application/json @@ -354,52 +320,20 @@ interactions: Connection: - keep-alive Content-Length: - - '1073' + - '91' Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:25:41 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": + false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, + "teleportEnabled": false}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -409,9 +343,11 @@ interactions: connection: - keep-alive content-length: - - '0' + - '317' + content-type: + - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:42 GMT + - Tue, 27 Apr 2021 22:45:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -421,15 +357,12 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-int-docker-content-digest: - - sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 - x-ms-ratelimit-remaining-calls-per-second: - - '8.000000' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: - body: null + body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": + true}' headers: Accept: - application/json @@ -437,14 +370,18 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoeb7113db","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_write"}]}]} ' headers: @@ -456,11 +393,11 @@ interactions: connection: - keep-alive content-length: - - '215' + - '216' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:47 GMT + - Tue, 27 Apr 2021 22:45:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -469,7 +406,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoeb7113db:metadata_read" + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_write" x-content-type-options: - nosniff status: @@ -501,7 +438,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:48 GMT + - Tue, 27 Apr 2021 22:45:00 GMT server: - openresty strict-transport-security: @@ -509,12 +446,13 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.416667' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoeb7113db%3Ametadata_read&refresh_token=REDACTED + body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": + true}' headers: Accept: - application/json @@ -523,51 +461,20 @@ interactions: Connection: - keep-alive Content-Length: - - '1080' + - '87' Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:25:48 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoeb7113db/_tags/tageb7113db + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": + true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": + false}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -577,11 +484,11 @@ interactions: connection: - keep-alive content-length: - - '81' + - '313' content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:25:48 GMT + - Tue, 27 Apr 2021 22:45:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -592,6 +499,6 @@ interactions: x-content-type-options: - nosniff status: - code: 404 - message: Not Found + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml similarity index 73% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index 6ecbcb8f388d..d8e453c07b96 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:00:56 GMT + - Tue, 27 Apr 2021 22:45:02 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6e1cdc3d-9c71-11eb-8ef9-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3300b277-a7aa-11eb-ba39-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6e1cdc3d-9c71-11eb-8ef9-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3300b277-a7aa-11eb-ba39-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:01:09 GMT + - Tue, 27 Apr 2021 22:45:15 GMT expires: - '-1' pragma: @@ -108,7 +108,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:10 GMT + date: Tue, 27 Apr 2021 22:45:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,43 +136,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:11 GMT + date: Tue, 27 Apr 2021 22:45:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.1' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:11 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.083333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -184,15 +156,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db", - "to_be_deleted"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db", "to_be_deleted"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '167' + content-length: '190' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:11 GMT + date: Tue, 27 Apr 2021 22:45:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,7 +193,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:12 GMT + date: Tue, 27 Apr 2021 22:45:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -249,43 +221,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:14 GMT + date: Tue, 27 Apr 2021 22:45:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.383333' + x-ms-ratelimit-remaining-calls-per-second: '166.416667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:to_be_deleted:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:14 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.366667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -298,22 +242,22 @@ interactions: response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], + "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", + "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], "tagsDeleted": ["latest"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:16 GMT + date: Tue, 27 Apr 2021 22:45:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -343,7 +287,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:16 GMT + date: Tue, 27 Apr 2021 22:45:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -371,43 +315,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:16 GMT + date: Tue, 27 Apr 2021 22:45:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.25' + x-ms-ratelimit-remaining-calls-per-second: '166.35' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:16 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.233333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -419,14 +335,15 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2e8319c5", "repo308e19dd", "repo9b321760", "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", + "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", + "repod2be1c42", "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '151' + content-length: '174' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:16 GMT + date: Tue, 27 Apr 2021 22:45:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml similarity index 73% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository_doesnt_exist.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index b9a617192bef..d3402dd7ab5c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:17 GMT + date: Tue, 27 Apr 2021 22:45:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:18 GMT + date: Tue, 27 Apr 2021 22:45:23 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + 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:does_not_exist:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:18 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -102,7 +74,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:18 GMT + date: Tue, 27 Apr 2021 22:45:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml similarity index 96% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index 5d745cac17f8..64a90ca93e51 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 21:52:58 GMT + date: Tue, 27 Apr 2021 22:45:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -47,7 +47,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 21:52:59 GMT + date: Tue, 27 Apr 2021 22:45:25 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -77,7 +77,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 21:52:59 GMT + date: Tue, 27 Apr 2021 22:45:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml similarity index 52% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml index 207c459d50cc..ffd42ee11b13 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml @@ -7,28 +7,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + 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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:21 GMT + date: Tue, 27 Apr 2021 22:45:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests - request: body: access_token: REDACTED @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:22 GMT + date: Tue, 27 Apr 2021 22:45:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01: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 - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -92,58 +64,57 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "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:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' @@ -151,7 +122,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:22 GMT + date: Tue, 27 Apr 2021 22:45:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -160,5 +131,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml similarity index 52% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_descending.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml index 66788338baf4..747079df222e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml @@ -7,28 +7,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + 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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:30 GMT + date: Tue, 27 Apr 2021 22:45:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - request: body: access_token: REDACTED @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:31 GMT + date: Tue, 27 Apr 2021 22:45:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '166.383333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:31 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -92,65 +64,65 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:32 GMT + date: Tue, 27 Apr 2021 22:45:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -159,5 +131,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timedesc + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml similarity index 52% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_by_page.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml index c7d076295aa6..8192cd7c6273 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml @@ -7,28 +7,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + 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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:25 GMT + date: Tue, 27 Apr 2021 22:45:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - request: body: access_token: REDACTED @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:26 GMT + date: Tue, 27 Apr 2021 22:45:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.6' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:26 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.966667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -92,28 +64,29 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '886' + content-length: '931' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:27 GMT + date: Tue, 27 Apr 2021 22:45:31 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -121,7 +94,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=2 + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - request: body: null headers: @@ -130,28 +103,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:27 GMT + date: Tue, 27 Apr 2021 22:45:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= - request: body: access_token: REDACTED @@ -170,43 +143,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:27 GMT + date: Tue, 27 Apr 2021 22:45:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.95' + 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:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.933333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -215,29 +160,29 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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-length: '936' + content-length: '927' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:27 GMT + date: Tue, 27 Apr 2021 22:45:32 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -245,7 +190,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= - request: body: null headers: @@ -254,28 +199,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:27 GMT + date: Tue, 27 Apr 2021 22:45:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= - request: body: access_token: REDACTED @@ -294,43 +239,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:28 GMT + date: Tue, 27 Apr 2021 22:45:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.916667' + x-ms-ratelimit-remaining-calls-per-second: '166.55' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:28 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.9' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -339,29 +256,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: '937' + content-length: '889' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:28 GMT + date: Tue, 27 Apr 2021 22:45:33 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -369,7 +285,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= - request: body: null headers: @@ -378,28 +294,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:28 GMT + date: Tue, 27 Apr 2021 22:45:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= - request: body: access_token: REDACTED @@ -418,43 +334,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:28 GMT + date: Tue, 27 Apr 2021 22:45:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:28 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.866667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -463,29 +351,29 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "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-length: '935' + content-length: '936' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:29 GMT + date: Tue, 27 Apr 2021 22:45:34 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -493,7 +381,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= - request: body: null headers: @@ -502,28 +390,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:29 GMT + date: Tue, 27 Apr 2021 22:45:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= - request: body: access_token: REDACTED @@ -542,43 +430,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:29 GMT + date: Tue, 27 Apr 2021 22:45:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.85' + 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:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '164.833333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -587,27 +447,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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-length: '933' + content-length: '929' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:29 GMT + date: Tue, 27 Apr 2021 22:45:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -615,5 +475,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml similarity index 51% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_ascending.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml index e1b658071969..806fef615f9d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml @@ -7,28 +7,28 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + 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/hello-world","Action":"metadata_read"}]}]} + 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: '222' + content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:23 GMT + date: Tue, 27 Apr 2021 22:45:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - request: body: access_token: REDACTED @@ -47,43 +47,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:24 GMT + date: Tue, 27 Apr 2021 22:45:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:24 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -92,66 +64,65 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "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:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.3167347Z", "lastUpdateTime": - "2021-04-13T15:10:44.3167347Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.4329424Z", "lastUpdateTime": - "2021-04-13T15:10:44.4329424Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.596258Z", "lastUpdateTime": - "2021-04-13T15:10:44.596258Z", "architecture": "amd64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.7624881Z", "lastUpdateTime": - "2021-04-13T15:10:44.7624881Z", "architecture": "mips64le", "os": "linux", + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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": 0, "createdTime": "2021-04-13T15:10:44.8474328Z", "lastUpdateTime": - "2021-04-13T15:10:44.8474328Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1142611Z", "lastUpdateTime": - "2021-04-13T15:10:45.1142611Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.1653089Z", "lastUpdateTime": - "2021-04-13T15:10:45.1653089Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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": 0, "createdTime": "2021-04-13T15:10:45.2709645Z", "lastUpdateTime": - "2021-04-13T15:10:45.2709645Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 0, "createdTime": "2021-04-13T15:10:45.4455031Z", "lastUpdateTime": - "2021-04-13T15:10:45.4455031Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: Tue, 13 Apr 2021 16:01:25 GMT + date: Tue, 27 Apr 2021 22:45:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -160,5 +131,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests?orderby=timeasc + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml similarity index 62% rename from sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml rename to sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index 6be8156d3d51..f0ce85135969 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo308e19dd:tag308e19dd"], "mode": "Force"}' + "targetTags": ["repo2c591564:tag2c591564"], "mode": "Force"}' headers: Accept: - '*/*' @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:02:11 GMT + - Tue, 27 Apr 2021 22:45:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9ab50574-9c71-11eb-a64e-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-487f3557-a7aa-11eb-89b0-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9ab50574-9c71-11eb-a64e-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-487f3557-a7aa-11eb-89b0-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 16:02:24 GMT + - Tue, 27 Apr 2021 22:45:51 GMT expires: - '-1' pragma: @@ -96,11 +96,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo308e19dd","Action":"metadata_read"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_read"}]}]} ' headers: @@ -108,16 +108,16 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:25 GMT + date: Tue, 27 Apr 2021 22:45:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo308e19dd:metadata_read" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_read" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: access_token: REDACTED @@ -136,43 +136,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:26 GMT + date: Tue, 27 Apr 2021 22:45:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' + x-ms-ratelimit-remaining-calls-per-second: '166.55' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:26 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -181,20 +153,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-13T15:27:59.0688924Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '386' + content-length: '315' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:26 GMT + date: Tue, 27 Apr 2021 22:45:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -202,7 +174,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": false}' @@ -216,11 +188,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo308e19dd","Action":"metadata_write"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_write"}]}]} ' headers: @@ -228,16 +200,16 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:26 GMT + date: Tue, 27 Apr 2021 22:45:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo308e19dd:metadata_write" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_write" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: access_token: REDACTED @@ -256,43 +228,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:26 GMT + date: Tue, 27 Apr 2021 22:45:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:26 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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": false}' @@ -306,20 +250,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-13T15:27:59.0688924Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '390' + content-length: '319' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:27 GMT + date: Tue, 27 Apr 2021 22:45:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -327,7 +271,7 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": true}' @@ -341,11 +285,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo308e19dd","Action":"metadata_write"}]}]} + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_write"}]}]} ' headers: @@ -353,16 +297,16 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:27 GMT + date: Tue, 27 Apr 2021 22:45:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo308e19dd:metadata_write" + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_write" x-content-type-options: nosniff status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: access_token: REDACTED @@ -381,43 +325,15 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:27 GMT + date: Tue, 27 Apr 2021 22:45:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:27 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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": true}' @@ -431,20 +347,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-13T15:27:59.0688924Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '386' + content-length: '315' content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:28 GMT + date: Tue, 27 Apr 2021 22:45:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -452,5 +368,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_registry_artifact.yaml deleted file mode 100644 index d1ff96c9e3d9..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_registry_artifact.yaml +++ /dev/null @@ -1,685 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo2e8319c5"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '141' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:58:08 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0a1d83ca-9c71-11eb-b1c5-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0a1d83ca-9c71-11eb-b1c5-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:58: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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2e8319c5/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2e8319c5","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: - - Tue, 13 Apr 2021 15:58: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2e8319c5:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:58:24 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2e8319c5%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1080' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2e8319c5/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2e8319c5", "manifests": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:58:13.8951666Z", "lastUpdateTime": - "2021-04-13T15:58:13.8951666Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:21:39.6157682Z", "lastUpdateTime": - "2021-04-13T15:21:39.6157682Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.1170415Z", "lastUpdateTime": - "2021-04-13T15:21:40.1170415Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.5270603Z", "lastUpdateTime": - "2021-04-13T15:21:40.5270603Z", "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": 0, "createdTime": "2021-04-13T15:21:40.454173Z", "lastUpdateTime": - "2021-04-13T15:21:40.454173Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.7670881Z", "lastUpdateTime": - "2021-04-13T15:21:40.7670881Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:21:41.2075665Z", "lastUpdateTime": - "2021-04-13T15:21:41.2075665Z", "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": 0, "createdTime": "2021-04-13T15:21:40.6661892Z", "lastUpdateTime": - "2021-04-13T15:21:40.6661892Z", "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": 0, "createdTime": "2021-04-13T15:21:40.8867036Z", "lastUpdateTime": - "2021-04-13T15:21:40.8867036Z", "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": 0, "createdTime": "2021-04-13T15:21:40.2946843Z", "lastUpdateTime": - "2021-04-13T15:21:40.2946843Z", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:58:24 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 - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo2e8319c5/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2e8319c5","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: - - Tue, 13 Apr 2021 15:58: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2e8319c5:delete" - 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.0b1 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: - - Tue, 13 Apr 2021 15:58:25 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.583333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2e8319c5%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1073' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:25 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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo2e8319c5/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - 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: - - Tue, 13 Apr 2021 15:58: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-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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2e8319c5/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2e8319c5","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: - - Tue, 13 Apr 2021 15:58: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2e8319c5:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:58:25 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 -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2e8319c5%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1080' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:58:26 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 -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2e8319c5/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2e8319c5", "manifests": - [{"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:21:39.6157682Z", "lastUpdateTime": - "2021-04-13T15:21:39.6157682Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.1170415Z", "lastUpdateTime": - "2021-04-13T15:21:40.1170415Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.5270603Z", "lastUpdateTime": - "2021-04-13T15:21:40.5270603Z", "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": 0, "createdTime": "2021-04-13T15:21:40.454173Z", "lastUpdateTime": - "2021-04-13T15:21:40.454173Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.7670881Z", "lastUpdateTime": - "2021-04-13T15:21:40.7670881Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:21:41.2075665Z", "lastUpdateTime": - "2021-04-13T15:21:41.2075665Z", "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": 0, "createdTime": "2021-04-13T15:21:40.6661892Z", "lastUpdateTime": - "2021-04-13T15:21:40.6661892Z", "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": 0, "createdTime": "2021-04-13T15:21:40.8867036Z", "lastUpdateTime": - "2021-04-13T15:21:40.8867036Z", "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": 0, "createdTime": "2021-04-13T15:21:40.2946843Z", "lastUpdateTime": - "2021-04-13T15:21:40.2946843Z", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:58: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag_does_not_exist.yaml deleted file mode 100644 index 335425473d4c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_delete_tag_does_not_exist.yaml +++ /dev/null @@ -1,174 +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: - - Tue, 13 Apr 2021 16:25: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:delete" - 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.0b1 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: - - Tue, 13 Apr 2021 16:25:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1082' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:25:51 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 - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: - - Tue, 13 Apr 2021 16:25: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-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_repository_client.test_get_registry_artifact_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_registry_artifact_properties.yaml deleted file mode 100644 index ec9cd13a59e0..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_registry_artifact_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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest - 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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:21 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:21 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "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: - - Tue, 13 Apr 2021 15:59: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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 - 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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:22 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:22 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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifest": {"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:10:44.0031749Z", "lastUpdateTime": - "2021-04-13T15:10:44.0031749Z", "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: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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "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: - - '1591' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml deleted file mode 100644 index 9e497fcc4546..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml +++ /dev/null @@ -1,171 +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest - 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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:24 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:25 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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "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: - - Tue, 13 Apr 2021 15:59: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_repository_client.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml deleted file mode 100644 index 5648956f3dbc..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml +++ /dev/null @@ -1,187 +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.0b1 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: - - Tue, 13 Apr 2021 15:59:38 GMT - docker-distribution-api-version: - - registry/2.0 - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - - max-age=31536000; includeSubDomains - www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:40 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:40 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.0b1 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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: - - '1625' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml deleted file mode 100644 index ada0b3b907c5..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml +++ /dev/null @@ -1,187 +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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":"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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:42 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: - - '1625' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59: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_repository_client.test_list_tags_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_by_page.yaml deleted file mode 100644 index e78c30a9269b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_by_page.yaml +++ /dev/null @@ -1,521 +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?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/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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=2 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "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: - - '700' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&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/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, 13 Apr 2021 15:59:45 GMT - 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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:46 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 - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v2", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "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: - - '694' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59:46 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&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/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, 13 Apr 2021 15:59: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:46 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:46 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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v4", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml deleted file mode 100644 index 8a9c8ffdebdf..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml +++ /dev/null @@ -1,187 +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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":"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, 13 Apr 2021 15:59: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 15:59:49 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1089' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 15:59:49 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 -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v4", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "latest", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "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: - - '1625' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59: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_repository_client.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties.yaml deleted file mode 100644 index 91a695cc8734..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties.yaml +++ /dev/null @@ -1,853 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["reposetmani160e197b:tag160e197b"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '160' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 15:59:51 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-46e7b3da-9c71-11eb-8402-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-46e7b3da-9c71-11eb-8402-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:03 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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetmani160e197b","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, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetmani160e197b:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:06 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1087' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:06 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:59:56.2368632Z", "lastUpdateTime": - "2021-04-13T15:59:56.2368632Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:59:54.8879904Z", "lastUpdateTime": - "2021-04-13T15:59:54.8879904Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag160e197b"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:59:55.6201409Z", "lastUpdateTime": - "2021-04-13T15:59:55.6201409Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:59:56.1502681Z", "lastUpdateTime": - "2021-04-13T15:59:56.1502681Z", "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": 0, "createdTime": "2021-04-13T15:59:55.3932858Z", "lastUpdateTime": - "2021-04-13T15:59:55.3932858Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:59:56.9062272Z", "lastUpdateTime": - "2021-04-13T15:59:56.9062272Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:59:55.990813Z", "lastUpdateTime": - "2021-04-13T15:59:55.990813Z", "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": 0, "createdTime": "2021-04-13T15:59:55.914385Z", "lastUpdateTime": - "2021-04-13T15:59:55.914385Z", "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": 0, "createdTime": "2021-04-13T15:59:56.51538Z", "lastUpdateTime": - "2021-04-13T15:59:56.51538Z", "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": 0, "createdTime": "2021-04-13T15:59:55.5069301Z", "lastUpdateTime": - "2021-04-13T15:59:55.5069301Z", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:07 GMT - docker-distribution-api-version: - - registry/2.0 - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetmani160e197b","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: - - Tue, 13 Apr 2021 16:00: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetmani160e197b:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:07 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1088' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:07 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": 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:59:56.2368632Z", "lastUpdateTime": - "2021-04-13T15:59:56.2368632Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": - false, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-04-07T23:08:03.9486288Z\",\"summary\":[{\"severity\":\"High\",\"count\":2},{\"severity\":\"Medium\",\"count\":2},{\"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: - - '831' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00: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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetmani160e197b","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetmani160e197b:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:08 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 -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1088' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:08 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T15:59:56.2368632Z", "lastUpdateTime": - "2021-04-13T15:59:56.2368632Z", "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-04-07T23:08:03.9486288Z\",\"summary\":[{\"severity\":\"High\",\"count\":2},{\"severity\":\"Medium\",\"count\":2},{\"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: - - '827' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00: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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetmani160e197b","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetmani160e197b:delete" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:09 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Adelete&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1080' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00: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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/reposetmani160e197b - response: - body: - string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], - "tagsDeleted": ["tag160e197b"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '793' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:12 GMT - docker-distribution-api-version: - - registry/2.0 - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 202 - message: Accepted -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties_does_not_exist.yaml deleted file mode 100644 index 2ced9a32cfee..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_manifest_properties_does_not_exist.yaml +++ /dev/null @@ -1,175 +0,0 @@ -interactions: -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc58b1fc1/_manifests/sha256%3Aabcdef - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc58b1fc1","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: - - Tue, 13 Apr 2021 16:00: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc58b1fc1:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:14 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc58b1fc1%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1081' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:14 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}' - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc58b1fc1/_manifests/sha256%3Aabcdef - 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: - - Tue, 13 Apr 2021 16:00: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 - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml deleted file mode 100644 index c2da2bba6682..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_properties.yaml +++ /dev/null @@ -1,363 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo412415c5:tag412415c5"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 21:51:31 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b9118bb8-a7a2-11eb-aa2d-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b9118bb8-a7a2-11eb-aa2d-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 21:51:44 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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo412415c5","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: - - Tue, 27 Apr 2021 21:51:45 GMT - 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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo412415c5:metadata_read" - 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.0b1 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: - - Tue, 27 Apr 2021 21:51:47 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo412415c5", "createdTime": - "2021-04-27T21:22:52.1208647Z", "lastUpdateTime": "2021-04-27T21:22:50.4689043Z", - "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: - - Tue, 27 Apr 2021 21:51: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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo412415c5","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: - - Tue, 27 Apr 2021 21:51: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo412415c5:metadata_write" - 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.0b1 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: - - Tue, 27 Apr 2021 21:51:47 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo412415c5 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo412415c5", "createdTime": - "2021-04-27T21:22:52.1208647Z", "lastUpdateTime": "2021-04-27T21:22:50.4689043Z", - "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: - - Tue, 27 Apr 2021 21:51: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties.yaml deleted file mode 100644 index 31c94472bac5..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties.yaml +++ /dev/null @@ -1,618 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo9b321760:tag9b321760"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:16 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5623b8fd-9c71-11eb-bbf8-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5623b8fd-9c71-11eb-bbf8-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00: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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9b321760","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9b321760:metadata_read" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:31 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo9b321760%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1080' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:32 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-13T15:25:07.1063989Z", - "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: - - Tue, 13 Apr 2021 16:00: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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9b321760","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9b321760:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:32 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo9b321760%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1081' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:32 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-13T15:25:07.1063989Z", - "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: - - Tue, 13 Apr 2021 16:00: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 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9b321760","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9b321760:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:33 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo9b321760%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1081' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:33 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9b321760/_tags/tag9b321760 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-13T15:25:07.1063989Z", - "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: - - Tue, 13 Apr 2021 16:00: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties_does_not_exist.yaml deleted file mode 100644 index ab0458971682..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_set_tag_properties_does_not_exist.yaml +++ /dev/null @@ -1,176 +0,0 @@ -interactions: -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b291da6/_tags/does_not_exist - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2b291da6","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: - - Tue, 13 Apr 2021 16:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2b291da6:metadata_write" - 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.0b1 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: - - Tue, 13 Apr 2021 16:00:36 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2b291da6%3Ametadata_write&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1081' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: - - Tue, 13 Apr 2021 16:00:36 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.616667' - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b291da6/_tags/does_not_exist - 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: - - Tue, 13 Apr 2021 16:00: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: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml deleted file mode 100644 index 0f40141f59a2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml +++ /dev/null @@ -1,519 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repod2be1c42"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '141' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:38 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63062301-9c71-11eb-8527-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63062301-9c71-11eb-8527-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:00:50 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repod2be1c42","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: Tue, 13 Apr 2021 16:00:51 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repod2be1c42:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -- 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.0b1 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: Tue, 13 Apr 2021 16:00:52 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:00:52 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T16:00:42.6031591Z", "lastUpdateTime": - "2021-04-13T16:00:42.6031591Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:25:38.8855426Z", "lastUpdateTime": - "2021-04-13T15:25:38.8855426Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.446821Z", "lastUpdateTime": - "2021-04-13T15:25:39.446821Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.5529344Z", "lastUpdateTime": - "2021-04-13T15:25:39.5529344Z", "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": 0, "createdTime": "2021-04-13T15:25:41.2149666Z", "lastUpdateTime": - "2021-04-13T15:25:41.2149666Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:25:41.5156502Z", "lastUpdateTime": - "2021-04-13T15:25:41.5156502Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.1916235Z", "lastUpdateTime": - "2021-04-13T15:25:39.1916235Z", "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": 0, "createdTime": "2021-04-13T15:25:39.6486819Z", "lastUpdateTime": - "2021-04-13T15:25:39.6486819Z", "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": 0, "createdTime": "2021-04-13T15:25:39.7430131Z", "lastUpdateTime": - "2021-04-13T15:25:39.7430131Z", "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": 0, "createdTime": "2021-04-13T15:25:40.4014688Z", "lastUpdateTime": - "2021-04-13T15:25:40.4014688Z", "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: Tue, 13 Apr 2021 16:00:53 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repod2be1c42","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: Tue, 13 Apr 2021 16:00:53 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repod2be1c42:delete" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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: Tue, 13 Apr 2021 16:00:53 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:00:53 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Tue, 13 Apr 2021 16:00:54 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://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repod2be1c42","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: Tue, 13 Apr 2021 16:00:54 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repod2be1c42:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -- 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.0b1 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: Tue, 13 Apr 2021 16:00:54 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:00:54 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": - [{"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:25:38.8855426Z", "lastUpdateTime": - "2021-04-13T15:25:38.8855426Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.446821Z", "lastUpdateTime": - "2021-04-13T15:25:39.446821Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.5529344Z", "lastUpdateTime": - "2021-04-13T15:25:39.5529344Z", "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": 0, "createdTime": "2021-04-13T15:25:41.2149666Z", "lastUpdateTime": - "2021-04-13T15:25:41.2149666Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:25:41.5156502Z", "lastUpdateTime": - "2021-04-13T15:25:41.5156502Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:25:39.1916235Z", "lastUpdateTime": - "2021-04-13T15:25:39.1916235Z", "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": 0, "createdTime": "2021-04-13T15:25:39.6486819Z", "lastUpdateTime": - "2021-04-13T15:25:39.6486819Z", "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": 0, "createdTime": "2021-04-13T15:25:39.7430131Z", "lastUpdateTime": - "2021-04-13T15:25:39.7430131Z", "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": 0, "createdTime": "2021-04-13T15:25:40.4014688Z", "lastUpdateTime": - "2021-04-13T15:25:40.4014688Z", "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: Tue, 13 Apr 2021 16:00:55 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml deleted file mode 100644 index 6fe98cb611fe..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml +++ /dev/null @@ -1,430 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["library/hello-world:to_be_deleted"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '162' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:25:53 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ea5b2ef8-9c74-11eb-8270-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ea5b2ef8-9c74-11eb-8270-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:26:05 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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, 13 Apr 2021 16:26:06 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -- 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.0b1 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: Tue, 13 Apr 2021 16:26:07 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:26:07 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "to_be_deleted", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T16:25:56.6730439Z", "lastUpdateTime": "2021-04-13T16:25:56.6730439Z", - "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: '395' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:26:08 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/library%2Fhello-world/_tags/to_be_deleted -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: Tue, 13 Apr 2021 16:26:08 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:delete" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -- 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.0b1 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: Tue, 13 Apr 2021 16:26:08 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.633333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:26:08 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.616667' - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Tue, 13 Apr 2021 16:26:09 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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 202 - message: Accepted - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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, 13 Apr 2021 16:26:14 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -- 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.0b1 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: Tue, 13 Apr 2021 16:26:14 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.6' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:26:14 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: Tue, 13 Apr 2021 16:26: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: 404 - message: Not Found - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag_does_not_exist.yaml deleted file mode 100644 index ce0782d678b5..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag_does_not_exist.yaml +++ /dev/null @@ -1,115 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: Tue, 13 Apr 2021 16:26:15 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:delete" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -- 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.0b1 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: Tue, 13 Apr 2021 16:26:16 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/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:26:16 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted - 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: Tue, 13 Apr 2021 16:26:17 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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/to_be_deleted -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml deleted file mode 100644 index a3344a735cc4..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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.0b1 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: Tue, 13 Apr 2021 16:01:34 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.45' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:34 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.4' - 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.0b1 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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: '1625' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:34 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/library%2Fhello-world/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml deleted file mode 100644 index 003a18863b0e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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":"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, 13 Apr 2021 16:01:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timeasc -- 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.0b1 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: Tue, 13 Apr 2021 16:01:36 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/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:36 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: '1625' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:36 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/library%2Fhello-world/_tags?orderby=timeasc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_by_page.yaml deleted file mode 100644 index 12c8c656b668..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_by_page.yaml +++ /dev/null @@ -1,357 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?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/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, 13 Apr 2021 16:01:36 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=2 -- 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.0b1 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: Tue, 13 Apr 2021 16:01:37 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:37 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=2 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "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: '700' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:38 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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=2 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&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/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, 13 Apr 2021 16:01:38 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&n=2&orderby= -- 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.0b1 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: Tue, 13 Apr 2021 16:01:38 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.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:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:38 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v2", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "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: '694' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:38 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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v1&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&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/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, 13 Apr 2021 16:01:38 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&n=2&orderby= -- 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.0b1 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: Tue, 13 Apr 2021 16:01:39 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:39 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v4", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "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: '387' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01: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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=v3&n=2&orderby= -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml deleted file mode 100644 index 89cb9ce6fc49..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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":"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, 13 Apr 2021 16:01:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timedesc -- 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.0b1 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: Tue, 13 Apr 2021 16:01:40 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/hello-world:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:40 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "v4", "digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.3229504Z", "lastUpdateTime": "2021-04-13T15:10:45.3229504Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:45.0282838Z", "lastUpdateTime": "2021-04-13T15:10:45.0282838Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.668453Z", "lastUpdateTime": "2021-04-13T15:10:44.668453Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:44.2755611Z", "lastUpdateTime": "2021-04-13T15:10:44.2755611Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "latest", "digest": - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "createdTime": "2021-04-13T15:10:43.9172084Z", "lastUpdateTime": "2021-04-13T15:10:43.9172084Z", - "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: '1625' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:41 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/library%2Fhello-world/_tags?orderby=timedesc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties.yaml deleted file mode 100644 index 9e6427718b76..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties.yaml +++ /dev/null @@ -1,632 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["reposetb7cc1bf8:tagb7cc1bf8"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '156' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:01:42 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-899405ae-9c71-11eb-a4d4-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-899405ae-9c71-11eb-a4d4-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 13 Apr 2021 16:01: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetb7cc1bf8","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: Tue, 13 Apr 2021 16:01:55 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetb7cc1bf8:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests -- 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.0b1 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: Tue, 13 Apr 2021 16:01:56 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:reposetb7cc1bf8:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:56 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.4148312Z", "lastUpdateTime": - "2021-04-13T16:01:46.4148312Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.471707Z", "lastUpdateTime": - "2021-04-13T16:01:46.471707Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagb7cc1bf8"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.6782695Z", "lastUpdateTime": - "2021-04-13T16:01:46.6782695Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.8912435Z", "lastUpdateTime": - "2021-04-13T16:01:46.8912435Z", "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": 0, "createdTime": "2021-04-13T16:01:47.2992356Z", "lastUpdateTime": - "2021-04-13T16:01:47.2992356Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T16:01:47.4047852Z", "lastUpdateTime": - "2021-04-13T16:01:47.4047852Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T16:01:47.7896587Z", "lastUpdateTime": - "2021-04-13T16:01:47.7896587Z", "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": 0, "createdTime": "2021-04-13T16:01:48.9042046Z", "lastUpdateTime": - "2021-04-13T16:01:48.9042046Z", "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": 0, "createdTime": "2021-04-13T16:01:47.0119966Z", "lastUpdateTime": - "2021-04-13T16:01:47.0119966Z", "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": 0, "createdTime": "2021-04-13T16:01:46.7710235Z", "lastUpdateTime": - "2021-04-13T16:01:46.7710235Z", "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: Tue, 13 Apr 2021 16:01:57 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://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetb7cc1bf8","Action":"metadata_write"}]}]} - - ' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '219' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:57 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetb7cc1bf8:metadata_write" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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: Tue, 13 Apr 2021 16:01:57 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:reposetb7cc1bf8:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:57 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.4148312Z", "lastUpdateTime": - "2021-04-13T16:01:46.4148312Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": - false, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-04-07T23:08:03.9486288Z\",\"summary\":[{\"severity\":\"High\",\"count\":2},{\"severity\":\"Medium\",\"count\":2},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '827' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01: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://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetb7cc1bf8","Action":"metadata_write"}]}]} - - ' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '219' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetb7cc1bf8:metadata_write" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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: Tue, 13 Apr 2021 16:01: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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:reposetb7cc1bf8:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:01:59 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-13T16:01:46.4148312Z", "lastUpdateTime": - "2021-04-13T16:01:46.4148312Z", "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-04-07T23:08:03.9486288Z\",\"summary\":[{\"severity\":\"High\",\"count\":2},{\"severity\":\"Medium\",\"count\":2},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '823' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01: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://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"reposetb7cc1bf8","Action":"delete"}]}]} - - ' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '211' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:01:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:reposetb7cc1bf8:delete" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8 -- 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.0b1 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: Tue, 13 Apr 2021 16:01:59 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:reposetb7cc1bf8:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:00 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8 - response: - body: - string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9"], - "tagsDeleted": ["tagb7cc1bf8"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '793' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:08 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://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties_does_not_exist.yaml deleted file mode 100644 index 4035d913800b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_manifest_properties_does_not_exist.yaml +++ /dev/null @@ -1,121 +0,0 @@ -interactions: -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo8cab223e/_manifests/sha256:abcdef - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo8cab223e","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: Tue, 13 Apr 2021 16:02:08 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo8cab223e:metadata_write" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo8cab223e/_manifests/sha256:abcdef -- 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.0b1 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: Tue, 13 Apr 2021 16:02:09 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo8cab223e:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:09 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://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo8cab223e/_manifests/sha256:abcdef - response: - body: - string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '70' - content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 16:02:09 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://fake_url.azurecr.io/acr/v1/repo8cab223e/_manifests/sha256:abcdef -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml deleted file mode 100644 index ea14dd9b9a80..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_properties.yaml +++ /dev/null @@ -1,275 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repocc7d1842:tagcc7d1842"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 21:51:49 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c407c0b8-a7a2-11eb-aea5-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c407c0b8-a7a2-11eb-aea5-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 21:52: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repocc7d1842","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: Tue, 27 Apr 2021 21:52:03 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repocc7d1842:metadata_read" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repocc7d1842 -- 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.0b1 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: Tue, 27 Apr 2021 21:52:04 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/exchange -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repocc7d1842", "createdTime": - "2021-04-27T21:23:10.2127384Z", "lastUpdateTime": "2021-04-27T21:23:08.5162954Z", - "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: '319' - content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 21:52:04 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/repocc7d1842 -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repocc7d1842","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: Tue, 27 Apr 2021 21:52:04 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repocc7d1842:metadata_write" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repocc7d1842 -- 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.0b1 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: Tue, 27 Apr 2021 21:52:05 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://fake_url.azurecr.io/oauth2/exchange -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocc7d1842 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repocc7d1842", "createdTime": - "2021-04-27T21:23:10.2127384Z", "lastUpdateTime": "2021-04-27T21:23:08.5162954Z", - "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: '319' - content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 21:52:05 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/repocc7d1842 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties_does_not_exist.yaml deleted file mode 100644 index 30c86e6309a1..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties_does_not_exist.yaml +++ /dev/null @@ -1,122 +0,0 @@ -interactions: -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe5c92023/_tags/does_not_exist - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoe5c92023","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: Tue, 13 Apr 2021 16:02:28 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoe5c92023:metadata_write" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repoe5c92023/_tags/does_not_exist -- 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.0b1 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: Tue, 13 Apr 2021 16:02:29 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe5c92023:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Tue, 13 Apr 2021 16:02:29 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://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe5c92023/_tags/does_not_exist - 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: Tue, 13 Apr 2021 16:02: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: 404 - message: Not Found - url: https://fake_url.azurecr.io/acr/v1/repoe5c92023/_tags/does_not_exist -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index 6af268880801..234c1d75f63f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -83,6 +83,15 @@ def test_set_properties(self, containerregistry_endpoint): assert c.can_list == new_properties.content_permissions.can_list assert c.can_write == new_properties.content_permissions.can_write + c = ContentPermissions(can_delete=True, can_read=True, can_list=True, can_write=True) + properties.content_permissions = c + new_properties = repo_client.set_properties(c) + + assert c.can_delete == new_properties.content_permissions.can_delete + assert c.can_read == new_properties.content_permissions.can_read + assert c.can_list == new_properties.content_permissions.can_list + assert c.can_write == new_properties.content_permissions.can_write + # @acr_preparer() # def test_get_tag(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, self.repository) @@ -94,7 +103,7 @@ def test_set_properties(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") count = 0 for artifact in client.list_registry_artifacts(): @@ -110,7 +119,7 @@ def test_list_registry_artifacts(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") results_per_page = 2 pages = client.list_registry_artifacts(results_per_page=results_per_page) @@ -126,7 +135,7 @@ def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 @@ -140,7 +149,7 @@ def test_list_registry_artifacts_descending(self, containerregistry_endpoint): @acr_preparer() def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index 25d41c06e0a8..8616f6ca76e7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -26,62 +26,35 @@ class TestContainerRepository(AsyncContainerRegistryTestClass): - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) - - async for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - - @acr_preparer() - async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) - results_per_page = 2 - pages = client.list_registry_artifacts(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - reg_count = 0 - async for tag in page: - reg_count += 1 - assert reg_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - async def test_list_tags(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + # @acr_preparer() + # async def test_list_tags(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) - tags = client.list_tags() - assert isinstance(tags, AsyncItemPaged) - count = 0 - async for tag in tags: - count += 1 + # tags = client.list_tags() + # assert isinstance(tags, AsyncItemPaged) + # count = 0 + # async for tag in tags: + # count += 1 - assert count > 0 + # assert count > 0 - @acr_preparer() - async def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + # @acr_preparer() + # async def test_list_tags_by_page(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) - results_per_page = 2 + # results_per_page = 2 - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - tag_count = 0 - async for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 + # pages = client.list_tags(results_per_page=results_per_page) + # page_count = 0 + # async for page in pages.by_page(): + # tag_count = 0 + # async for tag in page: + # tag_count += 1 + # assert tag_count <= results_per_page + # page_count += 1 - assert page_count >= 1 + # assert page_count >= 1 # @acr_preparer() # async def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): @@ -153,127 +126,127 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # assert len(artifacts) > 0 # assert len(artifacts) == count - 1 - @acr_preparer() - async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_container_repository(containerregistry_endpoint, repository) - - tag_props = await client.get_tag_properties(tag_identifier) - permissions = tag_props.content_permissions - - received = await client.set_tag_properties( - tag_identifier, - ContentPermissions( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.content_permissions.can_write - assert not received.content_permissions.can_read - assert not received.content_permissions.can_list - assert not received.content_permissions.can_delete - - # Reset them - await client.set_tag_properties( - tag_identifier, - ContentPermissions( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - await client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) + # @acr_preparer() + # async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("repo") + # tag_identifier = self.get_resource_name("tag") + # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + + # client = self.create_container_repository(containerregistry_endpoint, repository) + + # tag_props = await client.get_tag_properties(tag_identifier) + # permissions = tag_props.content_permissions + + # received = await client.set_tag_properties( + # tag_identifier, + # ContentPermissions( + # can_delete=False, + # can_list=False, + # can_read=False, + # can_write=False, + # ), + # ) + + # assert not received.content_permissions.can_write + # assert not received.content_permissions.can_read + # assert not received.content_permissions.can_list + # assert not received.content_permissions.can_delete + + # # Reset them + # await client.set_tag_properties( + # tag_identifier, + # ContentPermissions( + # can_delete=True, + # can_list=True, + # can_read=True, + # can_write=True, + # ), + # ) - @acr_preparer() - async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposet") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + # @acr_preparer() + # async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - client = self.create_container_repository(containerregistry_endpoint, repository) + # with pytest.raises(ResourceNotFoundError): + # await client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) - async for artifact in client.list_registry_artifacts(): - permissions = artifact.content_permissions - - received_permissions = await client.set_manifest_properties( - artifact.digest, - ContentPermissions( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - assert not received_permissions.content_permissions.can_delete - assert not received_permissions.content_permissions.can_read - assert not received_permissions.content_permissions.can_list - assert not received_permissions.content_permissions.can_write - - # Reset and delete - await client.set_manifest_properties( - artifact.digest, - ContentPermissions( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - await client.delete() - - break + # @acr_preparer() + # async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): + # repository = self.get_resource_name("reposet") + # tag_identifier = self.get_resource_name("tag") + # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + + # client = self.create_container_repository(containerregistry_endpoint, repository) + + # async for artifact in client.list_registry_artifacts(): + # permissions = artifact.content_permissions + + # received_permissions = await client.set_manifest_properties( + # artifact.digest, + # ContentPermissions( + # can_delete=False, + # can_list=False, + # can_read=False, + # can_write=False, + # ), + # ) + # assert not received_permissions.content_permissions.can_delete + # assert not received_permissions.content_permissions.can_read + # assert not received_permissions.content_permissions.can_list + # assert not received_permissions.content_permissions.can_write + + # # Reset and delete + # await client.set_manifest_properties( + # artifact.digest, + # ContentPermissions( + # can_delete=True, + # can_list=True, + # can_read=True, + # can_write=True, + # ), + # ) + # await client.delete() + + # break - @acr_preparer() - async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) + # @acr_preparer() + # async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - with pytest.raises(ResourceNotFoundError): - await client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) + # with pytest.raises(ResourceNotFoundError): + # await client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) - @acr_preparer() - async def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + # @acr_preparer() + # async def test_list_tags_descending(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 + # prev_last_updated_on = None + # count = 0 + # async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): + # if prev_last_updated_on: + # assert tag.last_updated_on < prev_last_updated_on + # prev_last_updated_on = tag.last_updated_on + # count += 1 - assert count > 0 + # assert count > 0 - @acr_preparer() - async def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + # @acr_preparer() + # async def test_list_tags_ascending(self, containerregistry_endpoint): + # client = self.create_container_repository(containerregistry_endpoint, self.repository) - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 + # prev_last_updated_on = None + # count = 0 + # async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): + # if prev_last_updated_on: + # assert tag.last_updated_on > prev_last_updated_on + # prev_last_updated_on = tag.last_updated_on + # count += 1 - assert count > 0 + # assert count > 0 @acr_preparer() async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") count = 0 async for artifact in client.list_registry_artifacts(): @@ -287,9 +260,25 @@ async def test_list_registry_artifacts(self, containerregistry_endpoint): assert count > 0 + @acr_preparer() + async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") + results_per_page = 2 + + pages = client.list_registry_artifacts(results_per_page=results_per_page) + page_count = 0 + async for page in pages.by_page(): + reg_count = 0 + async for tag in page: + reg_count += 1 + assert reg_count <= results_per_page + page_count += 1 + + assert page_count >= 1 + @acr_preparer() async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 @@ -305,7 +294,7 @@ async def test_list_registry_artifacts_descending(self, containerregistry_endpoi @acr_preparer() async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_container_repository(containerregistry_endpoint, self.repository) + client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 @@ -345,6 +334,15 @@ async def test_set_properties(self, containerregistry_endpoint): properties.content_permissions = c new_properties = await repo_client.set_properties(c) + assert c.can_delete == new_properties.content_permissions.can_delete + assert c.can_read == new_properties.content_permissions.can_read + assert c.can_list == new_properties.content_permissions.can_list + assert c.can_write == new_properties.content_permissions.can_write + + c = ContentPermissions(can_delete=True, can_read=True, can_list=True, can_write=True) + properties.content_permissions = c + new_properties = await repo_client.set_properties(c) + assert c.can_delete == new_properties.content_permissions.can_delete assert c.can_read == new_properties.content_permissions.can_read assert c.can_list == new_properties.content_permissions.can_list From b91302c88eb6a6b3c88f3163e96799b9ebd2ca76 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 11:30:26 -0400 Subject: [PATCH 04/42] working sync registry artifact class --- .../azure/containerregistry/__init__.py | 6 +- .../_container_registry_client.py | 15 +- .../_container_repository.py | 34 +- .../azure/containerregistry/_models.py | 4 +- .../containerregistry/_registry_artifact.py | 272 +++++++ .../aio/_async_container_repository.py | 18 +- .../tests/asynctestcase.py | 2 +- ...rtifact.test_delete_registry_artifact.yaml | 526 +++++++++++++ ...lete_registry_artifact_does_not_exist.yaml | 130 ++++ ...est_registry_artifact.test_delete_tag.yaml | 364 +++++++++ ...tifact.test_delete_tag_does_not_exist.yaml | 136 ++++ ...artifact.test_get_manifest_properties.yaml | 404 ++++++++++ ...et_manifest_properties_does_not_exist.yaml | 41 ++ ...stry_artifact.test_get_tag_properties.yaml | 399 ++++++++++ ...est_get_tag_properties_does_not_exist.yaml | 130 ++++ ...test_registry_artifact.test_list_tags.yaml | 413 +++++++++++ ...artifact.test_set_manifest_properties.yaml | 696 ++++++++++++++++++ ...stry_artifact.test_set_tag_properties.yaml | 681 +++++++++++++++++ .../tests/test_container_repository.py | 6 +- .../tests/test_container_repository_async.py | 4 +- .../tests/test_registry_artifact.py | 193 +++++ .../azure-containerregistry/tests/testcase.py | 4 +- 22 files changed, 4446 insertions(+), 32 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index cd7ee4064a73..b9b2ec95f1c8 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -12,11 +12,12 @@ ContentPermissions, DeletedRepositoryResult, RegistryArtifactOrderBy, - RegistryArtifactProperties, + ArtifactManifestProperties, RepositoryProperties, TagOrderBy, TagProperties, ) +from ._registry_artifact import RegistryArtifact from ._version import VERSION __version__ = VERSION @@ -26,8 +27,9 @@ "ContainerRepository", "ContentPermissions", "DeletedRepositoryResult", + "RegistryArtifact", "RegistryArtifactOrderBy", - "RegistryArtifactProperties", + "ArtifactManifestProperties", "RepositoryProperties", "TagOrderBy", "TagProperties", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index ecc9cc118ece..bd92674699fb 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -20,6 +20,7 @@ from ._generated.models import AcrErrors from ._helpers import _parse_next_link from ._models import DeletedRepositoryResult +from ._registry_artifact import RegistryArtifact if TYPE_CHECKING: from typing import Any, Dict @@ -167,7 +168,7 @@ def get_next(next_link=None): @distributed_trace def get_repository_client(self, repository, **kwargs): # type: (str, Dict[str, Any]) -> ContainerRepository - """Get a repository client + """Get a Container Repository object :param str repository: The repository to create a client for :returns: :class:`~azure.containerregistry.ContainerRepository` @@ -180,3 +181,15 @@ def get_repository_client(self, repository, **kwargs): return ContainerRepository( self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs ) + + @distributed_trace + def get_artifact(self, repository_name, tag_or_digest, **kwargs): + # type: (str, str, Dict[str, Any]) -> RegistryArtifact + """Get a Registry Artifact object + + :param str repository_name: Name of the repository + :param str tag_or_digest: The tag or digest of the artifact + :returns: :class:`~azure.containerregistry.RegistryArtifact` + :raises: None + """ + return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index cf426e00cf14..e56870c87263 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -20,10 +20,11 @@ from ._helpers import _is_tag, _parse_next_link from ._models import ( DeletedRepositoryResult, - RegistryArtifactProperties, + ArtifactManifestProperties, RepositoryProperties, TagProperties, ) +from ._registry_artifact import RegistryArtifact if TYPE_CHECKING: from typing import Any, Dict @@ -49,6 +50,7 @@ def __init__(self, endpoint, repository, credential, **kwargs): endpoint = "https://" + endpoint self._endpoint = endpoint self.repository = repository + self._credential = credential super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) def _get_digest_from_tag(self, tag): @@ -106,18 +108,18 @@ def get_properties(self, **kwargs): # @distributed_trace # def get_registry_artifact_properties(self, tag_or_digest, **kwargs): - # # type: (str, Dict[str, Any]) -> RegistryArtifactProperties + # # type: (str, Dict[str, Any]) -> ArtifactManifestProperties # """Get the properties of a registry artifact # :param tag_or_digest: The tag/digest of a registry artifact # :type tag_or_digest: str - # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` # """ # if _is_tag(tag_or_digest): # tag_or_digest = self._get_digest_from_tag(tag_or_digest) - # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access # self._client.container_registry.get_manifest_properties( # self.repository, tag_or_digest, **kwargs # ) @@ -139,7 +141,7 @@ def get_properties(self, **kwargs): @distributed_trace def list_registry_artifacts(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[RegistryArtifactProperties] + # type: (Dict[str, Any]) -> ItemPaged[ArtifactManifestProperties] """List the artifacts for a repository :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -149,7 +151,7 @@ def list_registry_artifacts(self, **kwargs): :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int - :return: ItemPaged[:class:`RegistryArtifactProperties`] + :return: ItemPaged[:class:`ArtifactManifestProperties`] :rtype: :class:`~azure.core.paging.ItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -160,7 +162,7 @@ def list_registry_artifacts(self, **kwargs): cls = kwargs.pop( "cls", lambda objs: [ - RegistryArtifactProperties._from_generated(x) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x) for x in objs # pylint: disable=protected-access ], ) @@ -375,17 +377,17 @@ def get_next(next_link=None): # @distributed_trace # def set_manifest_properties(self, digest, permissions, **kwargs): - # # type: (str, ContentPermissions, Dict[str, Any]) -> RegistryArtifactProperties + # # type: (str, ContentPermissions, Dict[str, Any]) -> ArtifactManifestProperties # """Set the properties for a manifest # :param digest: Digest of a manifest # :type digest: str # :param permissions: The property's values to be set # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` # """ - # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access # self._client.container_registry.update_manifest_properties( # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access # ) @@ -420,3 +422,15 @@ def set_properties(self, properties, **kwargs): return RepositoryProperties._from_generated( # pylint: disable=protected-access self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) ) + + @distributed_trace + def get_artifact(self, tag_or_digest, **kwargs): + # type: (str, str, Dict[str, Any]) -> RegistryArtifact + """Get a Registry Artifact object + + :param str repository_name: Name of the repository + :param str tag_or_digest: The tag or digest of the artifact + :returns: :class:`~azure.containerregistry.RegistryArtifact` + :raises: None + """ + return RegistryArtifact(self._endpoint, self.repository, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index ba8333511e06..62b92e1627d9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -68,7 +68,7 @@ def _from_generated(cls, gen): ) -class RegistryArtifactProperties(object): +class ArtifactManifestProperties(object): """Represents properties of a registry artifact :ivar str cpu_architecture: CPU Architecture of an artifact @@ -100,7 +100,7 @@ def __init__(self, **kwargs): @classmethod def _from_generated(cls, generated): - # type: (ManifestAttributesBase) -> RegistryArtifactProperties + # type: (ManifestAttributesBase) -> ArtifactManifestProperties return cls( cpu_architecture=generated.architecture, created_on=generated.created_on, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py new file mode 100644 index 000000000000..7b24561b2b65 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -0,0 +1,272 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from typing import TYPE_CHECKING + +from azure.core.exceptions import ( + ClientAuthenticationError, + ResourceNotFoundError, + ResourceExistsError, + HttpResponseError, + map_error, +) +from azure.core.paging import ItemPaged +from azure.core.tracing.decorator import distributed_trace + +from ._base_client import ContainerRegistryBaseClient +from ._generated.models import AcrErrors +from ._helpers import _is_tag, _parse_next_link +from ._models import ( + ArtifactManifestProperties, + TagProperties, +) + +if TYPE_CHECKING: + from typing import Any, Dict + from azure.core.credentials import TokenCredential + from ._models import ContentPermissions + + +class RegistryArtifact(ContainerRegistryBaseClient): + def __init__(self, endpoint, repository, tag_or_digest, credential, **kwargs): + # type: (str, str, str, TokenCredential, Dict[str, Any]) -> None + """Create a RegistryArtifact from an endpoint, repository, a tag or digest, and a credential + + :param endpoint: An ACR endpoint + :type endpoint: str + :param repository: The name of a repository + :type repository: str + :param tag_or_digest: Tag or digest of the artifact + :type tag_or_digest: str + :param credential: The credential with which to authenticate + :type credential: :class:`~azure.core.credentials.TokenCredential` + :returns: None + :raises: None + """ + if not endpoint.startswith("https://") and not endpoint.startswith("http://"): + endpoint = "https://" + endpoint + self._endpoint = endpoint + self._credential = credential + self.repository = repository + self.tag_or_digest = tag_or_digest + self.fully_qualified_name = self._endpoint + self.repository + self.tag_or_digest + self._digest = None + self._tag = None + super(RegistryArtifact, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) + + def _get_digest_from_tag(self): + # type: (str) -> str + tag_props = self.get_tag_properties(self.tag_or_digest) + return tag_props.digest + + @distributed_trace + def delete(self, **kwargs): + # type: (str, Dict[str, Any]) -> None + """Delete a registry artifact + + :returns: None + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else self._get_digest_from_tag() + self._client.container_registry.delete_manifest(self.repository, self._digest, **kwargs) + + @distributed_trace + def delete_tag(self, tag, **kwargs): + # type: (str, Dict[str, Any]) -> None + """Delete a tag from a repository + + :param str tag: The tag to be deleted + :returns: None + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + self._client.container_registry.delete_tag(self.repository, tag, **kwargs) + + @distributed_trace + def get_manifest_properties(self, **kwargs): + # type: (str, Dict[str, Any]) -> ArtifactManifestProperties + """Get the properties of a registry artifact + + :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else self._get_digest_from_tag() + + return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access + self._client.container_registry.get_manifest_properties( + self.repository, self._digest, **kwargs + ) + ) + + @distributed_trace + def get_tag_properties(self, tag, **kwargs): + # type: (str, Dict[str, Any]) -> TagProperties + """Get the properties for a tag + + :param tag: The tag to get properties for + :type tag: str + :returns: :class:`~azure.containerregistry.TagProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + return TagProperties._from_generated( # pylint: disable=protected-access + self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) + ) + + # TODO: this needs to only look up for one artifact + @distributed_trace + def list_tags(self, **kwargs): + # type: (Dict[str, Any]) -> ItemPaged[TagProperties] + """List the tags for a repository + + :keyword last: Query parameter for the last item in the previous call. Ensuing + call will return values after last lexically + :paramtype last: str + :keyword order_by: Query parameter for ordering by time ascending or descending + :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` + :keyword results_per_page: Number of repositories to return per page + :paramtype results_per_page: int + :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + :rtype: :class:`~azure.core.paging.ItemPaged` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + name = self.repository + last = kwargs.pop("last", None) + n = kwargs.pop("results_per_page", None) + orderby = kwargs.pop("order_by", None) + digest = kwargs.pop("digest", None) + cls = kwargs.pop( + "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + ) + + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access + "accept", accept, "str" + ) + + if not next_link: + # Construct URL + url = "/acr/v1/{name}/_tags" + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if last is not None: + query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access + "last", last, "str" + ) + if n is not None: + query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access + "n", n, "int" + ) + if orderby is not None: + query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access + "orderby", orderby, "str" + ) + if digest is not None: + query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access + "digest", digest, "str" + ) + + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._client._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + return request + + def extract_data(pipeline_response): + deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access + list_of_elem = deserialized.tag_attribute_bases + if cls: + list_of_elem = cls(list_of_elem) + link = None + if "Link" in pipeline_response.http_response.headers.keys(): + link = _parse_next_link(pipeline_response.http_response.headers["Link"]) + return link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access + request, stream=False, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access + AcrErrors, response + ) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def set_manifest_properties(self, permissions, **kwargs): + # type: (str, ContentPermissions, Dict[str, Any]) -> ArtifactManifestProperties + """Set the properties for a manifest + + :param permissions: The property's values to be set + :type permissions: ContentPermissions + :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if _is_tag(self.tag_or_digest) else self._get_digest_from_tag() + + return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access + self._client.container_registry.update_manifest_properties( + self.repository, self._digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + ) + ) + + @distributed_trace + def set_tag_properties(self, tag, permissions, **kwargs): + # type: (str, ContentPermissions, Dict[str, Any]) -> TagProperties + """Set the properties for a tag + + :param tag: Tag to set properties for + :type tag: str + :param permissions: The property's values to be set + :type permissions: ContentPermissions + :returns: :class:`~azure.containerregistry.TagProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + return TagProperties._from_generated( # pylint: disable=protected-access + self._client.container_registry.update_tag_attributes( + self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + ) + ) \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index 8a6ed6034ee1..95d9c72d1e56 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -22,7 +22,7 @@ from .._models import ( ContentPermissions, DeletedRepositoryResult, - RegistryArtifactProperties, + ArtifactManifestProperties, RepositoryProperties, TagProperties, ) @@ -104,18 +104,18 @@ async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties # @distributed_trace_async # async def get_registry_artifact_properties( # self, tag_or_digest: str, **kwargs: Dict[str, Any] - # ) -> RegistryArtifactProperties: + # ) -> ArtifactManifestProperties: # """Get the properties of a registry artifact # :param tag_or_digest: The tag/digest of a registry artifact # :type tag_or_digest: str - # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` # """ # if _is_tag(tag_or_digest): # tag_or_digest = self._get_digest_from_tag(tag_or_digest) - # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access # await self._client.container_registry.get_manifest_properties( # self.repository, tag_or_digest, **kwargs # ) @@ -135,7 +135,7 @@ async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties # ) @distributed_trace - def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[RegistryArtifactProperties]: + def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactManifestProperties]: """List the artifacts for a repository :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -145,7 +145,7 @@ def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[Re :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.RegistryArtifactProperties`] + :return: ItemPaged[:class:`~azure.containerregistry.ArtifactManifestProperties`] :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -156,7 +156,7 @@ def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[Re cls = kwargs.pop( "cls", lambda objs: [ - RegistryArtifactProperties._from_generated(x) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x) for x in objs # pylint: disable=protected-access ], ) @@ -378,10 +378,10 @@ async def get_next(next_link=None): # :type digest: str # :param permissions: The property's values to be set # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` + # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` # """ - # return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access + # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access # await self._client.container_registry.update_manifest_properties( # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access # ) diff --git a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py index b3475d5811c2..2d795f7bb4ca 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py @@ -16,7 +16,7 @@ from azure.containerregistry import ( TagProperties, ContentPermissions, - RegistryArtifactProperties, + ArtifactManifestProperties, ) from azure.core.credentials import AccessToken diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml new file mode 100644 index 000000000000..cc87aad06e03 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -0,0 +1,526 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo3c82158b:tag3c82158b"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:28:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6f0b17be-a836-11eb-a3b8-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6f0b17be-a836-11eb-a3b8-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:29:03 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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","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, 28 Apr 2021 15:29: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:metadata_read" + 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.0b1 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, 28 Apr 2021 15:29:06 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:28:54.8684172Z", "lastUpdateTime": + "2021-04-28T15:28:54.8684172Z", "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": 0, "createdTime": "2021-04-28T15:25:27.320821Z", "lastUpdateTime": + "2021-04-28T15:25:27.320821Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.6536514Z", "lastUpdateTime": + "2021-04-28T15:25:27.6536514Z", "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": 0, "createdTime": "2021-04-28T15:25:29.223197Z", "lastUpdateTime": + "2021-04-28T15:25:29.223197Z", "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": 0, "createdTime": "2021-04-28T15:25:27.8694422Z", "lastUpdateTime": + "2021-04-28T15:25:27.8694422Z", "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": 0, "createdTime": "2021-04-28T15:25:27.2462505Z", "lastUpdateTime": + "2021-04-28T15:25:27.2462505Z", "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": 0, "createdTime": "2021-04-28T15:25:26.8210861Z", "lastUpdateTime": + "2021-04-28T15:25:26.8210861Z", "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": 0, "createdTime": "2021-04-28T15:25:27.1316373Z", "lastUpdateTime": + "2021-04-28T15:25:27.1316373Z", "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": 0, "createdTime": "2021-04-28T15:25:26.9759284Z", "lastUpdateTime": + "2021-04-28T15:25:26.9759284Z", "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": 0, "createdTime": "2021-04-28T15:25:27.0302186Z", "lastUpdateTime": + "2021-04-28T15:25:27.0302186Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag3c82158b"], "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, 28 Apr 2021 15:29:07 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","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: + - Wed, 28 Apr 2021 15:29: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:delete" + 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.0b1 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, 28 Apr 2021 15:29:08 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 + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + 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: + - Wed, 28 Apr 2021 15:29: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-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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","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, 28 Apr 2021 15:29: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:metadata_read" + 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.0b1 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, 28 Apr 2021 15:29:19 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + 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: + - Wed, 28 Apr 2021 15:29: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: 404 + message: Not Found +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml new file mode 100644 index 000000000000..48cbdccb8fca --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -0,0 +1,130 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0ef1bd1","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, 28 Apr 2021 15:29: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0ef1bd1:metadata_read" + 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.0b1 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, 28 Apr 2021 15:29:21 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + 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: + - Wed, 28 Apr 2021 15:29: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: 404 + message: Not Found +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml new file mode 100644 index 000000000000..d8f6f5018b1b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -0,0 +1,364 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo34ab0fa1:tag34ab0fa10", "repo34ab0fa1:tag34ab0fa11", "repo34ab0fa1:tag34ab0fa12", + "repo34ab0fa1:tag34ab0fa13"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:22:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-876153ee-a835-11eb-9b89-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-876153ee-a835-11eb-9b89-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:22: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo34ab0fa1","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: + - Wed, 28 Apr 2021 15:22: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo34ab0fa1:delete" + 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.0b1 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, 28 Apr 2021 15:22: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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + 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: + - Wed, 28 Apr 2021 15:22: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-int-docker-content-digest: + - sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo34ab0fa1","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, 28 Apr 2021 15:22:38 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo34ab0fa1:metadata_read" + 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.0b1 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, 28 Apr 2021 15:22:38 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo34ab0fa1", "tags": + [{"name": "tag34ab0fa11", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.4424555Z", "lastUpdateTime": "2021-04-28T15:12:32.4424555Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag34ab0fa12", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.8815612Z", "lastUpdateTime": "2021-04-28T15:12:32.8815612Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag34ab0fa13", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.6269622Z", "lastUpdateTime": "2021-04-28T15:12:32.6269622Z", + "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: + - '1028' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:22: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_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml new file mode 100644 index 000000000000..6ec17537d5b6 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -0,0 +1,136 @@ +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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo506215e7","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: + - Wed, 28 Apr 2021 15:22:39 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo506215e7:delete" + 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.0b1 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, 28 Apr 2021 15:22:40 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 + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + 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: + - Wed, 28 Apr 2021 15:22: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-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_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml new file mode 100644 index 000000000000..f73c77b60405 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -0,0 +1,404 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo27331535:tag27331535"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:50:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-033362ee-a831-11eb-8d1b-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-033362ee-a831-11eb-8d1b-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:50:15 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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo27331535","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, 28 Apr 2021 14:50: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo27331535:metadata_read" + 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.0b1 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, 28 Apr 2021 14:50: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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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": 0, "createdTime": "2021-04-28T14:19:08.2257429Z", "lastUpdateTime": + "2021-04-28T14:19:08.2257429Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4130486Z", "lastUpdateTime": + "2021-04-28T14:19:08.4130486Z", "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": 0, "createdTime": "2021-04-28T14:19:08.9755326Z", "lastUpdateTime": + "2021-04-28T14:19:08.9755326Z", "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": 0, "createdTime": "2021-04-28T14:19:08.4645969Z", "lastUpdateTime": + "2021-04-28T14:19:08.4645969Z", "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": 0, "createdTime": "2021-04-28T14:19:10.1957381Z", "lastUpdateTime": + "2021-04-28T14:19:10.1957381Z", "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": 0, "createdTime": "2021-04-28T14:19:08.5821358Z", "lastUpdateTime": + "2021-04-28T14:19:08.5821358Z", "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": 0, "createdTime": "2021-04-28T14:19:07.9519043Z", "lastUpdateTime": + "2021-04-28T14:19:07.9519043Z", "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": 0, "createdTime": "2021-04-28T14:19:08.3640124Z", "lastUpdateTime": + "2021-04-28T14:19:08.3640124Z", "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": 0, "createdTime": "2021-04-28T14:19:07.5813228Z", "lastUpdateTime": + "2021-04-28T14:19:07.5813228Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag27331535"], "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, 28 Apr 2021 14:50:18 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo27331535","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, 28 Apr 2021 14:50: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo27331535:metadata_read" + 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.0b1 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, 28 Apr 2021 14:50:20 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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\":\"4/28/2021 2:50:07 + 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-length: + - '816' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:50: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_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml new file mode 100644 index 000000000000..8f2126654b35 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -0,0 +1,41 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl + response: + body: + string: '404 page not found + + ' + headers: + connection: + - keep-alive + content-length: + - '19' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:50: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: 404 + message: Not Found +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml new file mode 100644 index 000000000000..ddf956fec62b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -0,0 +1,399 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repoc1b5131a:tagc1b5131a"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:55:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c835a6d8-a831-11eb-b01e-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c835a6d8-a831-11eb-b01e-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:55: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc1b5131a","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, 28 Apr 2021 14:55: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc1b5131a:metadata_read" + 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.0b1 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, 28 Apr 2021 14:55:48 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T14:54:13.7370801Z", "lastUpdateTime": + "2021-04-28T14:54:13.7370801Z", "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": 0, "createdTime": "2021-04-28T14:54:14.1322608Z", "lastUpdateTime": + "2021-04-28T14:54:14.1322608Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.7528767Z", "lastUpdateTime": + "2021-04-28T14:54:14.7528767Z", "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": 0, "createdTime": "2021-04-28T14:54:14.230217Z", "lastUpdateTime": + "2021-04-28T14:54:14.230217Z", "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": 0, "createdTime": "2021-04-28T14:54:14.8303731Z", "lastUpdateTime": + "2021-04-28T14:54:14.8303731Z", "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": 0, "createdTime": "2021-04-28T14:54:14.3299515Z", "lastUpdateTime": + "2021-04-28T14:54:14.3299515Z", "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": 0, "createdTime": "2021-04-28T14:54:14.9895208Z", "lastUpdateTime": + "2021-04-28T14:54:14.9895208Z", "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": 0, "createdTime": "2021-04-28T14:54:13.9473522Z", "lastUpdateTime": + "2021-04-28T14:54:13.9473522Z", "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": 0, "createdTime": "2021-04-28T14:54:15.0966574Z", "lastUpdateTime": + "2021-04-28T14:54:15.0966574Z", "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": 0, "createdTime": "2021-04-28T14:54:13.2881991Z", "lastUpdateTime": + "2021-04-28T14:54:13.2881991Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagc1b5131a"], "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, 28 Apr 2021 14:55:49 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc1b5131a","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, 28 Apr 2021 14:55: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc1b5131a:metadata_read" + 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.0b1 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, 28 Apr 2021 14:55:50 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "tag": + {"name": "tagc1b5131a", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T14:54:13.3752616Z", "lastUpdateTime": "2021-04-28T14:54:13.3752616Z", + "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, 28 Apr 2021 14:55: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 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml new file mode 100644 index 000000000000..6b53ebfbcab9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -0,0 +1,130 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"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: + - '214' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:55: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:hello-world:metadata_read" + 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.0b1 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, 28 Apr 2021 14:55:52 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + 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: + - Wed, 28 Apr 2021 14:55: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_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml new file mode 100644 index 000000000000..06fb877f2dab --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -0,0 +1,413 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo25ce0f5d:tag25ce0f5d0", "repo25ce0f5d:tag25ce0f5d1", "repo25ce0f5d:tag25ce0f5d2", + "repo25ce0f5d:tag25ce0f5d3"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:10:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-dac3b29d-a833-11eb-9b60-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-dac3b29d-a833-11eb-9b60-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:10: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo25ce0f5d","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, 28 Apr 2021 15:10: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo25ce0f5d:metadata_read" + 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.0b1 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, 28 Apr 2021 15:10:38 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.2327437Z", "lastUpdateTime": + "2021-04-28T15:08:43.2327437Z", "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": 0, "createdTime": "2021-04-28T15:08:43.6358087Z", "lastUpdateTime": + "2021-04-28T15:08:43.6358087Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.0261552Z", "lastUpdateTime": + "2021-04-28T15:08:43.0261552Z", "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": 0, "createdTime": "2021-04-28T15:08:42.8222987Z", "lastUpdateTime": + "2021-04-28T15:08:42.8222987Z", "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": 0, "createdTime": "2021-04-28T15:08:42.642209Z", "lastUpdateTime": + "2021-04-28T15:08:42.642209Z", "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": 0, "createdTime": "2021-04-28T15:08:42.7421842Z", "lastUpdateTime": + "2021-04-28T15:08:42.7421842Z", "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": 0, "createdTime": "2021-04-28T15:08:42.8797686Z", "lastUpdateTime": + "2021-04-28T15:08:42.8797686Z", "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": 0, "createdTime": "2021-04-28T15:08:44.3818273Z", "lastUpdateTime": + "2021-04-28T15:08:44.3818273Z", "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": 0, "createdTime": "2021-04-28T15:08:43.5610254Z", "lastUpdateTime": + "2021-04-28T15:08:43.5610254Z", "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": 0, "createdTime": "2021-04-28T15:08:41.9477971Z", "lastUpdateTime": + "2021-04-28T15:08:41.9477971Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag25ce0f5d0", "tag25ce0f5d1", "tag25ce0f5d2", "tag25ce0f5d3"], + "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, 28 Apr 2021 15:10:39 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo25ce0f5d","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, 28 Apr 2021 15:10:39 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo25ce0f5d:metadata_read" + 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.0b1 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, 28 Apr 2021 15:10:40 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "tags": + [{"name": "tag25ce0f5d0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:08:41.893031Z", "lastUpdateTime": "2021-04-28T15:08:41.893031Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d1", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:08:42.0475975Z", "lastUpdateTime": "2021-04-28T15:08:42.0475975Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d2", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:08:42.3169392Z", "lastUpdateTime": "2021-04-28T15:08:42.3169392Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d3", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:08:42.2239254Z", "lastUpdateTime": "2021-04-28T15:08:42.2239254Z", + "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: + - '1345' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:10: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml new file mode 100644 index 000000000000..d93c8a94bbce --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -0,0 +1,696 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo28471541:tag28471541"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 14:59:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6445a7e7-a832-11eb-9af7-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6445a7e7-a832-11eb-9af7-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:00: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","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, 28 Apr 2021 15:00: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_read" + 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.0b1 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, 28 Apr 2021 15:00:10 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": + "2021-04-28T14:59:58.6083453Z", "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-04-28T14:59:58.4529475Z", "lastUpdateTime": + "2021-04-28T14:59:58.4529475Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-04-28T14:59:58.8894131Z", "lastUpdateTime": + "2021-04-28T14:59:58.8894131Z", "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-04-28T14:59:58.675623Z", "lastUpdateTime": + "2021-04-28T14:59:58.675623Z", "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-04-28T15:00:01.3711855Z", "lastUpdateTime": + "2021-04-28T15:00:01.3711855Z", "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-04-28T14:59:58.3951148Z", "lastUpdateTime": + "2021-04-28T14:59:58.3951148Z", "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-04-28T14:59:58.9904185Z", "lastUpdateTime": + "2021-04-28T14:59:58.9904185Z", "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-04-28T14:59:58.5397883Z", "lastUpdateTime": + "2021-04-28T14:59:58.5397883Z", "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-04-28T14:59:58.8209808Z", "lastUpdateTime": + "2021-04-28T14:59:58.8209808Z", "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-04-28T14:59:58.1204122Z", "lastUpdateTime": + "2021-04-28T14:59:58.1204122Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag28471541"], "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, 28 Apr 2021 15:00: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 +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","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, 28 Apr 2021 15:00: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_read" + 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.0b1 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, 28 Apr 2021 15:00:12 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": + "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 2:59:59 + 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-length: + - '818' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:00: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","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, 28 Apr 2021 15:00: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_write" + 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.0b1 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, 28 Apr 2021 15:00:13 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": + "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": + false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 2:59:59 + 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-length: + - '822' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:00: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","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, 28 Apr 2021 15:00: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_write" + 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.0b1 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, 28 Apr 2021 15:00:14 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": + "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 2:59:59 + 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-length: + - '818' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:00: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 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml new file mode 100644 index 000000000000..ed4b04e4154f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -0,0 +1,681 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repoc28d1326:tagc28d1326"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:04:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-02341642-a833-11eb-89df-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-02341642-a833-11eb-89df-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:04: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","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, 28 Apr 2021 15:04: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_read" + 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.0b1 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, 28 Apr 2021 15:04:34 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:02:29.8734878Z", "lastUpdateTime": + "2021-04-28T15:02:29.8734878Z", "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": 0, "createdTime": "2021-04-28T15:02:29.439862Z", "lastUpdateTime": + "2021-04-28T15:02:29.439862Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:02:29.196474Z", "lastUpdateTime": + "2021-04-28T15:02:29.196474Z", "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": 0, "createdTime": "2021-04-28T15:02:29.314296Z", "lastUpdateTime": + "2021-04-28T15:02:29.314296Z", "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": 0, "createdTime": "2021-04-28T15:02:29.247207Z", "lastUpdateTime": + "2021-04-28T15:02:29.247207Z", "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": 0, "createdTime": "2021-04-28T15:02:29.9524376Z", "lastUpdateTime": + "2021-04-28T15:02:29.9524376Z", "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": 0, "createdTime": "2021-04-28T15:02:29.6299853Z", "lastUpdateTime": + "2021-04-28T15:02:29.6299853Z", "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": 0, "createdTime": "2021-04-28T15:02:29.125237Z", "lastUpdateTime": + "2021-04-28T15:02:29.125237Z", "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": 0, "createdTime": "2021-04-28T15:02:30.1569299Z", "lastUpdateTime": + "2021-04-28T15:02:30.1569299Z", "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": 0, "createdTime": "2021-04-28T15:02:28.6053947Z", "lastUpdateTime": + "2021-04-28T15:02:28.6053947Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagc28d1326"], "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, 28 Apr 2021 15:04:35 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","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, 28 Apr 2021 15:04: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_read" + 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.0b1 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, 28 Apr 2021 15:04:36 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", + "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: + - '388' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:04: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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","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, 28 Apr 2021 15:04: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_write" + 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.0b1 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, 28 Apr 2021 15:04:37 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": 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", + "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: + - '388' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:04: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","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, 28 Apr 2021 15:04: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_write" + 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.0b1 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, 28 Apr 2021 15:04:38 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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", + "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: + - '384' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:04: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/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index 234c1d75f63f..6d18bfc8f659 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -15,7 +15,7 @@ DeletedRepositoryResult, RepositoryProperties, RegistryArtifactOrderBy, - RegistryArtifactProperties, + ArtifactManifestProperties, TagProperties, TagOrderBy, ) @@ -108,7 +108,7 @@ def test_list_registry_artifacts(self, containerregistry_endpoint): count = 0 for artifact in client.list_registry_artifacts(): assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) + assert isinstance(artifact, ArtifactManifestProperties) assert artifact.created_on is not None assert isinstance(artifact.created_on, datetime) assert artifact.last_updated_on is not None @@ -167,7 +167,7 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # properties = client.get_registry_artifact_properties("latest") - # assert isinstance(properties, RegistryArtifactProperties) + # assert isinstance(properties, ArtifactManifestProperties) # assert isinstance(properties.created_on, datetime) # assert isinstance(properties.last_updated_on, datetime) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index 8616f6ca76e7..959c0fd4f667 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -13,7 +13,7 @@ RepositoryProperties, ContentPermissions, RegistryArtifactOrderBy, - RegistryArtifactProperties, + ArtifactManifestProperties, TagOrderBy, ) from azure.containerregistry.aio import ContainerRegistryClient, ContainerRepository @@ -251,7 +251,7 @@ async def test_list_registry_artifacts(self, containerregistry_endpoint): count = 0 async for artifact in client.list_registry_artifacts(): assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) + assert isinstance(artifact, ArtifactManifestProperties) assert artifact.created_on is not None assert isinstance(artifact.created_on, datetime) assert artifact.last_updated_on is not None diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py new file mode 100644 index 000000000000..82660920fb8b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py @@ -0,0 +1,193 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from datetime import datetime +import pytest + +from devtools_testutils import AzureTestCase + +from azure.containerregistry import ( + ContainerRepository, + ContainerRegistryClient, + ContentPermissions, + DeletedRepositoryResult, + RepositoryProperties, + RegistryArtifactOrderBy, + ArtifactManifestProperties, + TagProperties, + TagOrderBy, +) +from azure.core.exceptions import ResourceNotFoundError +from azure.core.paging import ItemPaged + +from testcase import ContainerRegistryTestClass, AcrBodyReplacer, FakeTokenCredential +from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD +from preparer import acr_preparer + + +class TestContainerRepository(ContainerRegistryTestClass): + def set_up(self, endpoint, name): + repo_client = self.create_container_repository(endpoint, name) + + for artifact in repo_client.list_registry_artifacts(): + return repo_client.get_artifact(artifact.digest) + + @acr_preparer() + def test_get_manifest_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + properties = reg_artifact.get_manifest_properties() + + assert isinstance(properties, ArtifactManifestProperties) + assert isinstance(properties.content_permissions, ContentPermissions) + + @acr_preparer() + def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): + repo_client = self.create_container_repository(containerregistry_endpoint, "hello-world") + + reg_artifact = repo_client.get_artifact("sha256:abcdefghijkl") + + with pytest.raises(ResourceNotFoundError): + reg_artifact.get_manifest_properties() + + @acr_preparer() + def test_set_manifest_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + properties = reg_artifact.get_manifest_properties() + c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + + received = reg_artifact.set_manifest_properties(c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + received = reg_artifact.set_manifest_properties(c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + @acr_preparer() + def test_get_tag_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + properties = reg_artifact.get_tag_properties(tag) + + assert isinstance(properties, TagProperties) + assert properties.name == tag + + @acr_preparer() + def test_get_tag_properties_does_not_exist(self, containerregistry_endpoint): + repo_client = self.create_container_repository(containerregistry_endpoint, "hello-world") + + reg_artifact = repo_client.get_artifact("sha256:abcdefghijkl") + + with pytest.raises(ResourceNotFoundError): + reg_artifact.get_tag_properties("doesnotexist") + + @acr_preparer() + def test_set_tag_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + properties = reg_artifact.get_tag_properties(tag) + c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + + received = reg_artifact.set_tag_properties(tag, c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + received = reg_artifact.set_tag_properties(tag, c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + @acr_preparer() + def test_list_tags(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + tags = ["{}:{}".format(repo, tag + str(i)) for i in range(4)] + self.import_image(HELLO_WORLD, tags) + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + count = 0 + for tag in reg_artifact.list_tags(): + assert "{}:{}".format(repo, tag.name) in tags + count += 1 + assert count == 4 + + @acr_preparer() + def test_delete_tag(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + tags = ["{}:{}".format(repo, tag + str(i)) for i in range(4)] + self.import_image(HELLO_WORLD, tags) + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(tag + str(0)) + + reg_artifact.delete_tag(tag + str(0)) + + count = 0 + for tag in reg_artifact.list_tags(): + assert "{}:{}".format(repo, tag.name) in tags[1:] + count += 1 + assert count == 3 + + @acr_preparer() + def test_delete_tag_does_not_exist(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(DOES_NOT_EXIST) + + with pytest.raises(ResourceNotFoundError): + reg_artifact.delete_tag(DOES_NOT_EXIST) + + @acr_preparer() + def test_delete_registry_artifact(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + + reg_artifact.delete() + self.sleep(10) + + with pytest.raises(ResourceNotFoundError): + reg_artifact.get_manifest_properties() + + @acr_preparer() + def test_delete_registry_artifact_does_not_exist(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(DOES_NOT_EXIST) + + with pytest.raises(ResourceNotFoundError): + reg_artifact.delete() diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 721a59a58ced..7ce9522d3a9a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -17,7 +17,7 @@ ContainerRegistryClient, TagProperties, ContentPermissions, - RegistryArtifactProperties, + ArtifactManifestProperties, ) from azure.core.credentials import AccessToken @@ -228,7 +228,7 @@ def assert_tag( assert tag.repository == repository def assert_registry_artifact(self, tag_or_digest, expected_tag_or_digest): - assert isinstance(tag_or_digest, RegistryArtifactProperties) + assert isinstance(tag_or_digest, ArtifactManifestProperties) assert tag_or_digest == expected_tag_or_digest From 6f7c55c77bc6392e1943ddecae9b069f21280233 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 11:53:31 -0400 Subject: [PATCH 05/42] async registry artifact --- .../azure/containerregistry/aio/__init__.py | 2 + .../aio/_async_container_registry_client.py | 13 + .../aio/_async_container_repository.py | 12 + .../aio/_async_registry_artifact.py | 265 +++++++++ ...est_registry_artifact.test_delete_tag.yaml | 24 +- ...tifact.test_delete_tag_does_not_exist.yaml | 8 +- ...test_registry_artifact.test_list_tags.yaml | 26 +- ...t_async.test_delete_registry_artifact.yaml | 390 +++++++++++++ ...lete_registry_artifact_does_not_exist.yaml | 86 +++ ...gistry_artifact_async.test_delete_tag.yaml | 271 +++++++++ ..._async.test_delete_tag_does_not_exist.yaml | 87 +++ ...ct_async.test_get_manifest_properties.yaml | 316 +++++++++++ ...et_manifest_properties_does_not_exist.yaml | 29 + ...rtifact_async.test_get_tag_properties.yaml | 311 +++++++++++ ...est_get_tag_properties_does_not_exist.yaml | 86 +++ ...egistry_artifact_async.test_list_tags.yaml | 325 +++++++++++ ...ct_async.test_set_manifest_properties.yaml | 520 ++++++++++++++++++ ...rtifact_async.test_set_tag_properties.yaml | 505 +++++++++++++++++ .../tests/test_registry_artifact_async.py | 186 +++++++ 19 files changed, 3433 insertions(+), 29 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py index 98ab2a7b4103..7e75d4d4a42d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py @@ -8,8 +8,10 @@ from ._async_container_registry_client import ContainerRegistryClient from ._async_container_repository import ContainerRepository +from ._async_registry_artifact import RegistryArtifact __all__ = [ "ContainerRegistryClient", "ContainerRepository", + "RegistryArtifact" ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 7220f8331de7..ea1900fe416b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -22,6 +22,7 @@ from .._generated.models import AcrErrors from .._helpers import _parse_next_link from .._models import RepositoryProperties, DeletedRepositoryResult +from ._async_registry_artifact import RegistryArtifact if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential @@ -178,3 +179,15 @@ def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> Co return ContainerRepository( self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs ) + + @distributed_trace + def get_artifact(self, repository_name, tag_or_digest, **kwargs): + # type: (str, str, Dict[str, Any]) -> RegistryArtifact + """Get a Registry Artifact object + + :param str repository_name: Name of the repository + :param str tag_or_digest: The tag or digest of the artifact + :returns: :class:`~azure.containerregistry.RegistryArtifact` + :raises: None + """ + return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index 95d9c72d1e56..b2c2216d0891 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -26,6 +26,7 @@ RepositoryProperties, TagProperties, ) +from ._async_registry_artifact import RegistryArtifact if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential @@ -417,3 +418,14 @@ async def set_properties(self, properties, **kwargs): return RepositoryProperties._from_generated( # pylint: disable=protected-access await self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) ) + + @distributed_trace + def get_artifact(self, tag_or_digest: str, **kwargs: Dict[str, Any]) -> RegistryArtifact: + """Get a Registry Artifact object + + :param str repository_name: Name of the repository + :param str tag_or_digest: The tag or digest of the artifact + :returns: :class:`~azure.containerregistry.RegistryArtifact` + :raises: None + """ + return RegistryArtifact(self._endpoint, self.repository, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py new file mode 100644 index 000000000000..783b7a2a3fa0 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -0,0 +1,265 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from typing import TYPE_CHECKING, Dict, Any + +from azure.core.exceptions import ( + ClientAuthenticationError, + ResourceNotFoundError, + ResourceExistsError, + HttpResponseError, + map_error, +) +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async + +from ._async_base_client import ContainerRegistryBaseClient +from .._generated.models import AcrErrors +from .._helpers import _is_tag, _parse_next_link +from .._models import ( + ContentPermissions, + ArtifactManifestProperties, + TagProperties, +) + +if TYPE_CHECKING: + from typing import Any, Dict + from azure.core.credentials import AsyncTokenCredential + from ._models import ContentPermissions + + +class RegistryArtifact(ContainerRegistryBaseClient): + def __init__(self, endpoint: str, repository: str, tag_or_digest: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any]) -> None: + """Create a RegistryArtifact from an endpoint, repository, a tag or digest, and a credential + + :param endpoint: An ACR endpoint + :type endpoint: str + :param repository: The name of a repository + :type repository: str + :param tag_or_digest: Tag or digest of the artifact + :type tag_or_digest: str + :param credential: The credential with which to authenticate + :type credential: :class:`~azure.core.credentials.TokenCredential` + :returns: None + :raises: None + """ + if not endpoint.startswith("https://") and not endpoint.startswith("http://"): + endpoint = "https://" + endpoint + self._endpoint = endpoint + self._credential = credential + self.repository = repository + self.tag_or_digest = tag_or_digest + self.fully_qualified_name = self._endpoint + self.repository + self.tag_or_digest + self._digest = None + self._tag = None + super(RegistryArtifact, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) + + async def _get_digest_from_tag(self): + # type: () -> str + tag_props = await self.get_tag_properties(self.tag_or_digest) + return tag_props.digest + + @distributed_trace_async + async def delete(self, **kwargs: Dict[str, Any]) -> None: + """Delete a registry artifact + + :returns: None + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() + await self._client.container_registry.delete_manifest(self.repository, self._digest, **kwargs) + + @distributed_trace_async + async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: + """Delete a tag from a repository + + :param str tag: The tag to be deleted + :returns: None + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + await self._client.container_registry.delete_tag(self.repository, tag, **kwargs) + + @distributed_trace_async + async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactManifestProperties: + """Get the properties of a registry artifact + + :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() + + return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access + await self._client.container_registry.get_manifest_properties( + self.repository, self._digest, **kwargs + ) + ) + + @distributed_trace_async + async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: + """Get the properties for a tag + + :param tag: The tag to get properties for + :type tag: str + :returns: :class:`~azure.containerregistry.TagProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + return TagProperties._from_generated( # pylint: disable=protected-access + await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) + ) + + @distributed_trace + def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: + """List the tags for a repository + + :keyword last: Query parameter for the last item in the previous call. Ensuing + call will return values after last lexically + :paramtype last: str + :keyword order_by: Query parameter for ordering by time ascending or descending + :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` + :keyword results_per_page: Number of repositories to return per page + :paramtype results_per_page: int + :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + name = self.repository + last = kwargs.pop("last", None) + n = kwargs.pop("results_per_page", None) + orderby = kwargs.pop("order_by", None) + digest = kwargs.pop("digest", None) + cls = kwargs.pop( + "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + ) + + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access + "accept", accept, "str" + ) + + if not next_link: + # Construct URL + url = "/acr/v1/{name}/_tags" + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._client._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if last is not None: + query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access + "last", last, "str" + ) + if n is not None: + query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access + "n", n, "int" + ) + if orderby is not None: + query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access + "orderby", orderby, "str" + ) + if digest is not None: + query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access + "digest", digest, "str" + ) + + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._client._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + return request + + async def extract_data(pipeline_response): + deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access + list_of_elem = deserialized.tag_attribute_bases + if cls: + list_of_elem = cls(list_of_elem) + link = None + if "Link" in pipeline_response.http_response.headers.keys(): + link = _parse_next_link(pipeline_response.http_response.headers["Link"]) + return link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access + request, stream=False, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access + AcrErrors, response + ) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def set_manifest_properties(self, permissions: ContentPermissions, **kwargs: Dict[str, Any]) -> ArtifactManifestProperties: + """Set the properties for a manifest + + :param permissions: The property's values to be set + :type permissions: ContentPermissions + :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + if not self._digest: + self._digest = self.tag_or_digest if _is_tag(self.tag_or_digest) else self._get_digest_from_tag() + + return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access + await self._client.container_registry.update_manifest_properties( + self.repository, self._digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + ) + ) + + @distributed_trace_async + async def set_tag_properties(self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any]) -> TagProperties: + """Set the properties for a tag + + :param tag: Tag to set properties for + :type tag: str + :param permissions: The property's values to be set + :type permissions: ContentPermissions + :returns: :class:`~azure.containerregistry.TagProperties` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + return TagProperties._from_generated( # pylint: disable=protected-access + await self._client.container_registry.update_tag_attributes( + self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + ) + ) \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index d8f6f5018b1b..c4bd57ccfc6c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:22 GMT + - Wed, 28 Apr 2021 15:51:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-876153ee-a835-11eb-9b89-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a225f1d4-a839-11eb-94f3-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-876153ee-a835-11eb-9b89-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a225f1d4-a839-11eb-94f3-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:35 GMT + - Wed, 28 Apr 2021 15:51:58 GMT expires: - '-1' pragma: @@ -123,7 +123,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:36 GMT + - Wed, 28 Apr 2021 15:51:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -164,7 +164,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:37 GMT + - Wed, 28 Apr 2021 15:52:00 GMT server: - openresty strict-transport-security: @@ -172,7 +172,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.65' status: code: 200 message: OK @@ -205,7 +205,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 15:22:38 GMT + - Wed, 28 Apr 2021 15:52:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -254,7 +254,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:38 GMT + - Wed, 28 Apr 2021 15:52:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -295,7 +295,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:38 GMT + - Wed, 28 Apr 2021 15:52:01 GMT server: - openresty strict-transport-security: @@ -303,7 +303,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.616667' status: code: 200 message: OK @@ -348,7 +348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:38 GMT + - Wed, 28 Apr 2021 15:52:02 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 6ec17537d5b6..dc343ad2747a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:39 GMT + - Wed, 28 Apr 2021 15:52:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:40 GMT + - Wed, 28 Apr 2021 15:52:04 GMT server: - openresty strict-transport-security: @@ -82,7 +82,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.616667' status: code: 200 message: OK @@ -118,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:22:41 GMT + - Wed, 28 Apr 2021 15:52:04 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index 06fb877f2dab..434f8fbd8afa 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:23 GMT + - Wed, 28 Apr 2021 15:50:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-dac3b29d-a833-11eb-9b60-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-68639fb8-a839-11eb-b290-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-dac3b29d-a833-11eb-9b60-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-68639fb8-a839-11eb-b290-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:35 GMT + - Wed, 28 Apr 2021 15:50:20 GMT expires: - '-1' pragma: @@ -121,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:36 GMT + - Wed, 28 Apr 2021 15:50:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -162,7 +162,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:38 GMT + - Wed, 28 Apr 2021 15:50:23 GMT server: - openresty strict-transport-security: @@ -170,7 +170,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.65' status: code: 200 message: OK @@ -252,7 +252,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:39 GMT + - Wed, 28 Apr 2021 15:50:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -299,7 +299,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:39 GMT + - Wed, 28 Apr 2021 15:50:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -340,7 +340,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:40 GMT + - Wed, 28 Apr 2021 15:50:25 GMT server: - openresty strict-transport-security: @@ -348,7 +348,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.616667' status: code: 200 message: OK @@ -397,7 +397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:10:40 GMT + - Wed, 28 Apr 2021 15:50:25 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml new file mode 100644 index 000000000000..6ae1a8b1da29 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -0,0 +1,390 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repoc7611808:tagc7611808"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:43:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8496d843-a838-11eb-ab0e-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8496d843-a838-11eb-ab0e-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:43: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","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, 28 Apr 2021 15:43:59 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests +- 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.0b1 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, 28 Apr 2021 15:44:00 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.1053106Z", "lastUpdateTime": + "2021-04-28T15:39:48.1053106Z", "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": 0, "createdTime": "2021-04-28T15:39:48.8335216Z", "lastUpdateTime": + "2021-04-28T15:39:48.8335216Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.6753267Z", "lastUpdateTime": + "2021-04-28T15:39:48.6753267Z", "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": 0, "createdTime": "2021-04-28T15:39:49.6695854Z", "lastUpdateTime": + "2021-04-28T15:39:49.6695854Z", "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": 0, "createdTime": "2021-04-28T15:39:48.1836957Z", "lastUpdateTime": + "2021-04-28T15:39:48.1836957Z", "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": 0, "createdTime": "2021-04-28T15:39:48.3248644Z", "lastUpdateTime": + "2021-04-28T15:39:48.3248644Z", "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": 0, "createdTime": "2021-04-28T15:39:48.5855065Z", "lastUpdateTime": + "2021-04-28T15:39:48.5855065Z", "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": 0, "createdTime": "2021-04-28T15:39:48.4142388Z", "lastUpdateTime": + "2021-04-28T15:39:48.4142388Z", "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": 0, "createdTime": "2021-04-28T15:39:48.2527522Z", "lastUpdateTime": + "2021-04-28T15:39:48.2527522Z", "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": 0, "createdTime": "2021-04-28T15:39:47.8188629Z", "lastUpdateTime": + "2021-04-28T15:39:47.8188629Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagc7611808"], "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: Wed, 28 Apr 2021 15:44:01 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://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","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: Wed, 28 Apr 2021 15:44:02 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:delete" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:44:02 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '0' + date: Wed, 28 Apr 2021 15:44: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://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","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, 28 Apr 2021 15:44:13 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:44:13 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '70' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:44:13 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://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml new file mode 100644 index 000000000000..cf5a76abd23e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -0,0 +1,86 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo61301e4e","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, 28 Apr 2021 15:44:14 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo61301e4e:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist +- 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.0b1 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, 28 Apr 2021 15:44:15 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + 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: Wed, 28 Apr 2021 15:44: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: 404 + message: Not Found + url: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml new file mode 100644 index 000000000000..aaf0545ad17a --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -0,0 +1,271 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo9cb4121e:tag9cb4121e0", "repo9cb4121e:tag9cb4121e1", "repo9cb4121e:tag9cb4121e2", + "repo9cb4121e:tag9cb4121e3"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:52:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ae8d1dc8-a839-11eb-986f-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ae8d1dc8-a839-11eb-986f-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:52: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9cb4121e","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: Wed, 28 Apr 2021 15:52:19 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9cb4121e:delete" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 +- 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.0b1 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, 28 Apr 2021 15:52:20 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + response: + body: + string: '' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '0' + date: Wed, 28 Apr 2021 15:52:20 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:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519 + x-ms-ratelimit-remaining-calls-per-second: '8.000000' + status: + code: 202 + message: Accepted + url: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9cb4121e","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, 28 Apr 2021 15:52:21 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9cb4121e:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_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.0b1 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, 28 Apr 2021 15:52: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 + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9cb4121e", "tags": + [{"name": "tag9cb4121e1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:06.2665877Z", "lastUpdateTime": "2021-04-28T15:40:06.2665877Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag9cb4121e2", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:05.5686367Z", "lastUpdateTime": "2021-04-28T15:40:05.5686367Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag9cb4121e3", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:05.2533005Z", "lastUpdateTime": "2021-04-28T15:40:05.2533005Z", + "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: '1028' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:52: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://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml new file mode 100644 index 000000000000..356ba1a4a91e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -0,0 +1,87 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoddbe1864","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: Wed, 28 Apr 2021 15:52:22 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoddbe1864:delete" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist +- 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.0b1 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, 28 Apr 2021 15:52:23 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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + 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: Wed, 28 Apr 2021 15:52:23 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://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml new file mode 100644 index 000000000000..f41090854001 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -0,0 +1,316 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repoaf9517b2:tagaf9517b2"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:44:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a0c560a3-a838-11eb-b512-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a0c560a3-a838-11eb-b512-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:44: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoaf9517b2","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, 28 Apr 2021 15:44:48 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoaf9517b2:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests +- 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.0b1 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, 28 Apr 2021 15:44:49 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": + "2021-04-28T15:40:19.4589707Z", "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-04-28T15:40:19.9217986Z", "lastUpdateTime": + "2021-04-28T15:40:19.9217986Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-04-28T15:40:19.8197257Z", "lastUpdateTime": + "2021-04-28T15:40:19.8197257Z", "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-04-28T15:40:20.2913747Z", "lastUpdateTime": + "2021-04-28T15:40:20.2913747Z", "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-04-28T15:40:20.1354974Z", "lastUpdateTime": + "2021-04-28T15:40:20.1354974Z", "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-04-28T15:40:19.6881079Z", "lastUpdateTime": + "2021-04-28T15:40:19.6881079Z", "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-04-28T15:40:19.3981444Z", "lastUpdateTime": + "2021-04-28T15:40:19.3981444Z", "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-04-28T15:40:19.5372072Z", "lastUpdateTime": + "2021-04-28T15:40:19.5372072Z", "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-04-28T15:40:19.603384Z", "lastUpdateTime": + "2021-04-28T15:40:19.603384Z", "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-04-28T15:40:18.9984058Z", "lastUpdateTime": + "2021-04-28T15:40:18.9984058Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagaf9517b2"], "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: Wed, 28 Apr 2021 15:44:49 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://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoaf9517b2","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, 28 Apr 2021 15:44:50 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoaf9517b2:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:44: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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": + "2021-04-28T15:40:19.4589707Z", "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\":\"4/28/2021 3:40: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-length: '818' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:44: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/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml new file mode 100644 index 000000000000..a8d5e6158f4d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -0,0 +1,29 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl + response: + body: + string: '404 page not found + + ' + headers: + connection: keep-alive + content-length: '19' + content-type: text/plain; charset=utf-8 + date: Wed, 28 Apr 2021 15:44: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: 404 + message: Not Found + url: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml new file mode 100644 index 000000000000..e8db2c16758d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -0,0 +1,311 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo3db51597:tag3db51597"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:44:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-acfee1bf-a838-11eb-b7ac-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-acfee1bf-a838-11eb-b7ac-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3db51597","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, 28 Apr 2021 15:45:08 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3db51597:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests +- 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.0b1 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, 28 Apr 2021 15:45:09 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:40:36.3129691Z", "lastUpdateTime": + "2021-04-28T15:40:36.3129691Z", "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": 0, "createdTime": "2021-04-28T15:40:36.0838544Z", "lastUpdateTime": + "2021-04-28T15:40:36.0838544Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:40:36.573061Z", "lastUpdateTime": + "2021-04-28T15:40:36.573061Z", "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": 0, "createdTime": "2021-04-28T15:40:36.1876799Z", "lastUpdateTime": + "2021-04-28T15:40:36.1876799Z", "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": 0, "createdTime": "2021-04-28T15:40:38.7830324Z", "lastUpdateTime": + "2021-04-28T15:40:38.7830324Z", "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": 0, "createdTime": "2021-04-28T15:40:36.5033879Z", "lastUpdateTime": + "2021-04-28T15:40:36.5033879Z", "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": 0, "createdTime": "2021-04-28T15:40:36.8915511Z", "lastUpdateTime": + "2021-04-28T15:40:36.8915511Z", "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": 0, "createdTime": "2021-04-28T15:40:36.3800722Z", "lastUpdateTime": + "2021-04-28T15:40:36.3800722Z", "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": 0, "createdTime": "2021-04-28T15:40:37.4772288Z", "lastUpdateTime": + "2021-04-28T15:40:37.4772288Z", "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": 0, "createdTime": "2021-04-28T15:40:36.0006511Z", "lastUpdateTime": + "2021-04-28T15:40:36.0006511Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag3db51597"], "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: Wed, 28 Apr 2021 15:45:09 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://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3db51597","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, 28 Apr 2021 15:45:10 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3db51597:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 +- 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.0b1 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, 28 Apr 2021 15:45:10 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '165.466667' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "tag": + {"name": "tag3db51597", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:36.7019882Z", "lastUpdateTime": "2021-04-28T15:40:36.7019882Z", + "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, 28 Apr 2021 15:45:11 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/repo3db51597/_tags/tag3db51597 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml new file mode 100644 index 000000000000..784a9ebe1b8d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -0,0 +1,86 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"hello-world","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: Wed, 28 Apr 2021 15:45:11 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:hello-world:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist +- 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.0b1 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, 28 Apr 2021 15:45:12 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + 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: Wed, 28 Apr 2021 15:45:13 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://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml new file mode 100644 index 000000000000..cf93b6e6cbcd --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -0,0 +1,325 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo8b5a11da:tag8b5a11da0", "repo8b5a11da:tag8b5a11da1", "repo8b5a11da:tag8b5a11da2", + "repo8b5a11da:tag8b5a11da3"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:50:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-739e0a2c-a839-11eb-90c3-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-739e0a2c-a839-11eb-90c3-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:50:39 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo8b5a11da","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, 28 Apr 2021 15:50:41 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo8b5a11da:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests +- 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.0b1 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, 28 Apr 2021 15:50:42 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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.2285659Z", "lastUpdateTime": + "2021-04-28T15:40:53.2285659Z", "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": 0, "createdTime": "2021-04-28T15:40:53.4675747Z", "lastUpdateTime": + "2021-04-28T15:40:53.4675747Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:40:54.1081971Z", "lastUpdateTime": + "2021-04-28T15:40:54.1081971Z", "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": 0, "createdTime": "2021-04-28T15:40:53.7975951Z", "lastUpdateTime": + "2021-04-28T15:40:53.7975951Z", "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": 0, "createdTime": "2021-04-28T15:40:53.6632822Z", "lastUpdateTime": + "2021-04-28T15:40:53.6632822Z", "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": 0, "createdTime": "2021-04-28T15:40:54.1632809Z", "lastUpdateTime": + "2021-04-28T15:40:54.1632809Z", "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": 0, "createdTime": "2021-04-28T15:40:54.8239765Z", "lastUpdateTime": + "2021-04-28T15:40:54.8239765Z", "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": 0, "createdTime": "2021-04-28T15:40:53.5235657Z", "lastUpdateTime": + "2021-04-28T15:40:53.5235657Z", "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": 0, "createdTime": "2021-04-28T15:40:53.7095671Z", "lastUpdateTime": + "2021-04-28T15:40:53.7095671Z", "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": 0, "createdTime": "2021-04-28T15:40:53.858241Z", "lastUpdateTime": + "2021-04-28T15:40:53.858241Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag8b5a11da0", "tag8b5a11da1", "tag8b5a11da2", "tag8b5a11da3"], + "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: Wed, 28 Apr 2021 15:50:42 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://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo8b5a11da","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, 28 Apr 2021 15:50:43 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo8b5a11da:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_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.0b1 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, 28 Apr 2021 15:50:43 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "tags": + [{"name": "tag8b5a11da0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:55.5579596Z", "lastUpdateTime": "2021-04-28T15:40:55.5579596Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da1", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:53.3089855Z", "lastUpdateTime": "2021-04-28T15:40:53.3089855Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da2", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:53.4155166Z", "lastUpdateTime": "2021-04-28T15:40:53.4155166Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da3", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:40:53.572585Z", "lastUpdateTime": "2021-04-28T15:40:53.572585Z", + "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, 28 Apr 2021 15:50: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://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml new file mode 100644 index 000000000000..1e569847ad91 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -0,0 +1,520 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repob0a917be:tagb0a917be"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:45:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c3c46f5b-a838-11eb-9f3b-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c3c46f5b-a838-11eb-9f3b-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:45: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","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, 28 Apr 2021 15:45:46 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests +- 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.0b1 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, 28 Apr 2021 15:45:47 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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": + "2021-04-28T15:41:12.718692Z", "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-04-28T15:41:12.5601754Z", "lastUpdateTime": + "2021-04-28T15:41:12.5601754Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-04-28T15:41:12.6295149Z", "lastUpdateTime": + "2021-04-28T15:41:12.6295149Z", "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-04-28T15:41:13.5747468Z", "lastUpdateTime": + "2021-04-28T15:41:13.5747468Z", "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-04-28T15:41:12.810213Z", "lastUpdateTime": + "2021-04-28T15:41:12.810213Z", "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-04-28T15:41:13.1060397Z", "lastUpdateTime": + "2021-04-28T15:41:13.1060397Z", "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-04-28T15:41:12.9948669Z", "lastUpdateTime": + "2021-04-28T15:41:12.9948669Z", "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-04-28T15:41:13.4211741Z", "lastUpdateTime": + "2021-04-28T15:41:13.4211741Z", "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-04-28T15:41:13.3520181Z", "lastUpdateTime": + "2021-04-28T15:41:13.3520181Z", "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-04-28T15:41:12.4455711Z", "lastUpdateTime": + "2021-04-28T15:41:12.4455711Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagb0a917be"], "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: Wed, 28 Apr 2021 15:45:47 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://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","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, 28 Apr 2021 15:45:48 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:45: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/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": + "2021-04-28T15:41:12.718692Z", "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\":\"4/28/2021 3:41:13 + 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: '816' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:45: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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","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, 28 Apr 2021 15:45:49 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_write" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:45:49 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/exchange +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": + "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": + false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 3:41:13 + 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: '820' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:45: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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","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, 28 Apr 2021 15:45:50 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_write" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 15:45:50 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/exchange +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": + "2021-04-28T15:41:12.718692Z", "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\":\"4/28/2021 3:41:13 + 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: '816' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 15:45: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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml new file mode 100644 index 000000000000..ae30e873f0bc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -0,0 +1,505 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo3e8d15a3:tag3e8d15a3"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:45:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d0162253-a838-11eb-86e7-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d0162253-a838-11eb-86e7-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 15:46:05 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","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, 28 Apr 2021 15:46:06 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests +- 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.0b1 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, 28 Apr 2021 15:46:07 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:41:28.6034839Z", "lastUpdateTime": + "2021-04-28T15:41:28.6034839Z", "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": 0, "createdTime": "2021-04-28T15:41:28.9848846Z", "lastUpdateTime": + "2021-04-28T15:41:28.9848846Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:41:29.797838Z", "lastUpdateTime": + "2021-04-28T15:41:29.797838Z", "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": 0, "createdTime": "2021-04-28T15:41:29.3917939Z", "lastUpdateTime": + "2021-04-28T15:41:29.3917939Z", "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": 0, "createdTime": "2021-04-28T15:41:29.2818942Z", "lastUpdateTime": + "2021-04-28T15:41:29.2818942Z", "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": 0, "createdTime": "2021-04-28T15:41:28.7869581Z", "lastUpdateTime": + "2021-04-28T15:41:28.7869581Z", "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": 0, "createdTime": "2021-04-28T15:41:28.6651892Z", "lastUpdateTime": + "2021-04-28T15:41:28.6651892Z", "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": 0, "createdTime": "2021-04-28T15:41:28.4309726Z", "lastUpdateTime": + "2021-04-28T15:41:28.4309726Z", "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": 0, "createdTime": "2021-04-28T15:41:28.7313899Z", "lastUpdateTime": + "2021-04-28T15:41:28.7313899Z", "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": 0, "createdTime": "2021-04-28T15:41:27.5258825Z", "lastUpdateTime": + "2021-04-28T15:41:27.5258825Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag3e8d15a3"], "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: Wed, 28 Apr 2021 15:46:08 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://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","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, 28 Apr 2021 15:46:09 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_read" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 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, 28 Apr 2021 15:46:09 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", + "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, 28 Apr 2021 15:46:09 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/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","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, 28 Apr 2021 15:46:09 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_write" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 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, 28 Apr 2021 15:46:10 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '165.183333' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/exchange +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", + "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, 28 Apr 2021 15:46: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: 200 + message: OK + url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, + visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","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, 28 Apr 2021 15:46:10 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_write" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 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, 28 Apr 2021 15:46:10 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '165.15' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/exchange +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", + "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, 28 Apr 2021 15:46:11 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/repo3e8d15a3/_tags/tag3e8d15a3 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py new file mode 100644 index 000000000000..9a3cfddbba61 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py @@ -0,0 +1,186 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from datetime import datetime +import pytest + +from devtools_testutils import AzureTestCase + +from azure.containerregistry import ( + ContentPermissions, + ArtifactManifestProperties, + TagProperties, +) +from azure.core.exceptions import ResourceNotFoundError + +from asynctestcase import AsyncContainerRegistryTestClass +from constants import DOES_NOT_EXIST, HELLO_WORLD +from preparer import acr_preparer + + +class TestContainerRepository(AsyncContainerRegistryTestClass): + async def set_up(self, endpoint, name): + repo_client = self.create_container_repository(endpoint, name) + + async for artifact in repo_client.list_registry_artifacts(): + return repo_client.get_artifact(artifact.digest) + + @acr_preparer() + async def test_get_manifest_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + properties = await reg_artifact.get_manifest_properties() + + assert isinstance(properties, ArtifactManifestProperties) + assert isinstance(properties.content_permissions, ContentPermissions) + + @acr_preparer() + async def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): + repo_client = self.create_container_repository(containerregistry_endpoint, "hello-world") + + reg_artifact = repo_client.get_artifact("sha256:abcdefghijkl") + + with pytest.raises(ResourceNotFoundError): + await reg_artifact.get_manifest_properties() + + @acr_preparer() + async def test_set_manifest_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + properties = await reg_artifact.get_manifest_properties() + c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + + received = await reg_artifact.set_manifest_properties(c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + received = await reg_artifact.set_manifest_properties(c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + @acr_preparer() + async def test_get_tag_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + properties = await reg_artifact.get_tag_properties(tag) + + assert isinstance(properties, TagProperties) + assert properties.name == tag + + @acr_preparer() + async def test_get_tag_properties_does_not_exist(self, containerregistry_endpoint): + repo_client = self.create_container_repository(containerregistry_endpoint, "hello-world") + + reg_artifact = repo_client.get_artifact("sha256:abcdefghijkl") + + with pytest.raises(ResourceNotFoundError): + await reg_artifact.get_tag_properties("doesnotexist") + + @acr_preparer() + async def test_set_tag_properties(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + properties = await reg_artifact.get_tag_properties(tag) + c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + + received = await reg_artifact.set_tag_properties(tag, c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + received = await reg_artifact.set_tag_properties(tag, c) + + assert received.content_permissions.can_delete == c.can_delete + assert received.content_permissions.can_read == c.can_read + assert received.content_permissions.can_write == c.can_write + assert received.content_permissions.can_list == c.can_list + + @acr_preparer() + async def test_list_tags(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + tags = ["{}:{}".format(repo, tag + str(i)) for i in range(4)] + self.import_image(HELLO_WORLD, tags) + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + count = 0 + async for tag in reg_artifact.list_tags(): + assert "{}:{}".format(repo, tag.name) in tags + count += 1 + assert count == 4 + + @acr_preparer() + async def test_delete_tag(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + tags = ["{}:{}".format(repo, tag + str(i)) for i in range(4)] + self.import_image(HELLO_WORLD, tags) + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(tag + str(0)) + + await reg_artifact.delete_tag(tag + str(0)) + + count = 0 + async for tag in reg_artifact.list_tags(): + assert "{}:{}".format(repo, tag.name) in tags[1:] + count += 1 + assert count == 3 + + @acr_preparer() + async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(DOES_NOT_EXIST) + + with pytest.raises(ResourceNotFoundError): + await reg_artifact.delete_tag(DOES_NOT_EXIST) + + @acr_preparer() + async def test_delete_registry_artifact(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + tag = self.get_resource_name("tag") + self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) + reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) + + await reg_artifact.delete() + self.sleep(10) + + with pytest.raises(ResourceNotFoundError): + await reg_artifact.get_manifest_properties() + + @acr_preparer() + async def test_delete_registry_artifact_does_not_exist(self, containerregistry_endpoint): + repo = self.get_resource_name("repo") + container_repo = self.create_container_repository(containerregistry_endpoint, repo) + reg_artifact = container_repo.get_artifact(DOES_NOT_EXIST) + + with pytest.raises(ResourceNotFoundError): + await reg_artifact.delete() From 22ecb18f6137f70cb6dc06d3b50cba38c6bb3ae6 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 12:31:44 -0400 Subject: [PATCH 06/42] issue with recording infra that is removing an acr specific oauth path --- .../_container_registry_client.py | 2 +- .../aio/_async_container_registry_client.py | 2 +- ...egistry_client.test_delete_repository.yaml | 256 ++- ...test_delete_repository_does_not_exist.yaml | 117 +- ...egistry_client.test_list_repositories.yaml | 127 +- ...client.test_list_repositories_by_page.yaml | 1498 ++++++++++++++++- ...lient.test_transport_closed_only_once.yaml | 189 ++- ...y_client_async.test_delete_repository.yaml | 202 ++- ...test_delete_repository_does_not_exist.yaml | 75 +- ...y_client_async.test_list_repositories.yaml | 85 +- ..._async.test_list_repositories_by_page.yaml | 1053 +++++++++++- ...async.test_transport_closed_only_once.yaml | 137 +- ...ner_repository.test_delete_repository.yaml | 383 ++++- ...y.test_delete_repository_doesnt_exist.yaml | 115 +- ...tainer_repository.test_get_properties.yaml | 119 +- ...pository.test_list_registry_artifacts.yaml | 119 +- ...est_list_registry_artifacts_ascending.yaml | 119 +- ....test_list_registry_artifacts_by_page.yaml | 335 +++- ...st_list_registry_artifacts_descending.yaml | 119 +- ...tainer_repository.test_set_properties.yaml | 316 +++- ...pository_async.test_delete_repository.yaml | 289 +++- ...c.test_delete_repository_doesnt_exist.yaml | 75 +- ..._repository_async.test_get_properties.yaml | 77 +- ...ry_async.test_list_registry_artifacts.yaml | 77 +- ...est_list_registry_artifacts_ascending.yaml | 77 +- ....test_list_registry_artifacts_by_page.yaml | 253 ++- ...st_list_registry_artifacts_descending.yaml | 77 +- ..._repository_async.test_set_properties.yaml | 242 ++- ...rtifact.test_delete_registry_artifact.yaml | 302 +++- ...lete_registry_artifact_does_not_exist.yaml | 117 +- ...est_registry_artifact.test_delete_tag.yaml | 246 ++- ...tifact.test_delete_tag_does_not_exist.yaml | 115 +- ...artifact.test_get_manifest_properties.yaml | 404 ----- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...stry_artifact.test_get_tag_properties.yaml | 250 ++- ...est_get_tag_properties_does_not_exist.yaml | 117 +- ...test_registry_artifact.test_list_tags.yaml | 250 ++- ...artifact.test_set_manifest_properties.yaml | 364 +++- ...stry_artifact.test_set_tag_properties.yaml | 364 +++- ...t_async.test_delete_registry_artifact.yaml | 242 ++- ...lete_registry_artifact_does_not_exist.yaml | 75 +- ...gistry_artifact_async.test_delete_tag.yaml | 196 ++- ..._async.test_delete_tag_does_not_exist.yaml | 75 +- ...ct_async.test_get_manifest_properties.yaml | 196 ++- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...rtifact_async.test_get_tag_properties.yaml | 198 ++- ...est_get_tag_properties_does_not_exist.yaml | 75 +- ...egistry_artifact_async.test_list_tags.yaml | 198 ++- ...ct_async.test_set_manifest_properties.yaml | 284 +++- ...rtifact_async.test_set_tag_properties.yaml | 286 +++- .../azure-containerregistry/tests/testcase.py | 18 +- 51 files changed, 9589 insertions(+), 1326 deletions(-) delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index bd92674699fb..94e5a2f82fb5 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -136,7 +136,7 @@ def extract_data(pipeline_response): deserialized = self._client._deserialize( # pylint: disable=protected-access "Repositories", pipeline_response ) - list_of_elem = deserialized.repositories + list_of_elem = deserialized.repositories or [] if cls: list_of_elem = cls(list_of_elem) link = None diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index ea1900fe416b..6511ef1e6680 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -135,7 +135,7 @@ async def extract_data(pipeline_response): deserialized = self._client._deserialize( # pylint: disable=protected-access "Repositories", pipeline_response ) - list_of_elem = deserialized.repositories + list_of_elem = deserialized.repositories or [] if cls: list_of_elem = cls(list_of_elem) link = None 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 index d3eaed51e9bb..acbd364199ac 100644 --- 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 @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR5QloeCWIHTM3BTalNEAlltZXJtE76E-RiEiBjCLYLWi1-wTEKTaWUME6bFd9tijmd-pEgCfhkjE9X_XCrqt3wGX9H37IGOvOtV5-bGsPb-7jXwovcBbOsgrNPKSBmQGYsfSyaBvgTlZzCK9g6-IMfcQA5AsCwolTe3dNLVZRQEgAA; + fpc=AsmHyZn4HgtGi9K7vhx8QIU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:07:44 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AsmHyZn4HgtGi9K7vhx8QIUE8LayAQAAAFF_G9gOAAAA; expires=Fri, 28-May-2021 + 16:07:45 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:42:59 GMT + - Wed, 28 Apr 2021 16:07:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9964ea8-a7a9-11eb-a5f3-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-df1979f0-a83b-11eb-96b2-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9964ea8-a7a9-11eb-a5f3-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-df1979f0-a83b-11eb-96b2-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:11 GMT + - Wed, 28 Apr 2021 16:07:58 GMT expires: - '-1' pragma: @@ -102,7 +167,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -122,7 +187,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:13 GMT + - Wed, 28 Apr 2021 16:07:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -137,6 +202,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqI1qc6lXDbxnhuE3dE5Ad4Xcn7GxoFmD2jC39MTZddk7jtz1RBDEiZD7MfsAVdF-QVAldix686AUHqlFIeEpymJ31V_Q-0d4cQF9ZiHs-diRPz2wjulEguR_pKFFOG6nqVcd2UhrAuqmGRdAgax_40J1gjhwWZozrsrTEAw925YgAA; + fpc=ApldfXrDRwVJud8ZY8NKmIo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:00 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ApldfXrDRwVJud8ZY8NKmIovu5CIAQAAAF9_G9gOAAAA; expires=Fri, 28-May-2021 + 16:08: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -153,7 +283,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -163,7 +293,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:14 GMT + - Wed, 28 Apr 2021 16:08:01 GMT server: - openresty strict-transport-security: @@ -171,7 +301,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.85' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Ato_be_deleted%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1074' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:01 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 @@ -189,7 +357,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -216,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:16 GMT + - Wed, 28 Apr 2021 16:08:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -243,7 +411,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -263,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:16 GMT + - Wed, 28 Apr 2021 16:08:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -294,7 +462,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -304,7 +472,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:16 GMT + - Wed, 28 Apr 2021 16:08:04 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:04 GMT server: - openresty strict-transport-security: @@ -312,7 +518,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.8' status: code: 200 message: OK @@ -328,12 +534,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -343,11 +551,11 @@ interactions: connection: - keep-alive content-length: - - '174' + - '354' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:17 GMT + - Wed, 28 Apr 2021 16:08:05 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 0dd031eba40e..72faa03c7193 100644 --- 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 @@ -13,7 +13,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo + uri: https://seankane.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:17 GMT + - Wed, 28 Apr 2021 16:08:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -48,6 +48,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDJvX8p7wax0v5oRgWVyRBXAKjAGUEEiSaFuDX4vUAWxFwSfTcDZFH2vlJ3OKC7WKIWHt_q06eh8ReQUxSCuUIH4QOqdiLOpEvNfnFgYvrMMH78sYxuCs-rHncOh4JyYclARb7WK5buFRJ9AmDSB5d-ywdOAhQSck4X4IeZD1y7IgAA; + fpc=AlycyNqMGiBMoEgM9xU9BjI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:05 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AlycyNqMGiBMoEgM9xU9BjIvu5CIAQAAAGV_G9gOAAAA; expires=Fri, 28-May-2021 + 16:08:06 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -64,7 +129,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -74,7 +139,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:19 GMT + - Wed, 28 Apr 2021 16:08: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Anot_real_repo%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1074' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:06 GMT server: - openresty strict-transport-security: @@ -82,7 +185,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.483333' status: code: 200 message: OK @@ -100,7 +203,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo + uri: https://seankane.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -118,7 +221,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:19 GMT + - Wed, 28 Apr 2021 16:08:07 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml index 86dc29fe968e..645779653019 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:20 GMT + - Wed, 28 Apr 2021 16:08:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQtSkt7zD-HLK6cTJ38rMypQQxFaX5Ubcdf2MAct2CFqCW1Aeah1psUbGiXeDPxLen4XZCTKrrrDbeRKF5MMutMb0_8z-uQVqV9XRMAUwZtcr7HkwDA81mx2D5DYsJcBpX1fSrmk4ZMrYR85_7RvEh5vqFxlNbkUFNc1gJGjRaf0gAA; + fpc=As8-xTd6y3ZBsR9-FlzZtbk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:07 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=As8-xTd6y3ZBsR9-FlzZtbkvu5CIAQAAAGd_G9gOAAAA; expires=Fri, 28-May-2021 + 16:08: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:21 GMT + - Wed, 28 Apr 2021 16:08:09 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:09 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.416667' status: code: 200 message: OK @@ -96,12 +199,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -111,11 +216,11 @@ interactions: connection: - keep-alive content-length: - - '174' + - '354' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:21 GMT + - Wed, 28 Apr 2021 16:08:09 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml index f343b8a86ba9..4a0ca5e2e0ea 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:22 GMT + - Wed, 28 Apr 2021 16:24:37 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgWfc8dy17AuweEEbQK2BJBRlRkM3Qclwl2IlgxPAsvO5soNh6DKbKXNhx10nG3saJPNxNS8MbbunKx8RKRXa8ed6uEMkPNQ853u_-QnImyRqQ7dIK4rkHeVe1L5tcslT4q9_-SGOlXGEmdSuCmTbCQn1wLWk5tnaSeXZ8K0JH_0gAA; + fpc=Avcoem41995Mrit52KEZ5MM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:37 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Avcoem41995Mrit52KEZ5MMvu5CIAQAAAEWDG9gOAAAA; expires=Fri, 28-May-2021 + 16:24: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:23 GMT + - Wed, 28 Apr 2021 16:24:38 GMT server: - openresty strict-transport-security: @@ -84,6 +149,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:39 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: @@ -96,7 +199,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -113,7 +216,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:24 GMT + - Wed, 28 Apr 2021 16:24:39 GMT docker-distribution-api-version: - registry/2.0 link: @@ -140,7 +243,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -160,7 +263,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:24 GMT + - Wed, 28 Apr 2021 16:24:39 GMT docker-distribution-api-version: - registry/2.0 server: @@ -191,7 +294,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -201,7 +304,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:24 GMT + - Wed, 28 Apr 2021 16:24:39 GMT server: - openresty strict-transport-security: @@ -213,6 +316,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:39 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: @@ -225,10 +366,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: - string: '{"repositories": ["repo2c591564", "repo2e8319c5"]}' + string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -242,11 +383,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:25 GMT + - Wed, 28 Apr 2021 16:24:40 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -269,7 +410,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -289,7 +430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:25 GMT + - Wed, 28 Apr 2021 16:24:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -320,7 +461,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -330,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:25 GMT + - Wed, 28 Apr 2021 16:24:40 GMT server: - openresty strict-transport-security: @@ -342,6 +483,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:40 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: @@ -354,10 +533,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: - string: '{"repositories": ["repo308e19dd", "repo84e316ff"]}' + string: '{"repositories": ["repo28471541", "repo2c591564"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -371,11 +550,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:25 GMT + - Wed, 28 Apr 2021 16:24:40 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -398,7 +577,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -418,7 +597,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:25 GMT + - Wed, 28 Apr 2021 16:24:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -449,7 +628,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -459,7 +638,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:26 GMT + - Wed, 28 Apr 2021 16:24:41 GMT server: - openresty strict-transport-security: @@ -471,6 +650,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:41 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: @@ -483,10 +700,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: - string: '{"repositories": ["repo9b321760", "repob22512e7"]}' + string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -500,11 +717,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:26 GMT + - Wed, 28 Apr 2021 16:24:41 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -527,7 +744,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -547,7 +764,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:26 GMT + - Wed, 28 Apr 2021 16:24:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -578,7 +795,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -588,7 +805,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:26 GMT + - Wed, 28 Apr 2021 16:24:42 GMT server: - openresty strict-transport-security: @@ -600,6 +817,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:42 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: @@ -612,10 +867,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: - string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -629,7 +884,1176 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:27 GMT + - Wed, 28 Apr 2021 16:24:42 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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, 28 Apr 2021 16:24: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + response: + body: + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' + 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: + - Wed, 28 Apr 2021 16:24:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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, 28 Apr 2021 16:24: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:43 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + response: + body: + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + 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: + - Wed, 28 Apr 2021 16:24:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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, 28 Apr 2021 16:24: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:44 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:44 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + 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: + - Wed, 28 Apr 2021 16:24:44 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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, 28 Apr 2021 16:24: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + response: + body: + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + 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: + - Wed, 28 Apr 2021 16:24:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&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, 28 Apr 2021 16:24:45 GMT + 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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:46 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + response: + body: + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + 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: + - Wed, 28 Apr 2021 16:24:46 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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, 28 Apr 2021 16:24: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:46 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:46 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + response: + body: + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + 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: + - Wed, 28 Apr 2021 16:24:46 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&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, 28 Apr 2021 16:24: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="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:47 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:47 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + response: + body: + string: '{"repositories": null}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:24:47 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index a70a9ee3edc0..bf8e0165daa2 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:27 GMT + - Wed, 28 Apr 2021 16:08:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUnD9vFg8hZsIWSPHQn66x4Dxm0GbuNEXtEayp4gR6kkKUhbl2GF2PiPE0KWYxSgYhSjTIjm_VNKvbSupf0FHW74jZSYvnpvDtp9XhXYcl7HbS3o0eqrnve0B55SHoBCHP5kDhH4TxVjKLLXewbOExXrq6I_p0pRohSE18JDMeNEgAA; + fpc=ApTNMAm4C4JLh6Xl5PYfqSk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:21 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ApTNMAm4C4JLh6Xl5PYfqSkvu5CIAQAAAHV_G9gOAAAA; expires=Fri, 28-May-2021 + 16:08: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:29 GMT + - Wed, 28 Apr 2021 16:08:22 GMT server: - openresty strict-transport-security: @@ -80,7 +145,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.483333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:22 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 @@ -96,12 +199,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -111,11 +216,11 @@ interactions: connection: - keep-alive content-length: - - '174' + - '354' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:29 GMT + - Wed, 28 Apr 2021 16:08:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -140,7 +245,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -160,7 +265,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:29 GMT + - Wed, 28 Apr 2021 16:08:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -191,7 +296,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -201,7 +306,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:30 GMT + - Wed, 28 Apr 2021 16:08:24 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:24 GMT server: - openresty strict-transport-security: @@ -209,7 +352,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.25' status: code: 200 message: OK @@ -225,12 +368,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -240,11 +385,11 @@ interactions: connection: - keep-alive content-length: - - '174' + - '354' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:30 GMT + - Wed, 28 Apr 2021 16:08:24 GMT docker-distribution-api-version: - registry/2.0 server: 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 index d5e95847d02b..ebeff29b8cce 100644 --- 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 @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrINAQVXswJ8dHg8_2dxhsCl6R-zVdYhZvEKLFxYwWFs3f-jRtuRtMzCBw2kIPXxKzFLuk_Ee8het2_Ion_-CuwEYMCHSRIEw84rQJPNIBCPnyAOrTJ59emRfxQ_oD5sAlb72gW7wI7dGQLnlP5fUZ_bS8npOKvKEkkDt0NpFlV0MgAA; + fpc=At1dEAY7YrhHvAtyZ8REiYY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:08:24 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=At1dEAY7YrhHvAtyZ8REiYYE8LayAQAAAHh_G9gOAAAA; expires=Fri, 28-May-2021 + 16:08: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:31 GMT + - Wed, 28 Apr 2021 16:08:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fd1fe60f-a7a9-11eb-83b3-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6e093fe-a83b-11eb-a4ed-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fd1fe60f-a7a9-11eb-83b3-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6e093fe-a83b-11eb-a4ed-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:43:44 GMT + - Wed, 28 Apr 2021 16:08:39 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:45 GMT + date: Wed, 28 Apr 2021 16:08:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/to_be_deleted +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:39 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:46 GMT + date: Wed, 28 Apr 2021 16:08:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '165.933333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:to_be_deleted:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:41 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,7 +279,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -172,7 +298,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:48 GMT + date: Wed, 28 Apr 2021 16:08:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -190,7 +316,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -202,7 +328,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:49 GMT + date: Wed, 28 Apr 2021 16:08:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -223,22 +349,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:49 GMT + date: Wed, 28 Apr 2021 16:08:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:43 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -247,18 +401,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '174' + content-length: '354' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:49 GMT + date: Wed, 28 Apr 2021 16:08:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 09c5cf0833c2..b7103bfd6b2a 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo + uri: https://seankane.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:50 GMT + date: Wed, 28 Apr 2021 16:08:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/not_real_repo +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:44 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:51 GMT + date: Wed, 28 Apr 2021 16:08:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:not_real_repo:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:46 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: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo + uri: https://seankane.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -74,7 +135,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:51 GMT + date: Wed, 28 Apr 2021 16:08:46 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml index 2a89e2e9565e..65ee3b7992a3 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:51 GMT + date: Wed, 28 Apr 2021 16:08:46 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:46 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:52 GMT + date: Wed, 28 Apr 2021 16:08:47 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + 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: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:48 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: @@ -64,18 +125,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '174' + content-length: '354' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:53 GMT + date: Wed, 28 Apr 2021 16:08:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml index 708dc576b171..c70d0d74e2fc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:53 GMT + date: Wed, 28 Apr 2021 16:24:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:48 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:54 GMT + date: Wed, 28 Apr 2021 16:24:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:49 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -73,7 +134,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:55 GMT + date: Wed, 28 Apr 2021 16:24:49 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -91,7 +152,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -103,7 +164,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:55 GMT + date: Wed, 28 Apr 2021 16:24:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -124,22 +185,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:55 GMT + date: Wed, 28 Apr 2021 16:24:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:50 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -148,18 +237,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: - string: '{"repositories": ["repo2c591564", "repo2e8319c5"]}' + string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:55 GMT + date: Wed, 28 Apr 2021 16:24:50 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff @@ -175,7 +264,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -187,7 +276,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:55 GMT + date: Wed, 28 Apr 2021 16:24:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -196,7 +285,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= - request: body: access_token: REDACTED @@ -208,22 +297,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:56 GMT + date: Wed, 28 Apr 2021 16:24:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:50 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -232,25 +349,25 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2e8319c5&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: - string: '{"repositories": ["repo308e19dd", "repo84e316ff"]}' + string: '{"repositories": ["repo28471541", "repo2c591564"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:56 GMT + date: Wed, 28 Apr 2021 16:24:51 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo2e8319c5&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= - request: body: null headers: @@ -259,7 +376,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -271,7 +388,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:56 GMT + date: Wed, 28 Apr 2021 16:24:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -280,7 +397,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= - request: body: access_token: REDACTED @@ -292,22 +409,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:56 GMT + date: Wed, 28 Apr 2021 16:24:51 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '166.066667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:51 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -316,25 +461,25 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: - string: '{"repositories": ["repo9b321760", "repob22512e7"]}' + string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:57 GMT + date: Wed, 28 Apr 2021 16:24:51 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo84e316ff&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= - request: body: null headers: @@ -343,7 +488,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -355,7 +500,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:57 GMT + date: Wed, 28 Apr 2021 16:24:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -364,7 +509,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= - request: body: access_token: REDACTED @@ -376,22 +521,162 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:57 GMT + date: Wed, 28 Apr 2021 16:24:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:52 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + response: + body: + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:52 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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: Wed, 28 Apr 2021 16:24:52 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:52 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:52 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -400,16 +685,688 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: - string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:57 GMT + date: Wed, 28 Apr 2021 16:24:53 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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: Wed, 28 Apr 2021 16:24:53 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:53 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24: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 + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + response: + body: + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:53 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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: Wed, 28 Apr 2021 16:24:53 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:54 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:54 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:54 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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: Wed, 28 Apr 2021 16:24:54 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:54 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:54 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + response: + body: + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:55 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&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: Wed, 28 Apr 2021 16:24:55 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:55 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:55 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + response: + body: + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:55 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://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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: Wed, 28 Apr 2021 16:24:55 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:56 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:56 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + response: + body: + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:56 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&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: Wed, 28 Apr 2021 16:24:56 GMT + docker-distribution-api-version: registry/2.0 + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + x-content-type-options: nosniff + status: + code: 401 + message: Unauthorized + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:56 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:57 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + response: + body: + string: '{"repositories": null}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '22' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:24:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -417,5 +1374,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index b855654292c0..2abf4b2fe67f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:58 GMT + date: Wed, 28 Apr 2021 16:09:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:08:59 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:59 GMT + date: Wed, 28 Apr 2021 16:09:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:09:01 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: @@ -64,18 +125,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '174' + content-length: '354' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:59 GMT + date: Wed, 28 Apr 2021 16:09:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -92,7 +155,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -104,7 +167,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:59 GMT + date: Wed, 28 Apr 2021 16:09:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -125,22 +188,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:43:59 GMT + date: Wed, 28 Apr 2021 16:09:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.55' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:09:03 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: @@ -149,18 +240,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '174' + content-length: '354' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:44:00 GMT + date: Wed, 28 Apr 2021 16:09:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index 679dbc7492df..8e79011232f0 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrrd_rxF80VDVeyLtjtspuNjXQM-64OTvWjyMPge3ztz0HqVZNkbdkIQi0-XlAtu-Ec2pgjjZGCcMH6diJ6lRBIjacOG-PvHZCwi8leZ6pKikKJrfsTszGTHuEflyMZEGVnx1xjqLc41o5lNupoZl08RFN1TMnIhl6cs_qD_dh36AgAA; + fpc=Am6Cn9tKF_VHtgrwhdGh4eA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:04 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Am6Cn9tKF_VHtgrwhdGh4eAE8LayAQAAAKF_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:02 GMT + - Wed, 28 Apr 2021 16:09:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0ec75998-a7aa-11eb-962f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0e8557f5-a83c-11eb-a3cd-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0ec75998-a7aa-11eb-962f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0e8557f5-a83c-11eb-a3cd-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:14 GMT + - Wed, 28 Apr 2021 16:09:18 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:15 GMT + - Wed, 28 Apr 2021 16:09:20 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkhzjNtTZtKqDg2kQGjB6-Tqoe2d_jBSnr9oUJiBuNE5o5hZXlTBwWJTk_c7VLVEnf4pSBuRO9P7DdyhoJCztJ0NI-HlrkWN5AiQ087Camr_d9sUhUPbn96utBLD7rnAIDhQQ0FxsG76HoKj10VI7XkTLNItsa0OUh2SMsIV1u1AgAA; + fpc=AluYeQIN9TpAu4DlY9YvcrE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:20 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AluYeQIN9TpAu4DlY9YvcrEvu5CIAQAAALB_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:17 GMT + - Wed, 28 Apr 2021 16:09: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:22 GMT server: - openresty strict-transport-security: @@ -169,7 +337,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.35' status: code: 200 message: OK @@ -185,12 +353,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db", "to_be_deleted"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "to_be_deleted"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -200,11 +370,11 @@ interactions: connection: - keep-alive content-length: - - '190' + - '370' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:17 GMT + - Wed, 28 Apr 2021 16:09:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -231,7 +401,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -251,7 +421,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:17 GMT + - Wed, 28 Apr 2021 16:09:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -266,6 +436,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0G5aVSXDptGwije7rdlWqxMXva5UxyT5UKetcUKvCX1zFyZwLbLLZOfOCCm6fcMr_YD6LaU085sNw7uWxCs2_bOVH8KSqae6PDSD4SYQ9vEB1leOv5IiQ4k4X3dGqNm6NTgCFappG2xA1WJUQYcZBOWlyz9VkofZMy-ejCg171ggAA; + fpc=Ajy4ASebTWFApFOGstMxK50; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:24 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Ajy4ASebTWFApFOGstMxK50vu5CIAQAAALN_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -282,7 +517,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -292,7 +527,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:19 GMT + - Wed, 28 Apr 2021 16:09:24 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Ato_be_deleted%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1074' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:25 GMT server: - openresty strict-transport-security: @@ -300,7 +573,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '166.15' status: code: 200 message: OK @@ -318,7 +591,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -345,7 +618,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:21 GMT + - Wed, 28 Apr 2021 16:09:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -372,7 +645,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -392,7 +665,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:21 GMT + - Wed, 28 Apr 2021 16:09:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -423,7 +696,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -433,7 +706,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:22 GMT + - Wed, 28 Apr 2021 16:09:27 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:27 GMT server: - openresty strict-transport-security: @@ -441,7 +752,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.316667' status: code: 200 message: OK @@ -457,12 +768,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -472,11 +785,11 @@ interactions: connection: - keep-alive content-length: - - '174' + - '354' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:22 GMT + - Wed, 28 Apr 2021 16:09:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index 8ffa4b960680..15b8be290d17 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -13,7 +13,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:23 GMT + - Wed, 28 Apr 2021 16:09:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -48,6 +48,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRWqsWBimI6I5Ypla2kiUgi5ol0NurrUQJIimyxxhvZyAvVGEPHDWSK8voJMjbRYTZxxHfMlfXDVRXIxuqF9s3pZIIAcpZYci6SC3tDPd0DeD-38gV5dL9fXTmHGa9ICL6CrhKTRwRMy-uCwcGgkXMR6XKjSCEcHIyaCwj8KqolEgAA; + fpc=AnbY6TNRCB1Oka71uaNQyDU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:28 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AnbY6TNRCB1Oka71uaNQyDUvu5CIAQAAALh_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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-clitelem: + - 1,0,0,, + x-ms-ests-server: + - 2.1.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -64,7 +129,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -74,7 +139,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:24 GMT + - Wed, 28 Apr 2021 16:09:29 GMT server: - openresty strict-transport-security: @@ -86,6 +151,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Adoes_not_exist%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1075' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:29 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: null headers: @@ -100,7 +203,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -118,7 +221,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:24 GMT + - Wed, 28 Apr 2021 16:09:29 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index cce62fdebe22..a55737887e68 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world + uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:25 GMT + - Wed, 28 Apr 2021 16:09:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOusYynU9ju0f6hNt_R_KYzVx5SYqlUGK24tqsy34Xz9S8W741EiegrNZmRj_uAng0IumyNdpJUOryhirHA2D3u_jbZ_x_42X1KrhJ3h82mcJCh2jqRBXOKyi-X2ald7P4cEe7pnKgWZuzvCp8d8zBeLLk8QZJIlf78SxV4kBc4wgAA; + fpc=AjLko-3Yf3BImlfkknWSQ9I; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:31 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AjLko-3Yf3BImlfkknWSQ9Ivu5CIAQAAALp_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:26 GMT + - Wed, 28 Apr 2021 16:09: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1089' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:31 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.566667' status: code: 200 message: OK @@ -96,10 +199,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world + uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -117,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:27 GMT + - Wed, 28 Apr 2021 16:09:32 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml index 649e26a6991f..ba495d1af478 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:27 GMT + - Wed, 28 Apr 2021 16:09:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrS6ujqvmG5WF0yrIvfupf2kDgORI5qAP5M5pHqRKwiaC0ZwgMLvn1XJRNs8cQHtat_uARJodPbtO440LM2MDsBTTAqW6c0pTGjTsEcSKfmREodSRilsWqQ389Z_lMLzKYFCIVTzl8gy65BEqMIsfwJG2g0BsYDrRJ3OEa5__uUzQgAA; + fpc=AqmIWl5_ZB5MpMJEGoW_tZk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:32 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AqmIWl5_ZB5MpMJEGoW_tZkvu5CIAQAAALx_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:29 GMT + - Wed, 28 Apr 2021 16:09: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:34 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.25' status: code: 200 message: OK @@ -96,10 +199,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -161,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:30 GMT + - Wed, 28 Apr 2021 16:09:34 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml index 0437c24c9587..c2175cf5590b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:30 GMT + - Wed, 28 Apr 2021 16:09:35 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLGCstDGQBWe_GDeH8R5bxLulCzdtTMV7ejqkavcVY1x-J6NviZz_AX5LvyQPB4yx-Zd0vNTJKh_gSUyGIKOPRr5-grUx6CQtzHsjrEnuMNqxjQZHyQVXJPnGYkGpngtQKdAYcAUffV_w5wEP6LxfKccX1AVDR7oDQQWVJTNXCBAgAA; + fpc=ArskO1OIHLxPt_OTKqt1HPY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:35 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ArskO1OIHLxPt_OTKqt1HPYvu5CIAQAAAL9_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:32 GMT + - Wed, 28 Apr 2021 16:09:36 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:36 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.216667' status: code: 200 message: OK @@ -96,10 +199,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", @@ -161,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:33 GMT + - Wed, 28 Apr 2021 16:09:37 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml index 14735664111a..5a3cf42c572e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:33 GMT + - Wed, 28 Apr 2021 16:09:37 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBgnO6b6gQU5P4ALEcNe9TzP8pCqRpOItlonDN520pHewUK8TOpVfZitNxgPxZgk0sIzYPnE68uVlLSa19aOlmS7glATaun9BnAjeN5BRGVjTqBX1sAo5bpgWwxz5Xg5gvbzDD31l8--N45g2JsqU2pmGlwQSQ0MAZfsAjdKeGiMgAA; + fpc=AuDb20AA5d5Ksx_MvLXWhf8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:37 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AuDb20AA5d5Ksx_MvLXWhf8vu5CIAQAAAMF_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:35 GMT + - Wed, 28 Apr 2021 16:09:39 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:39 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' + - '166.566667' status: code: 200 message: OK @@ -96,10 +199,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -124,7 +227,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:35 GMT + - Wed, 28 Apr 2021 16:09:39 GMT docker-distribution-api-version: - registry/2.0 link: @@ -152,7 +255,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -172,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:35 GMT + - Wed, 28 Apr 2021 16:09:39 GMT docker-distribution-api-version: - registry/2.0 server: @@ -203,7 +306,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -213,7 +316,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:36 GMT + - Wed, 28 Apr 2021 16:09:39 GMT server: - openresty strict-transport-security: @@ -221,7 +324,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '166.55' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:40 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 @@ -237,10 +378,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -265,7 +406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:36 GMT + - Wed, 28 Apr 2021 16:09:40 GMT docker-distribution-api-version: - registry/2.0 link: @@ -293,7 +434,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -313,7 +454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:36 GMT + - Wed, 28 Apr 2021 16:09:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -344,7 +485,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -354,7 +495,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:36 GMT + - Wed, 28 Apr 2021 16:09:40 GMT server: - openresty strict-transport-security: @@ -362,7 +503,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '166.516667' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:40 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 @@ -378,10 +557,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -405,7 +584,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:37 GMT + - Wed, 28 Apr 2021 16:09:41 GMT docker-distribution-api-version: - registry/2.0 link: @@ -433,7 +612,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -453,7 +632,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:37 GMT + - Wed, 28 Apr 2021 16:09:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -484,7 +663,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -494,7 +673,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:37 GMT + - Wed, 28 Apr 2021 16:09:41 GMT server: - openresty strict-transport-security: @@ -502,7 +681,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.15' + - '166.483333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:41 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 @@ -518,10 +735,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -546,7 +763,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:37 GMT + - Wed, 28 Apr 2021 16:09:41 GMT docker-distribution-api-version: - registry/2.0 link: @@ -574,7 +791,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -594,7 +811,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:38 GMT + - Wed, 28 Apr 2021 16:09:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -625,7 +842,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -635,7 +852,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:38 GMT + - Wed, 28 Apr 2021 16:09:42 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:42 GMT server: - openresty strict-transport-security: @@ -643,7 +898,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' + - '166.433333' status: code: 200 message: OK @@ -659,10 +914,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": @@ -687,7 +942,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:38 GMT + - Wed, 28 Apr 2021 16:09:42 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml index 1f77d7c15a21..5ab4a43a10ee 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:39 GMT + - Wed, 28 Apr 2021 16:09:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-kVZdRBjA8ffanRrlp0ydzU14YG672CLomBf4r8nr-Cr5qw9X5ae5wZyp7kqFy3gGzydYgFB3eOvfeRRIBvxBS0JJcPJaK-Cc0wy4psaq-nhCb54v85UO3ISFVoQt7M1L_hgX6CQ4yktmR7hU9AIANKg0DxCb-k6uZ27ZX1w0cQgAA; + fpc=ArYNGImdzqJLixup8jsC6lM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:43 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ArYNGImdzqJLixup8jsC6lMvu5CIAQAAAMd_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09:43 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:40 GMT + - Wed, 28 Apr 2021 16:09:44 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:44 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.283333' status: code: 200 message: OK @@ -96,10 +199,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -161,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:41 GMT + - Wed, 28 Apr 2021 16:09:45 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index a2309aff6cf7..3faf888f319a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv4p1_Yb75NXEajMth7jA3IZTEf4GHS_ksiX-tUCFGrlzgpQC4Uab0W2QJyzKQQGMrnqzHghbDGeF9J9QwCc1x5JfeFLKKhBkAwlp8qOMFu6P6mD4aLEaV3VLFj7Igyhlzc7BZL0rSO6JOvW3rypT_Hs0CJZuUXQxCaJ9FGxQmRogAA; + fpc=Auxj1G9-WzZHtwmZbC-8LUw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:09:45 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Auxj1G9-WzZHtwmZbC-8LUwE8LayAQAAAMl_G9gOAAAA; expires=Fri, 28-May-2021 + 16:09:45 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repob22512e7:tagb22512e7"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:42 GMT + - Wed, 28 Apr 2021 16:09:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-276ae28b-a7aa-11eb-9c08-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-26c0f094-a83c-11eb-8487-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-276ae28b-a7aa-11eb-9c08-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-26c0f094-a83c-11eb-8487-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:56 GMT + - Wed, 28 Apr 2021 16:09:59 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:57 GMT + - Wed, 28 Apr 2021 16:10:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIfXBdqCYec-XaTUWQ14bZB_YbyQ8hFj5o8xo8OP1dmqhDOdeEQ9WmsECN4ILQz-CV9blk0Pda-1cTvT6FnTRjIpNMU1eyMm7S3ianDM9j1AgXIpOVDZBcl9Cx5MmxItZDXz73HwZMgVI0_-DNLLldZCEduifWlYWGhZqi3n7Ad4gAA; + fpc=Ar9BK3IeVyNJi22MTHK65bI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:01 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Ar9BK3IeVyNJi22MTHK65bIvu5CIAQAAANh_G9gOAAAA; expires=Fri, 28-May-2021 + 16:10: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-clitelem: + - 1,0,0,, + x-ms-ests-server: + - 2.1.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:59 GMT + - Wed, 28 Apr 2021 16:10:02 GMT server: - openresty strict-transport-security: @@ -169,7 +299,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.583333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:02 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 @@ -185,11 +353,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": - "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": false}}' @@ -202,11 +370,11 @@ interactions: connection: - keep-alive content-length: - - '313' + - '315' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:59 GMT + - Wed, 28 Apr 2021 16:10:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -236,7 +404,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -256,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:59 GMT + - Wed, 28 Apr 2021 16:10:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -287,7 +455,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -297,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:44:59 GMT + - Wed, 28 Apr 2021 16:10:03 GMT server: - openresty strict-transport-security: @@ -305,7 +473,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.55' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:03 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 @@ -326,11 +532,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": - "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "teleportEnabled": false}}' @@ -343,11 +549,11 @@ interactions: connection: - keep-alive content-length: - - '317' + - '319' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:00 GMT + - Wed, 28 Apr 2021 16:10:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -377,7 +583,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -397,7 +603,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:00 GMT + - Wed, 28 Apr 2021 16:10:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -428,7 +634,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -438,7 +644,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:00 GMT + - Wed, 28 Apr 2021 16:10: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:04 GMT server: - openresty strict-transport-security: @@ -446,7 +690,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.5' status: code: 200 message: OK @@ -467,11 +711,11 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + uri: https://seankane.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": - "2021-04-27T22:04:44.691138Z", "lastUpdateTime": "2021-04-27T22:04:43.262171Z", + string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": false}}' @@ -484,11 +728,11 @@ interactions: connection: - keep-alive content-length: - - '313' + - '315' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:00 GMT + - Wed, 28 Apr 2021 16:10:04 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index d8e453c07b96..4578cadffdc7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-nhB3-zPkh_kmQOx88ky39LPgznWb0Zy1Ne7A9Y_7-j_sfyHJq4f9NAsTf3sqcb_zAUjiZXU4IEW87tRmrJYk9E2ZW6pCh-CLbr5dKvxfvyspUv3vpKqICz8xjRwEo0-7UsW-eLvSHB1cSAEHvTUJ4vVoHypDPQTWHkxesqFbS8gAA; + fpc=AlsanZX0AkRCmyNk9HaN_eU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:05 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AlsanZX0AkRCmyNk9HaN_eUE8LayAQAAANx_G9gOAAAA; expires=Fri, 28-May-2021 + 16:10: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:02 GMT + - Wed, 28 Apr 2021 16:10:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3300b277-a7aa-11eb-ba39-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-327a90a2-a83c-11eb-b0cf-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3300b277-a7aa-11eb-ba39-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-327a90a2-a83c-11eb-b0cf-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:15 GMT + - Wed, 28 Apr 2021 16:10:19 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:16 GMT + date: Wed, 28 Apr 2021 16:10:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:20 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:17 GMT + date: Wed, 28 Apr 2021 16:10:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:21 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,18 +279,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db", "to_be_deleted"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "to_be_deleted"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '190' + content-length: '370' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:17 GMT + date: Wed, 28 Apr 2021 16:10:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -181,7 +309,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -193,7 +321,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:17 GMT + date: Wed, 28 Apr 2021 16:10:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -203,6 +331,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/to_be_deleted +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:21 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -214,22 +375,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:18 GMT + date: Wed, 28 Apr 2021 16:10:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:to_be_deleted:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:23 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -238,7 +427,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted + uri: https://seankane.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -257,7 +446,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:20 GMT + date: Wed, 28 Apr 2021 16:10:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -275,7 +464,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -287,7 +476,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:21 GMT + date: Wed, 28 Apr 2021 16:10:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -308,22 +497,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:21 GMT + date: Wed, 28 Apr 2021 16:10:25 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:25 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -332,18 +549,20 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankane.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo2c591564", - "repo2e8319c5", "repo308e19dd", "repo84e316ff", "repo9b321760", "repob22512e7", - "repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '174' + content-length: '354' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:21 GMT + date: Wed, 28 Apr 2021 16:10:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index d3402dd7ab5c..7e5d2a8c267d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:22 GMT + date: Wed, 28 Apr 2021 16:10:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/does_not_exist +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:25 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:23 GMT + date: Wed, 28 Apr 2021 16:10:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:does_not_exist:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:27 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -74,7 +135,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:23 GMT + date: Wed, 28 Apr 2021 16:10:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index 64a90ca93e51..ad42b5004770 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world + uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:24 GMT + date: Wed, 28 Apr 2021 16:10:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:27 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:25 GMT + date: Wed, 28 Apr 2021 16:10:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/hello-world:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10: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 + url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,10 +125,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world + uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -77,7 +138,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:25 GMT + date: Wed, 28 Apr 2021 16:10:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml index ffd42ee11b13..6c6e2bf1e75f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:26 GMT + date: Wed, 28 Apr 2021 16:10:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:29 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:27 GMT + date: Wed, 28 Apr 2021 16:10:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '166.5' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:30 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,10 +125,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -122,7 +183,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:27 GMT + date: Wed, 28 Apr 2021 16:10:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml index 747079df222e..b2e9cb2d29a5 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:28 GMT + date: Wed, 28 Apr 2021 16:10:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:31 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:29 GMT + date: Wed, 28 Apr 2021 16:10:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.383333' + x-ms-ratelimit-remaining-calls-per-second: '166.4' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10: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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,10 +125,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", @@ -122,7 +183,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:29 GMT + date: Wed, 28 Apr 2021 16:10:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml index 8192cd7c6273..6436168fd44a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:30 GMT + date: Wed, 28 Apr 2021 16:10:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:33 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:31 GMT + date: Wed, 28 Apr 2021 16:10:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.35' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:35 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,10 +125,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -84,7 +145,7 @@ interactions: connection: keep-alive content-length: '931' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:31 GMT + date: Wed, 28 Apr 2021 16:10:35 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -103,7 +164,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -115,7 +176,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:32 GMT + date: Wed, 28 Apr 2021 16:10:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,22 +197,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:32 GMT + date: Wed, 28 Apr 2021 16:10:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:35 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -160,10 +249,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -180,7 +269,7 @@ interactions: connection: keep-alive content-length: '927' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:32 GMT + date: Wed, 28 Apr 2021 16:10:36 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -199,7 +288,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -211,7 +300,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:32 GMT + date: Wed, 28 Apr 2021 16:10:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -232,22 +321,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:32 GMT + date: Wed, 28 Apr 2021 16:10:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:36 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -256,10 +373,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -275,7 +392,7 @@ interactions: connection: keep-alive content-length: '889' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:33 GMT + date: Wed, 28 Apr 2021 16:10:36 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -294,7 +411,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -306,7 +423,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:33 GMT + date: Wed, 28 Apr 2021 16:10:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -327,22 +444,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:33 GMT + date: Wed, 28 Apr 2021 16:10:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:37 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -351,10 +496,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -371,7 +516,7 @@ interactions: connection: keep-alive content-length: '936' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:34 GMT + date: Wed, 28 Apr 2021 16:10:37 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -390,7 +535,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -402,7 +547,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:34 GMT + date: Wed, 28 Apr 2021 16:10:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -423,22 +568,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:34 GMT + date: Wed, 28 Apr 2021 16:10:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' + x-ms-ratelimit-remaining-calls-per-second: '165.683333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:37 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -447,10 +620,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": @@ -467,7 +640,7 @@ interactions: connection: keep-alive content-length: '929' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:34 GMT + date: Wed, 28 Apr 2021 16:10:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml index 806fef615f9d..3ed33206be76 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:35 GMT + date: Wed, 28 Apr 2021 16:10:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:38 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:36 GMT + date: Wed, 28 Apr 2021 16:10:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + 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:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:39 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: @@ -64,10 +125,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -122,7 +183,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:36 GMT + date: Wed, 28 Apr 2021 16:10:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index f0ce85135969..9b80d13b90e3 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9p6N0iXLYByhcLxrkvdwHowCskPPLwJ-Nk1wYRuET76oty5Asd3kAmaidDsPBSIbVzrxvFMWzr3BlZMwtIPwCgUSR2peBEyPxkktOr1e_dyF33SDTpldxU0YaHrrUehCmhx1fGXrcwfOr-aS-97cFPXu-nYyykYbjO4LC-8XO9QgAA; + fpc=Ahe6HlRUwM5Lka4SUJzk_Ek; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:40 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Ahe6HlRUwM5Lka4SUJzk_EkE8LayAQAAAACAG9gOAAAA; expires=Fri, 28-May-2021 + 16:10: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo2c591564:tag2c591564"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:38 GMT + - Wed, 28 Apr 2021 16:10:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-487f3557-a7aa-11eb-89b0-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-479d6c85-a83c-11eb-9012-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-487f3557-a7aa-11eb-89b0-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-479d6c85-a83c-11eb-9012-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 22:45:51 GMT + - Wed, 28 Apr 2021 16:10:54 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:52 GMT + date: Wed, 28 Apr 2021 16:10:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo2c591564 +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:56 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:53 GMT + date: Wed, 28 Apr 2021 16:10:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo2c591564:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:57 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,10 +279,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -166,7 +292,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:53 GMT + date: Wed, 28 Apr 2021 16:10:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,7 +314,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -200,7 +326,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:53 GMT + date: Wed, 28 Apr 2021 16:10:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,22 +347,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:54 GMT + date: Wed, 28 Apr 2021 16:10:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo2c591564:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10:58 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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": false}' @@ -250,10 +404,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -263,7 +417,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:54 GMT + date: Wed, 28 Apr 2021 16:10:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -285,7 +439,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -297,7 +451,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:54 GMT + date: Wed, 28 Apr 2021 16:10:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -318,22 +472,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:54 GMT + date: Wed, 28 Apr 2021 16:10:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '165.966667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo2c591564:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:10: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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": true}' @@ -347,10 +529,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + uri: https://seankane.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -360,7 +542,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Tue, 27 Apr 2021 22:45:55 GMT + date: Wed, 28 Apr 2021 16:10:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index cc87aad06e03..432430a25798 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPPOQ93eIKSdRbA7UnOG0BPSnFXziYfpif_dPRxDFwNQf0vMzBbgaJmZjSkqGy8VFHWOklN8Yb6-oXnLMwVDgjHniJGrdjGNIG2wvihiUzwBIEqUnbTEDMW1MS7FqFA7JdcF-d_JoXfep6D4E7TxoFqM8yU-IfgEg-o3Zb9NSF3ogAA; + fpc=Asr37wFcwpxGm0-vGRv0mfw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:10:59 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Asr37wFcwpxGm0-vGRv0mfwE8LayAQAAABOAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3c82158b:tag3c82158b"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:28:50 GMT + - Wed, 28 Apr 2021 16:11:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6f0b17be-a836-11eb-a3b8-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-53280054-a83c-11eb-8de3-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6f0b17be-a836-11eb-a3b8-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-53280054-a83c-11eb-8de3-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:03 GMT + - Wed, 28 Apr 2021 16:11:14 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:05 GMT + - Wed, 28 Apr 2021 16:11:15 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCwA4rxD7F1gqGNgA2XyCc7XMIJjU_k_n50V7ZMt2oHFnOkvsI8QrtnP3hHo1a8qZAw7aQmdscAcRoKxuwbCdMoTRUZ_LmB9AG9jiQdEzG0k627EP49WmnRTc2YDl-nHAAUS4rAAOvJq6xVKh85NBLqNq3wP9vW3X-CIjTLYbWnggAA; + fpc=Ai9wvhmgRfZBsNyV71azlb8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:15 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Ai9wvhmgRfZBsNyV71azlb8vu5CIAQAAACOAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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-clitelem: + - 1,0,0,, + x-ms-ests-server: + - 2.1.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:06 GMT + - Wed, 28 Apr 2021 16:11:16 GMT server: - openresty strict-transport-security: @@ -169,7 +299,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.183333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:16 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 @@ -185,13 +353,13 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T15:28:54.8684172Z", "lastUpdateTime": - "2021-04-28T15:28:54.8684172Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T16:11:04.6312678Z", "lastUpdateTime": + "2021-04-28T16:11:04.6312678Z", "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", @@ -250,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:07 GMT + - Wed, 28 Apr 2021 16:11:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -279,7 +447,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -299,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:07 GMT + - Wed, 28 Apr 2021 16:11:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -330,7 +498,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -340,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:08 GMT + - Wed, 28 Apr 2021 16:11:18 GMT server: - openresty strict-transport-security: @@ -352,6 +520,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:18 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: null headers: @@ -366,7 +572,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '' @@ -381,7 +587,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 15:29:08 GMT + - Wed, 28 Apr 2021 16:11:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -408,7 +614,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -428,7 +634,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:19 GMT + - Wed, 28 Apr 2021 16:11:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -459,7 +665,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -469,7 +675,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:19 GMT + - Wed, 28 Apr 2021 16:11:29 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:29 GMT server: - openresty strict-transport-security: @@ -477,7 +721,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.083333' status: code: 200 message: OK @@ -493,7 +737,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' @@ -510,7 +754,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:19 GMT + - Wed, 28 Apr 2021 16:11:29 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index 48cbdccb8fca..94511a182d52 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:20 GMT + - Wed, 28 Apr 2021 16:11:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIw58Ove9RoOlxzAvN-o50om_w8ZF75eXq_VLXwmNQgUPHhmTepOaGxeWZiP_ySk1DVr2Bx1m98dDV5T_NQTKl7q6GUJk8INuoZWXlPN1d9fHiWApOIQ0-Cid1Sp8zoZaByrwmxttVLuHYG9Xa6IQJbuHKDgPlOv2sDfwfjNZYisgAA; + fpc=AvQ98bThP0BEpchvhT7EOxI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:30 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AvQ98bThP0BEpchvhT7EOxIvu5CIAQAAADKAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:21 GMT + - Wed, 28 Apr 2021 16:11:31 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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob0ef1bd1%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:31 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.233333' status: code: 200 message: OK @@ -96,7 +199,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -114,7 +217,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:29:22 GMT + - Wed, 28 Apr 2021 16:11:32 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index c4bd57ccfc6c..066ac34afbe2 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLp0eKIQtLzwlO5QfpDtUCx52BOn7CuXZlQ_KCpttmO3NQA-1MMgvlIuzzI0rAXnq4_C-0GDLEzOPW0rM-qF5fOPEQ4sSOMg8NF5uowoOD2C4mgOxFbDlUM0lFV4G1qVCiJMlLlixkE_jVsFPOSr7oKvgYkHxUJ2ypqi3FwWNSl4gAA; + fpc=AmVdn4pKCABEhZshKNNaMI0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:32 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AmVdn4pKCABEhZshKNNaMI0E8LayAQAAADSAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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-clitelem: + - 1,0,0,, + x-ms-ests-server: + - 2.1.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo34ab0fa1:tag34ab0fa10", "repo34ab0fa1:tag34ab0fa11", "repo34ab0fa1:tag34ab0fa12", @@ -17,7 +82,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -29,11 +94,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:51:44 GMT + - Wed, 28 Apr 2021 16:11:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a225f1d4-a839-11eb-94f3-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-66929c87-a83c-11eb-900a-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -59,7 +124,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a225f1d4-a839-11eb-94f3-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-66929c87-a83c-11eb-900a-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +136,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:51:58 GMT + - Wed, 28 Apr 2021 16:11:47 GMT expires: - '-1' pragma: @@ -103,7 +168,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -123,7 +188,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:51:59 GMT + - Wed, 28 Apr 2021 16:11:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -138,6 +203,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFsSrotJXf1UsJakUwgCIKwIWiYlStTxpyg5J6OYlEZ2zf3KZ6L6LSx8Y3OpDz8PXbq9JK5EoCMEhBBboe9plGr-8x9RQXT-euYxd7VgKXBaJuGQOSvYDj4iefUxN0ykIfHCmsW5FrIv4Qx1PKE3KadMCE0BkEhej9Bqzud-fpMcgAA; + fpc=Am0yDaTphYlJuqsnj6YSteQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:48 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Am0yDaTphYlJuqsnj6YSteQvu5CIAQAAAESAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -154,7 +284,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -164,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:00 GMT + - Wed, 28 Apr 2021 16:11:49 GMT server: - openresty strict-transport-security: @@ -172,7 +302,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.633333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo34ab0fa1%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:49 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 @@ -190,7 +358,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: body: string: '' @@ -205,7 +373,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 15:52:01 GMT + - Wed, 28 Apr 2021 16:11:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -234,7 +402,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags + uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -254,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:01 GMT + - Wed, 28 Apr 2021 16:11:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -285,7 +453,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -295,7 +463,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:01 GMT + - Wed, 28 Apr 2021 16:11:50 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo34ab0fa1%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:50 GMT server: - openresty strict-transport-security: @@ -303,7 +509,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.916667' status: code: 200 message: OK @@ -319,10 +525,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags + uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo34ab0fa1", "tags": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo34ab0fa1", "tags": [{"name": "tag34ab0fa11", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:12:32.4424555Z", "lastUpdateTime": "2021-04-28T15:12:32.4424555Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -348,7 +554,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:02 GMT + - Wed, 28 Apr 2021 16:11:50 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index dc343ad2747a..8bb95edfaf01 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -13,7 +13,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:02 GMT + - Wed, 28 Apr 2021 16:11:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -48,6 +48,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnBf60F2qq-38QjQ75MVzsyQnKILg7Wr_MBcCfbQ5tQMMofK0kNTHSGmPJEm6HCeQaJhUJKw1X_P27mwienqSKL9zOAl3kwZd6A4yMUIKZ0PsYvCP14w4SCVpPhSWKWY6tEqMao1kOZxwjH0NxQxilwcwvXhuPI_Vr5B3GogsP68gAA; + fpc=AkeWiLu88CtOimR-fD3gr3E; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:52 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AkeWiLu88CtOimR-fD3gr3Evu5CIAQAAAEeAG9gOAAAA; expires=Fri, 28-May-2021 + 16:11: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -64,7 +129,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -74,7 +139,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:04 GMT + - Wed, 28 Apr 2021 16:11:52 GMT server: - openresty strict-transport-security: @@ -86,6 +151,44 @@ interactions: status: code: 200 message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo506215e7%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:11:52 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: @@ -100,7 +203,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -118,7 +221,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:04 GMT + - Wed, 28 Apr 2021 16:11:53 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml deleted file mode 100644 index f73c77b60405..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml +++ /dev/null @@ -1,404 +0,0 @@ -interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo27331535:tag27331535"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 14:50:02 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-033362ee-a831-11eb-8d1b-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-033362ee-a831-11eb-8d1b-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 14:50:15 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 - 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo27331535","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, 28 Apr 2021 14:50: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo27331535:metadata_read" - 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.0b1 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, 28 Apr 2021 14:50: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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifests": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": - "2021-04-28T14:19:08.1493156Z", "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": 0, "createdTime": "2021-04-28T14:19:08.2257429Z", "lastUpdateTime": - "2021-04-28T14:19:08.2257429Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4130486Z", "lastUpdateTime": - "2021-04-28T14:19:08.4130486Z", "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": 0, "createdTime": "2021-04-28T14:19:08.9755326Z", "lastUpdateTime": - "2021-04-28T14:19:08.9755326Z", "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": 0, "createdTime": "2021-04-28T14:19:08.4645969Z", "lastUpdateTime": - "2021-04-28T14:19:08.4645969Z", "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": 0, "createdTime": "2021-04-28T14:19:10.1957381Z", "lastUpdateTime": - "2021-04-28T14:19:10.1957381Z", "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": 0, "createdTime": "2021-04-28T14:19:08.5821358Z", "lastUpdateTime": - "2021-04-28T14:19:08.5821358Z", "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": 0, "createdTime": "2021-04-28T14:19:07.9519043Z", "lastUpdateTime": - "2021-04-28T14:19:07.9519043Z", "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": 0, "createdTime": "2021-04-28T14:19:08.3640124Z", "lastUpdateTime": - "2021-04-28T14:19:08.3640124Z", "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": 0, "createdTime": "2021-04-28T14:19:07.5813228Z", "lastUpdateTime": - "2021-04-28T14:19:07.5813228Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag27331535"], "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, 28 Apr 2021 14:50:18 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo27331535","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, 28 Apr 2021 14:50: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://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo27331535:metadata_read" - 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.0b1 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, 28 Apr 2021 14:50:20 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifest": - {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": - "2021-04-28T14:19:08.1493156Z", "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\":\"4/28/2021 2:50:07 - 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-length: - - '816' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 14:50: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_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index 8f2126654b35..f7401f1cde02 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl + uri: https://seankane.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl response: body: string: '404 page not found @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 28 Apr 2021 14:50:21 GMT + - Wed, 28 Apr 2021 16:12:12 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index ddf956fec62b..284c8a0e2dbc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8tIWH_Pesdnh5lQZ2ixyQ828lFaeX4uOo4xuJ6exT-31AF1NwxSs0Lt_KOpM0OzkVw6_WoZMI6T77b8PhBzLVd_a4u7VvlIzxtfeRvK0YAHg4iyrEeNJojS8y2TZAowfzMtMb4KrNn3mpzLhT-JopE8D06jjpj8APqjuBaIlQpIgAA; + fpc=Ao4N_4q2NwFAqhVIdIdBKCY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:12 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Ao4N_4q2NwFAqhVIdIdBKCYE8LayAQAAAFyAG9gOAAAA; expires=Fri, 28-May-2021 + 16:12:12 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc1b5131a:tagc1b5131a"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:33 GMT + - Wed, 28 Apr 2021 16:12:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c835a6d8-a831-11eb-b01e-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7e7911a9-a83c-11eb-99ad-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c835a6d8-a831-11eb-b01e-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7e7911a9-a83c-11eb-99ad-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:45 GMT + - Wed, 28 Apr 2021 16:12:25 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:47 GMT + - Wed, 28 Apr 2021 16:12:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGP4DTtrLhLSjSq3--_Z0gIz7cc94I2PA0iaIoeJMw61SsdF_5vZCF_CPYTmYgcsMeBLkEnI8ixc5q0zf2tyO7qCUQYxHzpwIHKIdhIVMjXO3zdeDtNkPNE5VrbEWfprEHqpq6kCkRyCgiD_UATOgIzVOMj50_4GjnQJzgAzVorUgAA; + fpc=AvE2asR4ClRIvpoZCdTOzi4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:27 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AvE2asR4ClRIvpoZCdTOzi4vu5CIAQAAAGuAG9gOAAAA; expires=Fri, 28-May-2021 + 16:12: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:48 GMT + - Wed, 28 Apr 2021 16:12:28 GMT server: - openresty strict-transport-security: @@ -169,7 +299,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.633333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc1b5131a%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:28 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '165.616667' status: code: 200 message: OK @@ -185,10 +353,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc1b5131a", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T14:54:13.7370801Z", "lastUpdateTime": "2021-04-28T14:54:13.7370801Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -250,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:49 GMT + - Wed, 28 Apr 2021 16:12:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -277,7 +445,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -297,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:49 GMT + - Wed, 28 Apr 2021 16:12:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -328,7 +496,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -338,7 +506,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:50 GMT + - Wed, 28 Apr 2021 16:12:30 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc1b5131a%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:30 GMT server: - openresty strict-transport-security: @@ -346,7 +552,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.066667' status: code: 200 message: OK @@ -362,10 +568,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc1b5131a", "tag": {"name": "tagc1b5131a", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T14:54:13.3752616Z", "lastUpdateTime": "2021-04-28T14:54:13.3752616Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -383,7 +589,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:50 GMT + - Wed, 28 Apr 2021 16:12:30 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index 6b53ebfbcab9..13e039342d91 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:51 GMT + - Wed, 28 Apr 2021 16:12:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,6 +46,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnFwXm72klJDleXaOqQtBa-pXZQDY_jcwLtPRKbmWFO9ezILx9-b4dvq6UMEqwOl3u8c0V71tRYXxqtBs_0NFBYYy2gKmYOB-T-ljBTeFR2ZOTCqHTV-OTQIKEvwEthJJTMCKSpfJFsRN6POjadFHeDsNkV_7Sz3NJji1r-4v5ZsgAA; + fpc=AtW9iZdIwblCmtHWPEvnDCw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:31 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AtW9iZdIwblCmtHWPEvnDCwvu5CIAQAAAG6AG9gOAAAA; expires=Fri, 28-May-2021 + 16:12: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -62,7 +127,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -72,7 +137,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:52 GMT + - Wed, 28 Apr 2021 16:12:32 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Ahello-world%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1079' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:32 GMT server: - openresty strict-transport-security: @@ -80,7 +183,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.05' status: code: 200 message: OK @@ -96,7 +199,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -114,7 +217,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:55:52 GMT + - Wed, 28 Apr 2021 16:12:32 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index 434f8fbd8afa..30765c536540 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruDEg1JfaZGqtC9xh1hiDb0YzuhgRBAsAp0mGWZkSytCLdLdsqnhu9caHnqoxUOh3_x7OB7tI4m2ChvlOSruogGiknTEdDXN8d6padpgbac3xVJO9zuHmmUGMJiz8hcY6LWhdKmFxthjXMtIxc71gE5NFxN5DdpUiq-PycwVsEtQgAA; + fpc=AqkhRxoR2-NJkihOadrV5SI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:33 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AqkhRxoR2-NJkihOadrV5SIE8LayAQAAAHCAG9gOAAAA; expires=Fri, 28-May-2021 + 16:12: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo25ce0f5d:tag25ce0f5d0", "repo25ce0f5d:tag25ce0f5d1", "repo25ce0f5d:tag25ce0f5d2", @@ -17,7 +82,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -29,11 +94,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:07 GMT + - Wed, 28 Apr 2021 16:12:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-68639fb8-a839-11eb-b290-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8aab56c3-a83c-11eb-a1ea-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -59,7 +124,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-68639fb8-a839-11eb-b290-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8aab56c3-a83c-11eb-a1ea-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +136,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:20 GMT + - Wed, 28 Apr 2021 16:12:47 GMT expires: - '-1' pragma: @@ -101,7 +166,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -121,7 +186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:21 GMT + - Wed, 28 Apr 2021 16:12:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -136,6 +201,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUwqJxFIgLj4PwGzwLG3ON6XEdShSz1Hqy1anKrnJgBNBTnzE4uK4-v8uTMXdpgLtdgQm69F2vI9NY323BnFRnTO2nGnFbPOOMZjxMC6cNUNk5IhaIokYxzf1FUmexrzeax-g6hayMieO9fPdjx0YxxaQG-yfKtdvWMkQKdLG-e0gAA; + fpc=AmxxHg4R5QpEuncKlddNQls; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:48 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AmxxHg4R5QpEuncKlddNQlsvu5CIAQAAAICAG9gOAAAA; expires=Fri, 28-May-2021 + 16:12:49 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -152,7 +282,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -162,7 +292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:23 GMT + - Wed, 28 Apr 2021 16:12:49 GMT server: - openresty strict-transport-security: @@ -170,7 +300,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.55' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo25ce0f5d%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:49 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 @@ -186,10 +354,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo25ce0f5d", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:08:43.2327437Z", "lastUpdateTime": "2021-04-28T15:08:43.2327437Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -252,7 +420,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:23 GMT + - Wed, 28 Apr 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -279,7 +447,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags + uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_tags response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -299,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:24 GMT + - Wed, 28 Apr 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -330,7 +498,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -340,7 +508,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:25 GMT + - Wed, 28 Apr 2021 16:12:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo25ce0f5d%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:51 GMT server: - openresty strict-transport-security: @@ -348,7 +554,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.883333' status: code: 200 message: OK @@ -364,10 +570,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags + uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_tags response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "tags": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo25ce0f5d", "tags": [{"name": "tag25ce0f5d0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:08:41.893031Z", "lastUpdateTime": "2021-04-28T15:08:41.893031Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -397,7 +603,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:25 GMT + - Wed, 28 Apr 2021 16:12:51 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index d93c8a94bbce..dff2fe14d3bc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryzevqF6TsCkz5MaSh2MEzj_M6ZB8FzGFxupzUYfCQRUC8ZqP7XpWfVFzklTQSdtJqRFTij0iLQorfHJfkaGiUODFtZFxAdXL8DKQW9CXfDveQ_vLgAtbP1UX64QTVmmyLETqUIxMts3YyF4ec-eGvYbexr_DXHWvQQePo5vT7hAgAA; + fpc=ArUBFJ01pu9BmuMJcGdPC8g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:12:52 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ArUBFJ01pu9BmuMJcGdPC8gE8LayAQAAAISAG9gOAAAA; expires=Fri, 28-May-2021 + 16:12: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo28471541:tag28471541"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 14:59:54 GMT + - Wed, 28 Apr 2021 16:12:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6445a7e7-a832-11eb-9af7-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-962dd973-a83c-11eb-ad2f-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6445a7e7-a832-11eb-9af7-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-962dd973-a83c-11eb-ad2f-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:07 GMT + - Wed, 28 Apr 2021 16:13:06 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:09 GMT + - Wed, 28 Apr 2021 16:13:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlYHzS3SndIeTBnzY9rMSSadvotWlFudvRjTJEe7Kgb9h8ngvGDOdIJUoMOBiuuShv29fq1exgkZgkSnim3XAVolI0UbSyLP_qx53e3Z3V22FSoViiQJpgB1EkZqht38e-vXKNjD5pOCBoYuXGO1h8XQyxXqXnrmtqo25G-ynUZMgAA; + fpc=Am1WebrbSllFhKptesNEUMg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:07 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Am1WebrbSllFhKptesNEUMgvu5CIAQAAAJOAG9gOAAAA; expires=Fri, 28-May-2021 + 16:13: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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:10 GMT + - Wed, 28 Apr 2021 16:13:08 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '165.266667' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:09 GMT server: - openresty strict-transport-security: @@ -169,7 +337,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '165.25' status: code: 200 message: OK @@ -185,10 +353,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -250,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:11 GMT + - Wed, 28 Apr 2021 16:13:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -277,7 +445,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -297,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:12 GMT + - Wed, 28 Apr 2021 16:13:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -328,7 +496,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -338,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:12 GMT + - Wed, 28 Apr 2021 16:13:11 GMT server: - openresty strict-transport-security: @@ -346,7 +514,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.633333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:11 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 @@ -362,17 +568,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 2:59:59 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 4:03:22 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -388,7 +594,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:13 GMT + - Wed, 28 Apr 2021 16:13:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -418,7 +624,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -438,7 +644,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:13 GMT + - Wed, 28 Apr 2021 16:13:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -469,7 +675,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -479,7 +685,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:13 GMT + - Wed, 28 Apr 2021 16:13:12 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:12 GMT server: - openresty strict-transport-security: @@ -487,7 +731,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.233333' status: code: 200 message: OK @@ -508,17 +752,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 2:59:59 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 4:03:22 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -534,7 +778,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:13 GMT + - Wed, 28 Apr 2021 16:13:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -564,7 +808,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -584,7 +828,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:14 GMT + - Wed, 28 Apr 2021 16:13:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -615,7 +859,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -625,7 +869,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:14 GMT + - Wed, 28 Apr 2021 16:13:13 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:13 GMT server: - openresty strict-transport-security: @@ -633,7 +915,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.2' status: code: 200 message: OK @@ -654,17 +936,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 2:59:59 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 4:03:22 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -680,7 +962,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:00:15 GMT + - Wed, 28 Apr 2021 16:13:13 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index ed4b04e4154f..2d278b625bef 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8GZZOYsIiYLha4lgHKWBUNjGgF_t4zN7EHHb2uKumApQzebJS6gMuzBlG78yzCB0zfN4tdQWtBM2TQF5MjjaNo_Bp9x4ipz7ncUDll9KB0lyn_AlI4Z5yvHXCk6J-T8NTX2_8W3pWYNZts2MF0Nly-eILZci6MemFp1PIS8_4-wgAA; + fpc=Apw9mBOvljJNteGtGXS8SmA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:14 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Apw9mBOvljJNteGtGXS8SmAE8LayAQAAAJqAG9gOAAAA; expires=Fri, 28-May-2021 + 16:13:14 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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc28d1326:tagc28d1326"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:19 GMT + - Wed, 28 Apr 2021 16:13:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-02341642-a833-11eb-89df-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a349c98f-a83c-11eb-acf2-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-02341642-a833-11eb-89df-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a349c98f-a83c-11eb-acf2-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:31 GMT + - Wed, 28 Apr 2021 16:13:28 GMT expires: - '-1' pragma: @@ -100,7 +165,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -120,7 +185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:33 GMT + - Wed, 28 Apr 2021 16:13:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,6 +200,71 @@ interactions: status: code: 401 message: Unauthorized +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '204' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrxn7E6huBW9I9BQn7Im4E5UBW-Qb3W9GsGiRxTZeLKd3Bz4MwBOngSj_WM40-6p2f5jDbNRfxODn9tx60UNPwvP4s1xTgk63qXhOiTyKN79B3UVDq5UMcz5mq-0-vjWJvbZ0hllpzI5EEGmoE_jS6WlkJPvAx1vsxQh1fWK6QUMIgAA; + fpc=AmivhRPrIDdMggFjJR_UP98; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:29 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AmivhRPrIDdMggFjJR_UP98vu5CIAQAAAKmAG9gOAAAA; expires=Fri, 28-May-2021 + 16:13: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-clitelem: + - 1,0,0,, + x-ms-ests-server: + - 2.1.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -151,7 +281,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -161,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:34 GMT + - Wed, 28 Apr 2021 16:13:30 GMT server: - openresty strict-transport-security: @@ -169,7 +299,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.65' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13: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 @@ -185,10 +353,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:02:29.8734878Z", "lastUpdateTime": "2021-04-28T15:02:29.8734878Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -250,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:35 GMT + - Wed, 28 Apr 2021 16:13:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -277,7 +445,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -297,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:36 GMT + - Wed, 28 Apr 2021 16:13:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -328,7 +496,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -338,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:36 GMT + - Wed, 28 Apr 2021 16:13:32 GMT server: - openresty strict-transport-security: @@ -346,7 +514,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.616667' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13: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 @@ -362,14 +568,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -379,11 +585,11 @@ interactions: connection: - keep-alive content-length: - - '388' + - '384' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:36 GMT + - Wed, 28 Apr 2021 16:13:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -413,7 +619,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -433,7 +639,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:37 GMT + - Wed, 28 Apr 2021 16:13:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -464,7 +670,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -474,7 +680,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:37 GMT + - Wed, 28 Apr 2021 16:13:33 GMT server: - openresty strict-transport-security: @@ -482,7 +688,45 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.583333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:33 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 @@ -503,10 +747,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": @@ -524,7 +768,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:37 GMT + - Wed, 28 Apr 2021 16:13:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -554,7 +798,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -574,7 +818,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:37 GMT + - Wed, 28 Apr 2021 16:13:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -605,7 +849,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -615,7 +859,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:38 GMT + - Wed, 28 Apr 2021 16:13:34 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:34 GMT server: - openresty strict-transport-security: @@ -623,7 +905,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '166.533333' status: code: 200 message: OK @@ -644,10 +926,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -665,7 +947,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:04:38 GMT + - Wed, 28 Apr 2021 16:13:34 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index 6ae1a8b1da29..c93da0c6032f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6GeM0QFN8Ze-iV6HyvJR7cUURAB1TR6EqZ9hrYZrsHSDJhFdcHFA0vL6uHdnzB9V3782rWMw4aas9eAqwbFEtJfoc0BkcS5G4A3fyhxKDkewA1v2Cy_zhpuhGn7n7_2rto4_f4tmkpLKsdbUFJNYZbLCNeKow8gHo6bID-BkSLIgAA; + fpc=AsS7PsRzEmNAnTd_m-1VaIA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:13:34 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AsS7PsRzEmNAnTd_m-1VaIAE8LayAQAAAK6AG9gOAAAA; expires=Fri, 28-May-2021 + 16:13: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.11654.16 - SCUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc7611808:tagc7611808"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:43:46 GMT + - Wed, 28 Apr 2021 16:13:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8496d843-a838-11eb-ab0e-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-af87ba06-a83c-11eb-9950-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8496d843-a838-11eb-ab0e-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-af87ba06-a83c-11eb-9950-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:43:58 GMT + - Wed, 28 Apr 2021 16:13:48 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:43:59 GMT + date: Wed, 28 Apr 2021 16:13:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:13:50 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:00 GMT + date: Wed, 28 Apr 2021 16:13:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoc7611808:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:13:50 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,13 +279,13 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T15:39:48.1053106Z", "lastUpdateTime": - "2021-04-28T15:39:48.1053106Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T16:13:39.7891562Z", "lastUpdateTime": + "2021-04-28T16:13:39.7891562Z", "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", @@ -211,7 +337,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:01 GMT + date: Wed, 28 Apr 2021 16:13:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,7 +355,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -241,7 +367,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:02 GMT + date: Wed, 28 Apr 2021 16:13:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,22 +388,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:02 GMT + date: Wed, 28 Apr 2021 16:13:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.383333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoc7611808:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:13:52 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -286,7 +440,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '' @@ -294,7 +448,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 15:44:03 GMT + date: Wed, 28 Apr 2021 16:13:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -312,7 +466,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -324,7 +478,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:13 GMT + date: Wed, 28 Apr 2021 16:14:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -345,22 +499,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:13 GMT + date: Wed, 28 Apr 2021 16:14:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoc7611808:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:03 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -369,7 +551,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' @@ -378,7 +560,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:13 GMT + date: Wed, 28 Apr 2021 16:14:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index cf5a76abd23e..e66e045858d8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:14 GMT + date: Wed, 28 Apr 2021 16:14:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:04 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:15 GMT + date: Wed, 28 Apr 2021 16:14:05 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + 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:repo61301e4e:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:05 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: null headers: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -74,7 +135,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:15 GMT + date: Wed, 28 Apr 2021 16:14:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index aaf0545ad17a..573d5ffb7c05 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6s5vIse5m8HaqT7Qq9F_03PDLfuvmK48BGIyvtvJnBoHrG1-Ia4_3NwcsM2YMGMWw6JzZbkr-VMc0Gjeuz4pI9a5LMLOgldJRdkApML8pwtqGSoOUTKM5mz2vg_LewLBzFvthaelvRmHFa3pSuYeedHOXB89BuPIP6ln3JMJYF4gAA; + fpc=AiykUYvrIpNNnPx-jNTkKJI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:14:06 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AiykUYvrIpNNnPx-jNTkKJIE8LayAQAAAM2AG9gOAAAA; expires=Fri, 28-May-2021 + 16:14:06 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo9cb4121e:tag9cb4121e0", "repo9cb4121e:tag9cb4121e1", "repo9cb4121e:tag9cb4121e2", @@ -17,7 +82,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -29,11 +94,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:05 GMT + - Wed, 28 Apr 2021 16:14:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ae8d1dc8-a839-11eb-986f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c209c52a-a83c-11eb-ac5f-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 202 message: Accepted @@ -59,7 +124,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ae8d1dc8-a839-11eb-986f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c209c52a-a83c-11eb-ac5f-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +136,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:52:18 GMT + - Wed, 28 Apr 2021 16:14:19 GMT expires: - '-1' pragma: @@ -97,7 +162,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -109,7 +174,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:19 GMT + date: Wed, 28 Apr 2021 16:14:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -119,6 +184,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:20 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -130,22 +228,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:20 GMT + date: Wed, 28 Apr 2021 16:14:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo9cb4121e:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:21 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -154,7 +280,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: body: string: '' @@ -162,7 +288,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 15:52:20 GMT + date: Wed, 28 Apr 2021 16:14:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -181,7 +307,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags + uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -193,7 +319,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:21 GMT + date: Wed, 28 Apr 2021 16:14:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -214,22 +340,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:21 GMT + date: Wed, 28 Apr 2021 16:14:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo9cb4121e:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:22 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -238,10 +392,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags + uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9cb4121e", "tags": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo9cb4121e", "tags": [{"name": "tag9cb4121e1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:06.2665877Z", "lastUpdateTime": "2021-04-28T15:40:06.2665877Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -259,7 +413,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:21 GMT + date: Wed, 28 Apr 2021 16:14:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index 356ba1a4a91e..fea79547b1fc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:22 GMT + date: Wed, 28 Apr 2021 16:14:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:23 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - WUS2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:23 GMT + date: Wed, 28 Apr 2021 16:14:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoddbe1864:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:24 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/token - request: body: null headers: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + uri: https://seankane.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -74,7 +135,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:52:23 GMT + date: Wed, 28 Apr 2021 16:14:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index f41090854001..b11330ae4713 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqQPp-6jgxLNpoUU3C9sSUofEADJzG7gHzQTqnlrJ5yHCFb5G3KcSM0sS60tqtJ_EIPvAoNMpjITjSrlhuewFpAMTXrTBKctRzZ32bd1zpXTocYCHMBauuhxV-mVJVUbBAwGNIXcgawAO6UFUQ5Y71uuI5Y5OmlzLftOM8T9S-XAgAA; + fpc=ArdRpSN-vgpAgrrnBA5ncI0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:14:25 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=ArdRpSN-vgpAgrrnBA5ncI0E8LayAQAAAOGAG9gOAAAA; expires=Fri, 28-May-2021 + 16:14: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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoaf9517b2:tagaf9517b2"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:44:33 GMT + - Wed, 28 Apr 2021 16:14:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a0c560a3-a838-11eb-b512-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cd8c1ab9-a83c-11eb-a1c7-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a0c560a3-a838-11eb-b512-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cd8c1ab9-a83c-11eb-a1c7-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:44:46 GMT + - Wed, 28 Apr 2021 16:14:39 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:48 GMT + date: Wed, 28 Apr 2021 16:14:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:39 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - EUS ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:49 GMT + date: Wed, 28 Apr 2021 16:14:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoaf9517b2:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:41 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,10 +279,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests + uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoaf9517b2", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": "2021-04-28T15:40:19.4589707Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -211,7 +337,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:49 GMT + date: Wed, 28 Apr 2021 16:14:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,7 +355,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -241,7 +367,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:50 GMT + date: Wed, 28 Apr 2021 16:14:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,22 +388,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:50 GMT + date: Wed, 28 Apr 2021 16:14:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoaf9517b2:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:43 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -286,10 +440,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repoaf9517b2", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": "2021-04-28T15:40:19.4589707Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -304,7 +458,7 @@ interactions: connection: keep-alive content-length: '818' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:51 GMT + date: Wed, 28 Apr 2021 16:14:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index a8d5e6158f4d..e0bdafeee2d8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl + uri: https://seankane.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl response: body: string: '404 page not found @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 15:44:52 GMT + date: Wed, 28 Apr 2021 16:14:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index e8db2c16758d..a7624307a12a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXgEfUq9mFlTRXIWKD-s-luTOCRrkvjRHmxvvxFfrXvJTl52pgZhA28De9nR0LYgUuSZTm0QEGZAj2Y8BaKFP780RIYF9seY19zX-4QsZndUKEry58qRKwjTJajyCdsiMeY3yWoPKZlm_ZfSQ6GArBRMGf_EZgfndK5-bk6teEKEgAA; + fpc=AjK1oWL5niVDnQyDW401Z9U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:14:44 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AjK1oWL5niVDnQyDW401Z9UE8LayAQAAAPSAG9gOAAAA; expires=Fri, 28-May-2021 + 16:14:45 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.11654.16 - NEULR2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3db51597:tag3db51597"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:44:53 GMT + - Wed, 28 Apr 2021 16:14:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-acfee1bf-a838-11eb-b7ac-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d8df310c-a83c-11eb-a22e-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-acfee1bf-a838-11eb-b7ac-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d8df310c-a83c-11eb-a22e-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:45:07 GMT + - Wed, 28 Apr 2021 16:14:58 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:08 GMT + date: Wed, 28 Apr 2021 16:14:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:14:59 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - NEULR1 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:09 GMT + date: Wed, 28 Apr 2021 16:15:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3db51597:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:00 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,10 +279,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3db51597", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:40:36.3129691Z", "lastUpdateTime": "2021-04-28T15:40:36.3129691Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -211,7 +337,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:09 GMT + date: Wed, 28 Apr 2021 16:15:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,7 +355,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -241,7 +367,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:10 GMT + date: Wed, 28 Apr 2021 16:15:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,22 +388,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:10 GMT + date: Wed, 28 Apr 2021 16:15:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.466667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3db51597:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:02 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -286,10 +440,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3db51597", "tag": {"name": "tag3db51597", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:36.7019882Z", "lastUpdateTime": "2021-04-28T15:40:36.7019882Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -299,7 +453,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:11 GMT + date: Wed, 28 Apr 2021 16:15:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index 784a9ebe1b8d..26ae0ab03148 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -19,7 +19,7 @@ interactions: connection: keep-alive content-length: '214' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:11 GMT + date: Wed, 28 Apr 2021 16:15:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -29,6 +29,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:02 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - NEULR2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -40,22 +73,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:12 GMT + date: Wed, 28 Apr 2021 16:15:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '165.933333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:hello-world:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:04 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -64,7 +125,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -74,7 +135,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:13 GMT + date: Wed, 28 Apr 2021 16:15:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index cf93b6e6cbcd..785d8c44b4bd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2Cdv1ucA9h1TLHc2I4cZ9SuTMdu9MKh6U94sFd-jslQVl8oGAQgdha81NMYnMpJKUwQyuvnFAgcudwqICazQR4pIWEL7J6ZxwxRbs9hpL1Gy-WFY5e7cgtPhyvJXbSC-EDKnbjWeRA1_gV2taXTAh8g0JG3RIVhKkY3AVhvsUc0gAA; + fpc=AiiuZV4yddNPiwZMIqZKnKw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:15:04 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AiiuZV4yddNPiwZMIqZKnKwE8LayAQAAAAiBG9gOAAAA; expires=Fri, 28-May-2021 + 16:15: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.11654.16 - NEULR1 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo8b5a11da:tag8b5a11da0", "repo8b5a11da:tag8b5a11da1", "repo8b5a11da:tag8b5a11da2", @@ -17,7 +82,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -29,11 +94,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:27 GMT + - Wed, 28 Apr 2021 16:15:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-739e0a2c-a839-11eb-90c3-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e500935b-a83c-11eb-9bc9-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -59,7 +124,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-739e0a2c-a839-11eb-90c3-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e500935b-a83c-11eb-9bc9-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +136,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:50:39 GMT + - Wed, 28 Apr 2021 16:15:18 GMT expires: - '-1' pragma: @@ -97,7 +162,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -109,7 +174,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:41 GMT + date: Wed, 28 Apr 2021 16:15:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -119,6 +184,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:19 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - NEULR1 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -130,22 +228,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:42 GMT + date: Wed, 28 Apr 2021 16:15:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + 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:repo8b5a11da:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15: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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -154,10 +280,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo8b5a11da", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:40:53.2285659Z", "lastUpdateTime": "2021-04-28T15:40:53.2285659Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -213,7 +339,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:42 GMT + date: Wed, 28 Apr 2021 16:15:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -231,7 +357,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags + uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_tags response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -243,7 +369,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:43 GMT + date: Wed, 28 Apr 2021 16:15:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -264,22 +390,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:43 GMT + date: Wed, 28 Apr 2021 16:15:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo8b5a11da:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:23 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -288,10 +442,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags + uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_tags response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "tags": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo8b5a11da", "tags": [{"name": "tag8b5a11da0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:55.5579596Z", "lastUpdateTime": "2021-04-28T15:40:55.5579596Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -313,7 +467,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:50:44 GMT + date: Wed, 28 Apr 2021 16:15:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 1e569847ad91..4a9293fa5e83 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc4uwkoqtVDOfLgmIvntzfWtLzRsHrwiwqdCRity0wf2-OLKnzfadGX4DCPLrcCom6GxEL4x12BoqJrEq99rKFhadQ6a1q-is7VlcUXqfqpUtNVSkj7PjsstbyDgaQE_Dus_75wYfgNEohQBB4EgG5ZrBqKls1TAPOoszvqheKkwgAA; + fpc=Au3dwMJ4SQlCvQ6V5wEOSQA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:15:23 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Au3dwMJ4SQlCvQ6V5wEOSQAE8LayAQAAAByBG9gOAAAA; expires=Fri, 28-May-2021 + 16:15: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.11654.16 - WEULR2 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repob0a917be:tagb0a917be"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:45:32 GMT + - Wed, 28 Apr 2021 16:15:24 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c3c46f5b-a838-11eb-9f3b-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f05b947f-a83c-11eb-9ba2-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c3c46f5b-a838-11eb-9f3b-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f05b947f-a83c-11eb-9ba2-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:45:45 GMT + - Wed, 28 Apr 2021 16:15:36 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:46 GMT + date: Wed, 28 Apr 2021 16:15:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:38 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - NEULR2 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,14 +227,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:47 GMT + date: Wed, 28 Apr 2021 16:15:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -145,6 +243,34 @@ interactions: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repob0a917be:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:38 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: null headers: @@ -153,10 +279,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -211,7 +337,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:47 GMT + date: Wed, 28 Apr 2021 16:15:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,7 +355,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -241,7 +367,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:48 GMT + date: Wed, 28 Apr 2021 16:15:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,22 +388,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:49 GMT + date: Wed, 28 Apr 2021 16:15:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repob0a917be:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:40 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -286,10 +440,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -304,7 +458,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:49 GMT + date: Wed, 28 Apr 2021 16:15:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -326,7 +480,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -338,7 +492,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:49 GMT + date: Wed, 28 Apr 2021 16:15:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -359,22 +513,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:49 GMT + date: Wed, 28 Apr 2021 16:15:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.683333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repob0a917be:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:41 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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": false}' @@ -388,10 +570,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -406,7 +588,7 @@ interactions: connection: keep-alive content-length: '820' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:50 GMT + date: Wed, 28 Apr 2021 16:15:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -428,7 +610,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -440,7 +622,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:50 GMT + date: Wed, 28 Apr 2021 16:15:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -461,22 +643,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:50 GMT + date: Wed, 28 Apr 2021 16:15:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' + x-ms-ratelimit-remaining-calls-per-second: '165.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:repob0a917be:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:41 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '165.633333' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": true}' @@ -490,10 +700,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -508,7 +718,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:45:51 GMT + date: Wed, 28 Apr 2021 16:15:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index ae30e873f0bc..1a0f91ace34d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -1,4 +1,69 @@ interactions: +- request: + body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/x-www-form-urlencoded + Cookie: + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4ZYKoU9GE6qE3a91wALyTS3oW5YLzeJzlWVanuLEn_mpdcGFME47DuLobUicoSiSIJ-hnFaV-3jDsEYgCMG6nBmOeqf5qMSE1aXuAXax329jzXoyMXt5JzCqmK9IWtpp_TR6EuWIU7ETQ61eXCMF9Nr9BL5JiIZBKQuzPyN5UzwgAA; + fpc=AnBQnvbV7x5Gr7kbM9tNiKU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-client-cpu: + - x64 + x-client-current-telemetry: + - 1|730,0| + x-client-os: + - win32 + x-client-sku: + - MSAL.Python + x-client-ver: + - 1.9.0 + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 16:15:42 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AnBQnvbV7x5Gr7kbM9tNiKUE8LayAQAAAC-BG9gOAAAA; expires=Fri, 28-May-2021 + 16:15:43 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.11654.16 - NEULR1 ProdSlices + status: + code: 200 + message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3e8d15a3:tag3e8d15a3"], "mode": "Force"}' @@ -16,7 +81,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 response: body: string: 'null' @@ -28,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:45:52 GMT + - Wed, 28 Apr 2021 16:15:43 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d0162253-a838-11eb-86e7-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fbad64af-a83c-11eb-998a-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -58,7 +123,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d0162253-a838-11eb-86e7-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fbad64af-a83c-11eb-998a-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 15:46:05 GMT + - Wed, 28 Apr 2021 16:15:57 GMT expires: - '-1' pragma: @@ -96,7 +161,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -108,7 +173,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:06 GMT + date: Wed, 28 Apr 2021 16:15:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,6 +183,39 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests +- request: + body: + client_id: f850650c-1fcf-4489-b46f-71af2e30d360 + client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t + grant_type: client_credentials + scope: https://management.core.windows.net/.default + headers: + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + response: + body: + string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, + "access_token": "REDACTED"}' + headers: + cache-control: no-store, no-cache + content-length: '1361' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:58 GMT + expires: '-1' + p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: no-cache + set-cookie: 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.11654.16 - NEULR1 ProdSlices + status: + code: 200 + message: OK + url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -129,22 +227,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:07 GMT + date: Wed, 28 Apr 2021 16:15:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3e8d15a3:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:15:59 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://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -153,10 +279,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "manifests": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:41:28.6034839Z", "lastUpdateTime": "2021-04-28T15:41:28.6034839Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -211,7 +337,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:08 GMT + date: Wed, 28 Apr 2021 16:16:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,7 +355,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -241,7 +367,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:09 GMT + date: Wed, 28 Apr 2021 16:16:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,22 +388,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:09 GMT + date: Wed, 28 Apr 2021 16:16:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.533333' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3e8d15a3:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:16: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 + url: https://fake_url.azurecr.io/oauth2/token - request: body: null headers: @@ -286,10 +440,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -299,7 +453,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:09 GMT + date: Wed, 28 Apr 2021 16:16:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -321,7 +475,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -333,7 +487,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:09 GMT + date: Wed, 28 Apr 2021 16:16:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -354,22 +508,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:10 GMT + date: Wed, 28 Apr 2021 16:16:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.4' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3e8d15a3:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:16:02 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://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": false}' @@ -383,10 +565,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": @@ -396,7 +578,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:10 GMT + date: Wed, 28 Apr 2021 16:16:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -418,7 +600,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, @@ -430,7 +612,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:10 GMT + date: Wed, 28 Apr 2021 16:16:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -451,22 +633,50 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange + uri: https://seankane.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:10 GMT + date: Wed, 28 Apr 2021 16:16:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.15' + x-ms-ratelimit-remaining-calls-per-second: '166.366667' status: code: 200 message: OK url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo3e8d15a3:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankane.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 16:16: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 + url: https://fake_url.azurecr.io/oauth2/token - request: body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": true}' @@ -480,10 +690,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -493,7 +703,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 15:46:11 GMT + date: Wed, 28 Apr 2021 16:16:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 7ce9522d3a9a..9ceaadaf7478 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -25,7 +25,12 @@ from azure.mgmt.containerregistry.models import ImportImageParameters, ImportSource, ImportMode from azure.identity import DefaultAzureCredential -from azure_devtools.scenario_tests import RecordingProcessor +from azure_devtools.scenario_tests import ( + GeneralNameReplacer, + RequestUrlNormalizer, + AuthenticationMetadataFilter, + RecordingProcessor +) from devtools_testutils import AzureTestCase @@ -132,8 +137,14 @@ def get_token(self, *args): class ContainerRegistryTestClass(AzureTestCase): def __init__(self, method_name): - super(ContainerRegistryTestClass, self).__init__(method_name) - self.recording_processors.append(AcrBodyReplacer()) + super(ContainerRegistryTestClass, self).__init__(method_name, + recording_processors=[ + GeneralNameReplacer(), + AuthenticationMetadataFilter(), + RequestUrlNormalizer(), + AcrBodyReplacer(), + ]) + # self.recording_processors.append(AcrBodyReplacer()) self.repository = "library/hello-world" def sleep(self, t): @@ -141,7 +152,6 @@ def sleep(self, t): time.sleep(t) def import_image(self, repository, tags): - # type: (str, List[str]) -> None # repository must be a docker hub repository # tags is a List of repository/tag combos in the format : if not self.is_live: From d5986dd58a6cb412f2873d571f08993c02d24bf2 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 13:11:51 -0400 Subject: [PATCH 07/42] pylint issues --- .../_container_repository.py | 11 +++---- .../containerregistry/_exchange_client.py | 3 +- .../azure/containerregistry/_models.py | 2 +- .../containerregistry/_registry_artifact.py | 11 ++++--- .../azure/containerregistry/aio/__init__.py | 6 +--- .../aio/_async_container_repository.py | 8 ++--- .../aio/_async_exchange_client.py | 7 ++-- .../aio/_async_registry_artifact.py | 32 ++++++++++++------- 8 files changed, 43 insertions(+), 37 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index e56870c87263..480899eba4ac 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -17,12 +17,11 @@ from ._base_client import ContainerRegistryBaseClient from ._generated.models import AcrErrors -from ._helpers import _is_tag, _parse_next_link +from ._helpers import _parse_next_link from ._models import ( DeletedRepositoryResult, ArtifactManifestProperties, RepositoryProperties, - TagProperties, ) from ._registry_artifact import RegistryArtifact @@ -53,10 +52,10 @@ def __init__(self, endpoint, repository, credential, **kwargs): self._credential = credential super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - def _get_digest_from_tag(self, tag): - # type: (str) -> str - tag_props = self.get_tag_properties(tag) - return tag_props.digest + # def _get_digest_from_tag(self, tag): + # # type: (str) -> str + # tag_props = self.get_tag_properties(tag) + # return tag_props.digest @distributed_trace def delete(self, **kwargs): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py index 95f491749fa8..37c68e2e2eb6 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py @@ -64,7 +64,8 @@ def __init__(self, endpoint, credential, **kwargs): def get_acr_access_token(self, challenge, **kwargs): # type: (str, Dict[str, Any]) -> str parsed_challenge = _parse_challenge(challenge) - # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) # TODO: This is interfering with recordings + # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) + # TODO: This is interfering with recordings refresh_token = self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) return self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 62b92e1627d9..23e75c4917ba 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -160,7 +160,7 @@ def _to_generated(self): last_updated_on=self.last_updated_on, manifest_count=self.manifest_count, tag_count=self.tag_count, - writeable_propertie=self.content_permissions._to_generated() + writeable_properties=self.content_permissions._to_generated(), # pylint: disable=protected-access ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 7b24561b2b65..4ebc09fe7dbd 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -96,9 +96,7 @@ def get_manifest_properties(self, **kwargs): self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else self._get_digest_from_tag() return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_manifest_properties( - self.repository, self._digest, **kwargs - ) + self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs) ) @distributed_trace @@ -249,7 +247,10 @@ def set_manifest_properties(self, permissions, **kwargs): return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access self._client.container_registry.update_manifest_properties( - self.repository, self._digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + self.repository, + self._digest, + value=permissions._to_generated(), # pylint: disable=protected-access + **kwargs ) ) @@ -269,4 +270,4 @@ def set_tag_properties(self, tag, permissions, **kwargs): self._client.container_registry.update_tag_attributes( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ) - ) \ No newline at end of file + ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py index 7e75d4d4a42d..5f880b144044 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/__init__.py @@ -10,8 +10,4 @@ from ._async_container_repository import ContainerRepository from ._async_registry_artifact import RegistryArtifact -__all__ = [ - "ContainerRegistryClient", - "ContainerRepository", - "RegistryArtifact" -] +__all__ = ["ContainerRegistryClient", "ContainerRepository", "RegistryArtifact"] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index b2c2216d0891..d7ca3aa69c7a 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -18,7 +18,7 @@ from ._async_base_client import ContainerRegistryBaseClient from .._generated.models import AcrErrors -from .._helpers import _is_tag, _parse_next_link +from .._helpers import _parse_next_link from .._models import ( ContentPermissions, DeletedRepositoryResult, @@ -54,9 +54,9 @@ def __init__( self.repository = repository super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - async def _get_digest_from_tag(self, tag: str) -> None: - tag_props = await self.get_tag_properties(tag) - return tag_props.digest + # async def _get_digest_from_tag(self, tag: str) -> None: + # tag_props = await self.get_tag_properties(tag) + # return tag_props.digest @distributed_trace_async async def delete(self, **kwargs: Dict[str, Any]) -> DeletedRepositoryResult: diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py index 47c42ac981c7..d933da2d33a8 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py @@ -40,9 +40,7 @@ class ACRExchangeClient(object): BEARER = "Bearer" AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - def __init__( - self, endpoint: str, credential: "AsyncTokencredential", **kwargs: Dict[str, Any] - ) -> None: + def __init__(self, endpoint: str, credential: "AsyncTokencredential", **kwargs: Dict[str, Any]) -> None: if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint @@ -61,7 +59,8 @@ def __init__( async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: parsed_challenge = _parse_challenge(challenge) - # refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) # TODO: This is interfering with recordings + # refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) + # TODO: This is interfering with recordings refresh_token = await self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) return await self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index 783b7a2a3fa0..675ad47597fc 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -26,13 +26,18 @@ ) if TYPE_CHECKING: - from typing import Any, Dict - from azure.core.credentials import AsyncTokenCredential - from ._models import ContentPermissions + from azure.core.credentials_async import AsyncTokenCredential class RegistryArtifact(ContainerRegistryBaseClient): - def __init__(self, endpoint: str, repository: str, tag_or_digest: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any]) -> None: + def __init__( + self, + endpoint: str, + repository: str, + tag_or_digest: str, + credential: "AsyncTokenCredential", + **kwargs: Dict[str, Any] + ) -> None: """Create a RegistryArtifact from an endpoint, repository, a tag or digest, and a credential :param endpoint: An ACR endpoint @@ -94,9 +99,7 @@ async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactMan self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_manifest_properties( - self.repository, self._digest, **kwargs - ) + await self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs) ) @distributed_trace_async @@ -230,7 +233,9 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace_async - async def set_manifest_properties(self, permissions: ContentPermissions, **kwargs: Dict[str, Any]) -> ArtifactManifestProperties: + async def set_manifest_properties( + self, permissions: ContentPermissions, **kwargs: Dict[str, Any] + ) -> ArtifactManifestProperties: """Set the properties for a manifest :param permissions: The property's values to be set @@ -243,12 +248,17 @@ async def set_manifest_properties(self, permissions: ContentPermissions, **kwarg return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access await self._client.container_registry.update_manifest_properties( - self.repository, self._digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access + self.repository, + self._digest, + value=permissions._to_generated(), # pylint: disable=protected-access + **kwargs ) ) @distributed_trace_async - async def set_tag_properties(self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any]) -> TagProperties: + async def set_tag_properties( + self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] + ) -> TagProperties: """Set the properties for a tag :param tag: Tag to set properties for @@ -262,4 +272,4 @@ async def set_tag_properties(self, tag: str, permissions: ContentPermissions, ** await self._client.container_registry.update_tag_attributes( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ) - ) \ No newline at end of file + ) From 128713600f0a853258973c34dce4c10586966878 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 14:08:57 -0400 Subject: [PATCH 08/42] recording and processors --- .../azure-containerregistry/tests/conftest.py | 5 +- .../azure-containerregistry/tests/preparer.py | 2 +- ...egistry_client.test_delete_repository.yaml | 198 ++------ ...test_delete_repository_does_not_exist.yaml | 94 +--- ...egistry_client.test_list_repositories.yaml | 94 +--- ...client.test_list_repositories_by_page.yaml | 365 ++++++------- ...lient.test_transport_closed_only_once.yaml | 123 +---- ...y_client_async.test_delete_repository.yaml | 166 ++---- ...test_delete_repository_does_not_exist.yaml | 62 +-- ...y_client_async.test_list_repositories.yaml | 62 +-- ..._async.test_list_repositories_by_page.yaml | 381 ++++++-------- ...async.test_transport_closed_only_once.yaml | 91 +--- ...ner_repository.test_delete_repository.yaml | 292 ++--------- ...y.test_delete_repository_doesnt_exist.yaml | 94 +--- ...tainer_repository.test_get_properties.yaml | 96 +--- ...pository.test_list_registry_artifacts.yaml | 96 +--- ...est_list_registry_artifacts_ascending.yaml | 96 +--- ....test_list_registry_artifacts_by_page.yaml | 220 +++----- ...st_list_registry_artifacts_descending.yaml | 96 +--- ...tainer_repository.test_set_properties.yaml | 231 ++------- ...pository_async.test_delete_repository.yaml | 228 ++------- ...c.test_delete_repository_doesnt_exist.yaml | 62 +-- ..._repository_async.test_get_properties.yaml | 64 +-- ...ry_async.test_list_registry_artifacts.yaml | 64 +-- ...est_list_registry_artifacts_ascending.yaml | 64 +-- ....test_list_registry_artifacts_by_page.yaml | 188 +++---- ...st_list_registry_artifacts_descending.yaml | 64 +-- ..._repository_async.test_set_properties.yaml | 199 ++------ ...rtifact.test_delete_registry_artifact.yaml | 233 ++------- ...lete_registry_artifact_does_not_exist.yaml | 94 +--- ...est_registry_artifact.test_delete_tag.yaml | 200 ++------ ...tifact.test_delete_tag_does_not_exist.yaml | 94 +--- ...artifact.test_get_manifest_properties.yaml | 478 ++++++++++++++++++ ...et_manifest_properties_does_not_exist.yaml | 4 +- ...stry_artifact.test_get_tag_properties.yaml | 202 ++------ ...est_get_tag_properties_does_not_exist.yaml | 94 +--- ...test_registry_artifact.test_list_tags.yaml | 200 ++------ ...artifact.test_set_manifest_properties.yaml | 270 +++------- ...stry_artifact.test_set_tag_properties.yaml | 264 +++------- ...t_async.test_delete_registry_artifact.yaml | 201 ++------ ...lete_registry_artifact_does_not_exist.yaml | 62 +-- ...gistry_artifact_async.test_delete_tag.yaml | 168 ++---- ..._async.test_delete_tag_does_not_exist.yaml | 62 +-- ...ct_async.test_get_manifest_properties.yaml | 170 ++----- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...rtifact_async.test_get_tag_properties.yaml | 170 ++----- ...est_get_tag_properties_does_not_exist.yaml | 62 +-- ...egistry_artifact_async.test_list_tags.yaml | 170 ++----- ...ct_async.test_set_manifest_properties.yaml | 236 +++------ ...rtifact_async.test_set_tag_properties.yaml | 232 +++------ .../test_container_registry_client_async.py | 2 +- .../tests/test_container_repository.py | 14 +- .../tests/test_container_repository_async.py | 8 +- .../tests/test_registry_artifact.py | 16 +- .../tests/test_registry_artifact_async.py | 3 - .../azure-containerregistry/tests/testcase.py | 43 +- 56 files changed, 2199 insertions(+), 5354 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml diff --git a/sdk/containerregistry/azure-containerregistry/tests/conftest.py b/sdk/containerregistry/azure-containerregistry/tests/conftest.py index 242a058af9da..c29ec3831836 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/conftest.py +++ b/sdk/containerregistry/azure-containerregistry/tests/conftest.py @@ -15,7 +15,6 @@ if sys.version_info < (3, 5): collect_ignore_glob.append("*_async.py") + def pytest_configure(config): - config.addinivalue_line( - "usefixtures", "load_registry" - ) + config.addinivalue_line("usefixtures", "load_registry") diff --git a/sdk/containerregistry/azure-containerregistry/tests/preparer.py b/sdk/containerregistry/azure-containerregistry/tests/preparer.py index aeefbdfd6713..3e1252124671 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/preparer.py +++ b/sdk/containerregistry/azure-containerregistry/tests/preparer.py @@ -5,7 +5,7 @@ # ------------------------------------ import functools -from devtools_testutils import AzureTestCase, PowerShellPreparer +from devtools_testutils import PowerShellPreparer acr_preparer = functools.partial( PowerShellPreparer, 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 index acbd364199ac..43065b90083d 100644 --- 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 @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR5QloeCWIHTM3BTalNEAlltZXJtE76E-RiEiBjCLYLWi1-wTEKTaWUME6bFd9tijmd-pEgCfhkjE9X_XCrqt3wGX9H37IGOvOtV5-bGsPb-7jXwovcBbOsgrNPKSBmQGYsfSyaBvgTlZzCK9g6-IMfcQA5AsCwolTe3dNLVZRQEgAA; - fpc=AsmHyZn4HgtGi9K7vhx8QIU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:07:44 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AsmHyZn4HgtGi9K7vhx8QIUE8LayAQAAAFF_G9gOAAAA; expires=Fri, 28-May-2021 - 16:07:45 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:07:46 GMT + - Wed, 28 Apr 2021 17:38:32 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-df1979f0-a83b-11eb-96b2-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8d39093a-a848-11eb-89c6-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-df1979f0-a83b-11eb-96b2-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8d39093a-a848-11eb-89c6-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:07:58 GMT + - Wed, 28 Apr 2021 17:38:45 GMT expires: - '-1' pragma: @@ -167,13 +102,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted 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"}]}]} - - ' + 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 @@ -187,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:07:59 GMT + - Wed, 28 Apr 2021 17:38:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -196,77 +130,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:to_be_deleted:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqI1qc6lXDbxnhuE3dE5Ad4Xcn7GxoFmD2jC39MTZddk7jtz1RBDEiZD7MfsAVdF-QVAldix686AUHqlFIeEpymJ31V_Q-0d4cQF9ZiHs-diRPz2wjulEguR_pKFFOG6nqVcd2UhrAuqmGRdAgax_40J1gjhwWZozrsrTEAw925YgAA; - fpc=ApldfXrDRwVJud8ZY8NKmIo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:08:00 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ApldfXrDRwVJud8ZY8NKmIovu5CIAQAAAF9_G9gOAAAA; expires=Fri, 28-May-2021 - 16:08: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -283,7 +152,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -293,7 +162,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:01 GMT + - Wed, 28 Apr 2021 17:38:48 GMT server: - openresty strict-transport-security: @@ -301,7 +170,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.85' + - '166.65' status: code: 200 message: OK @@ -321,7 +190,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -331,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:01 GMT + - Wed, 28 Apr 2021 17:38:48 GMT server: - openresty strict-transport-security: @@ -339,7 +208,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' + - '166.633333' status: code: 200 message: OK @@ -357,7 +226,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -384,7 +253,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:03 GMT + - Wed, 28 Apr 2021 17:38:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -411,13 +280,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -431,7 +299,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:03 GMT + - Wed, 28 Apr 2021 17:38:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -440,7 +308,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -462,7 +330,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -472,7 +340,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:04 GMT + - Wed, 28 Apr 2021 17:38:51 GMT server: - openresty strict-transport-security: @@ -480,7 +348,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' + - '166.616667' status: code: 200 message: OK @@ -500,7 +368,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -510,7 +378,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:04 GMT + - Wed, 28 Apr 2021 17:38:51 GMT server: - openresty strict-transport-security: @@ -518,7 +386,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.8' + - '166.6' status: code: 200 message: OK @@ -534,7 +402,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -555,7 +423,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:05 GMT + - Wed, 28 Apr 2021 17:38:51 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 72faa03c7193..c179b3027ec8 100644 --- 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 @@ -13,13 +13,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/not_real_repo + uri: https://fake_url.azurecr.io/acr/v1/not_real_repo 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"}]}]} - - ' + 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 @@ -33,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:05 GMT + - Wed, 28 Apr 2021 17:38:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -42,77 +41,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:not_real_repo:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDJvX8p7wax0v5oRgWVyRBXAKjAGUEEiSaFuDX4vUAWxFwSfTcDZFH2vlJ3OKC7WKIWHt_q06eh8ReQUxSCuUIH4QOqdiLOpEvNfnFgYvrMMH78sYxuCs-rHncOh4JyYclARb7WK5buFRJ9AmDSB5d-ywdOAhQSck4X4IeZD1y7IgAA; - fpc=AlycyNqMGiBMoEgM9xU9BjI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:08:05 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AlycyNqMGiBMoEgM9xU9BjIvu5CIAQAAAGV_G9gOAAAA; expires=Fri, 28-May-2021 - 16:08:06 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -129,7 +63,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -139,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:06 GMT + - Wed, 28 Apr 2021 17:38:54 GMT server: - openresty strict-transport-security: @@ -147,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.566667' status: code: 200 message: OK @@ -167,7 +101,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -177,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:06 GMT + - Wed, 28 Apr 2021 17:38:54 GMT server: - openresty strict-transport-security: @@ -185,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.55' status: code: 200 message: OK @@ -203,7 +137,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/not_real_repo + uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -221,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:07 GMT + - Wed, 28 Apr 2021 17:38:54 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml index 645779653019..37dbfef3631d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:07 GMT + - Wed, 28 Apr 2021 17:38:55 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQtSkt7zD-HLK6cTJ38rMypQQxFaX5Ubcdf2MAct2CFqCW1Aeah1psUbGiXeDPxLen4XZCTKrrrDbeRKF5MMutMb0_8z-uQVqV9XRMAUwZtcr7HkwDA81mx2D5DYsJcBpX1fSrmk4ZMrYR85_7RvEh5vqFxlNbkUFNc1gJGjRaf0gAA; - fpc=As8-xTd6y3ZBsR9-FlzZtbk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:08:07 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=As8-xTd6y3ZBsR9-FlzZtbkvu5CIAQAAAGd_G9gOAAAA; expires=Fri, 28-May-2021 - 16:08: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:09 GMT + - Wed, 28 Apr 2021 17:38:56 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '166.566667' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:09 GMT + - Wed, 28 Apr 2021 17:38:57 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.55' status: code: 200 message: OK @@ -199,7 +133,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -220,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:09 GMT + - Wed, 28 Apr 2021 17:38:57 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml index 4a0ca5e2e0ea..8e64292be3dd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories_by_page.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 + 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":"*"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:37 GMT + - Wed, 28 Apr 2021 17:38:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgWfc8dy17AuweEEbQK2BJBRlRkM3Qclwl2IlgxPAsvO5soNh6DKbKXNhx10nG3saJPNxNS8MbbunKx8RKRXa8ed6uEMkPNQ853u_-QnImyRqQ7dIK4rkHeVe1L5tcslT4q9_-SGOlXGEmdSuCmTbCQn1wLWk5tnaSeXZ8K0JH_0gAA; - fpc=Avcoem41995Mrit52KEZ5MM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:24:37 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Avcoem41995Mrit52KEZ5MMvu5CIAQAAAEWDG9gOAAAA; expires=Fri, 28-May-2021 - 16:24: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:38 GMT + - Wed, 28 Apr 2021 17:38:59 GMT server: - openresty strict-transport-security: @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:39 GMT + - Wed, 28 Apr 2021 17:39:00 GMT server: - openresty strict-transport-security: @@ -199,7 +133,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -216,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:39 GMT + - Wed, 28 Apr 2021 17:39:00 GMT docker-distribution-api-version: - registry/2.0 link: @@ -243,13 +177,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + 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":"*"}]}]} - - ' + 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 @@ -263,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:39 GMT + - Wed, 28 Apr 2021 17:39:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -272,7 +205,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -294,7 +227,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -304,7 +237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:39 GMT + - Wed, 28 Apr 2021 17:39:00 GMT server: - openresty strict-transport-security: @@ -332,7 +265,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -342,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:39 GMT + - Wed, 28 Apr 2021 17:39:01 GMT server: - openresty strict-transport-security: @@ -366,7 +299,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' @@ -383,7 +316,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:40 GMT + - Wed, 28 Apr 2021 17:39:01 GMT docker-distribution-api-version: - registry/2.0 link: @@ -410,13 +343,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&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":"*"}]}]} - - ' + 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 @@ -430,7 +362,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:40 GMT + - Wed, 28 Apr 2021 17:39:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -439,7 +371,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -461,7 +393,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -471,7 +403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:40 GMT + - Wed, 28 Apr 2021 17:39:01 GMT server: - openresty strict-transport-security: @@ -499,7 +431,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -509,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:40 GMT + - Wed, 28 Apr 2021 17:39:02 GMT server: - openresty strict-transport-security: @@ -533,7 +465,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: string: '{"repositories": ["repo28471541", "repo2c591564"]}' @@ -550,7 +482,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:40 GMT + - Wed, 28 Apr 2021 17:39:02 GMT docker-distribution-api-version: - registry/2.0 link: @@ -577,13 +509,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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":"*"}]}]} - - ' + 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 @@ -597,7 +528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:41 GMT + - Wed, 28 Apr 2021 17:39:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -606,7 +537,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -628,7 +559,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -638,7 +569,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:41 GMT + - Wed, 28 Apr 2021 17:39:02 GMT server: - openresty strict-transport-security: @@ -666,7 +597,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -676,7 +607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:41 GMT + - Wed, 28 Apr 2021 17:39:03 GMT server: - openresty strict-transport-security: @@ -700,7 +631,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' @@ -717,7 +648,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:41 GMT + - Wed, 28 Apr 2021 17:39:03 GMT docker-distribution-api-version: - registry/2.0 link: @@ -744,13 +675,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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":"*"}]}]} - - ' + 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 @@ -764,7 +694,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:41 GMT + - Wed, 28 Apr 2021 17:39:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -773,7 +703,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -795,7 +725,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -805,7 +735,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:42 GMT + - Wed, 28 Apr 2021 17:39:03 GMT server: - openresty strict-transport-security: @@ -833,7 +763,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -843,7 +773,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:42 GMT + - Wed, 28 Apr 2021 17:39:03 GMT server: - openresty strict-transport-security: @@ -867,7 +797,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' @@ -884,7 +814,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:42 GMT + - Wed, 28 Apr 2021 17:39:04 GMT docker-distribution-api-version: - registry/2.0 link: @@ -911,13 +841,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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":"*"}]}]} - - ' + 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 @@ -931,7 +860,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:42 GMT + - Wed, 28 Apr 2021 17:39:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -940,7 +869,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -962,7 +891,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -972,7 +901,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:42 GMT + - Wed, 28 Apr 2021 17:39:04 GMT server: - openresty strict-transport-security: @@ -1000,7 +929,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1010,7 +939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:04 GMT server: - openresty strict-transport-security: @@ -1034,7 +963,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' @@ -1051,7 +980,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:05 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1078,13 +1007,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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":"*"}]}]} - - ' + 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 @@ -1098,7 +1026,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1107,7 +1035,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1129,7 +1057,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1139,7 +1067,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:05 GMT server: - openresty strict-transport-security: @@ -1167,7 +1095,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1177,7 +1105,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:05 GMT server: - openresty strict-transport-security: @@ -1201,7 +1129,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' @@ -1218,7 +1146,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:43 GMT + - Wed, 28 Apr 2021 17:39:05 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1245,13 +1173,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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":"*"}]}]} - - ' + 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 @@ -1265,7 +1192,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:44 GMT + - Wed, 28 Apr 2021 17:39:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1274,7 +1201,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1296,7 +1223,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1306,7 +1233,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:44 GMT + - Wed, 28 Apr 2021 17:39:06 GMT server: - openresty strict-transport-security: @@ -1334,7 +1261,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1344,7 +1271,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:44 GMT + - Wed, 28 Apr 2021 17:39:06 GMT server: - openresty strict-transport-security: @@ -1368,7 +1295,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' @@ -1385,7 +1312,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:44 GMT + - Wed, 28 Apr 2021 17:39:06 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1412,13 +1339,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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":"*"}]}]} - - ' + 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 @@ -1432,7 +1358,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:44 GMT + - Wed, 28 Apr 2021 17:39:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1441,7 +1367,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1463,7 +1389,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1473,7 +1399,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:45 GMT + - Wed, 28 Apr 2021 17:39:07 GMT server: - openresty strict-transport-security: @@ -1501,7 +1427,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1511,7 +1437,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:45 GMT + - Wed, 28 Apr 2021 17:39:07 GMT server: - openresty strict-transport-security: @@ -1535,7 +1461,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' @@ -1552,7 +1478,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:45 GMT + - Wed, 28 Apr 2021 17:39:07 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1579,13 +1505,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&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":"*"}]}]} - - ' + 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 @@ -1599,7 +1524,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:45 GMT + - Wed, 28 Apr 2021 17:39:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1608,7 +1533,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1630,7 +1555,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1640,7 +1565,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:45 GMT + - Wed, 28 Apr 2021 17:39:08 GMT server: - openresty strict-transport-security: @@ -1668,7 +1593,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1678,7 +1603,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:08 GMT server: - openresty strict-transport-security: @@ -1702,7 +1627,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' @@ -1719,7 +1644,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1746,13 +1671,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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":"*"}]}]} - - ' + 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 @@ -1766,7 +1690,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1775,7 +1699,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1797,7 +1721,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1807,7 +1731,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:08 GMT server: - openresty strict-transport-security: @@ -1835,7 +1759,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -1845,7 +1769,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:09 GMT server: - openresty strict-transport-security: @@ -1869,7 +1793,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' @@ -1886,7 +1810,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:46 GMT + - Wed, 28 Apr 2021 17:39:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1913,13 +1837,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&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":"*"}]}]} - - ' + 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 @@ -1933,7 +1856,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:47 GMT + - Wed, 28 Apr 2021 17:39:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1942,7 +1865,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -1964,7 +1887,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -1974,7 +1897,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:47 GMT + - Wed, 28 Apr 2021 17:39:09 GMT server: - openresty strict-transport-security: @@ -2002,7 +1925,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -2012,7 +1935,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:47 GMT + - Wed, 28 Apr 2021 17:39:09 GMT server: - openresty strict-transport-security: @@ -2036,7 +1959,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"repositories": null}' @@ -2053,7 +1976,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:24:47 GMT + - Wed, 28 Apr 2021 17:39:09 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index bf8e0165daa2..a6c78ee067da 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:21 GMT + - Wed, 28 Apr 2021 17:39:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUnD9vFg8hZsIWSPHQn66x4Dxm0GbuNEXtEayp4gR6kkKUhbl2GF2PiPE0KWYxSgYhSjTIjm_VNKvbSupf0FHW74jZSYvnpvDtp9XhXYcl7HbS3o0eqrnve0B55SHoBCHP5kDhH4TxVjKLLXewbOExXrq6I_p0pRohSE18JDMeNEgAA; - fpc=ApTNMAm4C4JLh6Xl5PYfqSk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:08:21 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ApTNMAm4C4JLh6Xl5PYfqSkvu5CIAQAAAHV_G9gOAAAA; expires=Fri, 28-May-2021 - 16:08: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:22 GMT + - Wed, 28 Apr 2021 17:39:12 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.183333' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:22 GMT + - Wed, 28 Apr 2021 17:39:12 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '165.7' status: code: 200 message: OK @@ -199,7 +133,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -220,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:23 GMT + - Wed, 28 Apr 2021 17:39:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -245,13 +179,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -265,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:24 GMT + - Wed, 28 Apr 2021 17:39:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -274,7 +207,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -296,7 +229,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -306,7 +239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:24 GMT + - Wed, 28 Apr 2021 17:39:14 GMT server: - openresty strict-transport-security: @@ -314,7 +247,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.683333' status: code: 200 message: OK @@ -334,7 +267,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -344,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:24 GMT + - Wed, 28 Apr 2021 17:39:14 GMT server: - openresty strict-transport-security: @@ -352,7 +285,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '165.666667' status: code: 200 message: OK @@ -368,7 +301,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -389,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:24 GMT + - Wed, 28 Apr 2021 17:39:14 GMT docker-distribution-api-version: - registry/2.0 server: 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 index ebeff29b8cce..d784bec98fc0 100644 --- 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 @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrINAQVXswJ8dHg8_2dxhsCl6R-zVdYhZvEKLFxYwWFs3f-jRtuRtMzCBw2kIPXxKzFLuk_Ee8het2_Ion_-CuwEYMCHSRIEw84rQJPNIBCPnyAOrTJ59emRfxQ_oD5sAlb72gW7wI7dGQLnlP5fUZ_bS8npOKvKEkkDt0NpFlV0MgAA; - fpc=At1dEAY7YrhHvAtyZ8REiYY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:08:24 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=At1dEAY7YrhHvAtyZ8REiYYE8LayAQAAAHh_G9gOAAAA; expires=Fri, 28-May-2021 - 16:08: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:26 GMT + - Wed, 28 Apr 2021 17:39:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6e093fe-a83b-11eb-a4ed-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a7388cd0-a848-11eb-9070-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6e093fe-a83b-11eb-a4ed-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a7388cd0-a848-11eb-9070-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:08:39 GMT + - Wed, 28 Apr 2021 17:39:27 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:08:39 GMT + date: Wed, 28 Apr 2021 17:39:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:to_be_deleted:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/to_be_deleted -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:39 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:08:40 GMT + date: Wed, 28 Apr 2021 17:39:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:08:41 GMT + date: Wed, 28 Apr 2021 17:39:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -279,7 +180,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -298,7 +199,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:43 GMT + date: Wed, 28 Apr 2021 17:39:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -316,23 +217,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:08:43 GMT + date: Wed, 28 Apr 2021 17:39:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -349,18 +249,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:08:43 GMT + date: Wed, 28 Apr 2021 17:39:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '166.533333' status: code: 200 message: OK @@ -377,18 +277,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:08:43 GMT + date: Wed, 28 Apr 2021 17:39:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK @@ -401,7 +301,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -414,7 +314,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:44 GMT + date: Wed, 28 Apr 2021 17:39:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index b7103bfd6b2a..886bf4c498dd 100644 --- 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 @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/not_real_repo + uri: https://fake_url.azurecr.io/acr/v1/not_real_repo 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:08:45 GMT + date: Wed, 28 Apr 2021 17:39:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:not_real_repo:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/not_real_repo -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:44 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:08:46 GMT + date: Wed, 28 Apr 2021 17:39:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:08:46 GMT + date: Wed, 28 Apr 2021 17:39:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/not_real_repo + uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -135,7 +101,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:46 GMT + date: Wed, 28 Apr 2021 17:39:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml index 65ee3b7992a3..5f6aeb4b137a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:08:46 GMT + date: Wed, 28 Apr 2021 17:39:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/_catalog -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:46 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:08:47 GMT + date: Wed, 28 Apr 2021 17:39:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:08:48 GMT + date: Wed, 28 Apr 2021 17:39:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -138,7 +104,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:49 GMT + date: Wed, 28 Apr 2021 17:39:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml index c70d0d74e2fc..7ba80a965d4f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories_by_page.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:48 GMT + date: Wed, 28 Apr 2021 17:39:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/_catalog?n=2 -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:48 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:49 GMT + date: Wed, 28 Apr 2021 17:39:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.483333' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:49 GMT + date: Wed, 28 Apr 2021 17:39:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '166.466667' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -134,7 +100,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:49 GMT + date: Wed, 28 Apr 2021 17:39:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -152,23 +118,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:49 GMT + date: Wed, 28 Apr 2021 17:39:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -185,18 +150,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '166.45' status: code: 200 message: OK @@ -213,18 +178,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -237,7 +202,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' @@ -246,7 +211,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -264,23 +229,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -297,18 +261,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.416667' status: code: 200 message: OK @@ -325,18 +289,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:50 GMT + date: Wed, 28 Apr 2021 17:39:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '166.4' status: code: 200 message: OK @@ -349,7 +313,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: body: string: '{"repositories": ["repo28471541", "repo2c591564"]}' @@ -358,7 +322,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -376,23 +340,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -409,18 +372,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '166.383333' status: code: 200 message: OK @@ -437,18 +400,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' + x-ms-ratelimit-remaining-calls-per-second: '166.366667' status: code: 200 message: OK @@ -461,7 +424,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: body: string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' @@ -470,7 +433,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -488,23 +451,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:51 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -521,18 +483,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166.35' status: code: 200 message: OK @@ -549,18 +511,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -573,7 +535,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' @@ -582,7 +544,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:43 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -600,23 +562,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -633,18 +594,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK @@ -661,18 +622,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:52 GMT + date: Wed, 28 Apr 2021 17:39:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.983333' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -685,7 +646,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' @@ -694,7 +655,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:43 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -712,23 +673,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -745,18 +705,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:44 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.966667' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -773,18 +733,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:44 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -797,7 +757,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' @@ -806,7 +766,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:44 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -824,23 +784,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:53 GMT + date: Wed, 28 Apr 2021 17:39:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -857,18 +816,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -885,18 +844,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + x-ms-ratelimit-remaining-calls-per-second: '166.383333' status: code: 200 message: OK @@ -909,7 +868,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' @@ -918,7 +877,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:45 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -936,23 +895,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -969,18 +927,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '166.366667' status: code: 200 message: OK @@ -997,18 +955,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:54 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.35' status: code: 200 message: OK @@ -1021,7 +979,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' @@ -1030,7 +988,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -1048,23 +1006,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -1081,18 +1038,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -1109,18 +1066,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK @@ -1133,7 +1090,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' @@ -1142,7 +1099,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:46 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -1160,23 +1117,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:55 GMT + date: Wed, 28 Apr 2021 17:39:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -1193,18 +1149,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:56 GMT + date: Wed, 28 Apr 2021 17:39:47 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -1221,18 +1177,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:56 GMT + date: Wed, 28 Apr 2021 17:39:47 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -1245,7 +1201,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' @@ -1254,7 +1210,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:56 GMT + date: Wed, 28 Apr 2021 17:39:47 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -1272,23 +1228,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:24:56 GMT + date: Wed, 28 Apr 2021 17:39:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -1305,18 +1260,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:24:56 GMT + date: Wed, 28 Apr 2021 17:39:48 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -1333,18 +1288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:24:57 GMT + date: Wed, 28 Apr 2021 17:39:48 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -1357,7 +1312,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"repositories": null}' @@ -1366,7 +1321,7 @@ interactions: connection: keep-alive content-length: '22' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:24:57 GMT + date: Wed, 28 Apr 2021 17:39:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index 2abf4b2fe67f..7a39fc2e7746 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:09:00 GMT + date: Wed, 28 Apr 2021 17:39:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/_catalog -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:08:59 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:09:01 GMT + date: Wed, 28 Apr 2021 17:39:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.2' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:09:01 GMT + date: Wed, 28 Apr 2021 17:39:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.916667' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -138,7 +104,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:09:02 GMT + date: Wed, 28 Apr 2021 17:39:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -155,23 +121,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:09:02 GMT + date: Wed, 28 Apr 2021 17:39:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -188,18 +153,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:09:02 GMT + date: Wed, 28 Apr 2021 17:39:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -216,18 +181,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:09:03 GMT + date: Wed, 28 Apr 2021 17:39:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -240,7 +205,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -253,7 +218,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:09:04 GMT + date: Wed, 28 Apr 2021 17:39:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index 8e79011232f0..6433797ba20e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrrd_rxF80VDVeyLtjtspuNjXQM-64OTvWjyMPge3ztz0HqVZNkbdkIQi0-XlAtu-Ec2pgjjZGCcMH6diJ6lRBIjacOG-PvHZCwi8leZ6pKikKJrfsTszGTHuEflyMZEGVnx1xjqLc41o5lNupoZl08RFN1TMnIhl6cs_qD_dh36AgAA; - fpc=Am6Cn9tKF_VHtgrwhdGh4eA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:04 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Am6Cn9tKF_VHtgrwhdGh4eAE8LayAQAAAKF_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:05 GMT + - Wed, 28 Apr 2021 17:57:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0e8557f5-a83c-11eb-a3cd-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-43761dc0-a84b-11eb-b896-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0e8557f5-a83c-11eb-a3cd-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-43761dc0-a84b-11eb-b896-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:18 GMT + - Wed, 28 Apr 2021 17:58:10 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:20 GMT + - Wed, 28 Apr 2021 17:58:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkhzjNtTZtKqDg2kQGjB6-Tqoe2d_jBSnr9oUJiBuNE5o5hZXlTBwWJTk_c7VLVEnf4pSBuRO9P7DdyhoJCztJ0NI-HlrkWN5AiQ087Camr_d9sUhUPbn96utBLD7rnAIDhQQ0FxsG76HoKj10VI7XkTLNItsa0OUh2SMsIV1u1AgAA; - fpc=AluYeQIN9TpAu4DlY9YvcrE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:20 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AluYeQIN9TpAu4DlY9YvcrEvu5CIAQAAALB_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:21 GMT + - Wed, 28 Apr 2021 17:58:12 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.65' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:22 GMT + - Wed, 28 Apr 2021 17:58:13 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.633333' status: code: 200 message: OK @@ -353,7 +222,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -374,7 +243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:22 GMT + - Wed, 28 Apr 2021 17:58:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -401,13 +270,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted 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"}]}]} - - ' + 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 @@ -421,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:23 GMT + - Wed, 28 Apr 2021 17:58:14 GMT docker-distribution-api-version: - registry/2.0 server: @@ -430,77 +298,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:to_be_deleted:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0G5aVSXDptGwije7rdlWqxMXva5UxyT5UKetcUKvCX1zFyZwLbLLZOfOCCm6fcMr_YD6LaU085sNw7uWxCs2_bOVH8KSqae6PDSD4SYQ9vEB1leOv5IiQ4k4X3dGqNm6NTgCFappG2xA1WJUQYcZBOWlyz9VkofZMy-ejCg171ggAA; - fpc=Ajy4ASebTWFApFOGstMxK50; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:24 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Ajy4ASebTWFApFOGstMxK50vu5CIAQAAALN_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -517,7 +320,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -527,7 +330,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:24 GMT + - Wed, 28 Apr 2021 17:58:15 GMT server: - openresty strict-transport-security: @@ -535,7 +338,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '165.866667' status: code: 200 message: OK @@ -555,7 +358,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -565,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:25 GMT + - Wed, 28 Apr 2021 17:58:15 GMT server: - openresty strict-transport-security: @@ -573,7 +376,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.15' + - '165.583333' status: code: 200 message: OK @@ -591,7 +394,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -618,7 +421,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:26 GMT + - Wed, 28 Apr 2021 17:58:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -645,13 +448,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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 @@ -665,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:26 GMT + - Wed, 28 Apr 2021 17:58:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -674,7 +476,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -696,7 +498,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -706,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:27 GMT + - Wed, 28 Apr 2021 17:58:17 GMT server: - openresty strict-transport-security: @@ -714,7 +516,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.616667' status: code: 200 message: OK @@ -734,7 +536,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -744,7 +546,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:27 GMT + - Wed, 28 Apr 2021 17:58:17 GMT server: - openresty strict-transport-security: @@ -752,7 +554,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '165.9' status: code: 200 message: OK @@ -768,7 +570,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -789,7 +591,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:27 GMT + - Wed, 28 Apr 2021 17:58:18 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index 15b8be290d17..71031a22ba9b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -13,13 +13,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/does_not_exist 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"}]}]} - - ' + 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 @@ -33,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:28 GMT + - Wed, 28 Apr 2021 17:58:18 GMT docker-distribution-api-version: - registry/2.0 server: @@ -42,77 +41,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:does_not_exist:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRWqsWBimI6I5Ypla2kiUgi5ol0NurrUQJIimyxxhvZyAvVGEPHDWSK8voJMjbRYTZxxHfMlfXDVRXIxuqF9s3pZIIAcpZYci6SC3tDPd0DeD-38gV5dL9fXTmHGa9ICL6CrhKTRwRMy-uCwcGgkXMR6XKjSCEcHIyaCwj8KqolEgAA; - fpc=AnbY6TNRCB1Oka71uaNQyDU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:28 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AnbY6TNRCB1Oka71uaNQyDUvu5CIAQAAALh_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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-clitelem: - - 1,0,0,, - x-ms-ests-server: - - 2.1.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -129,7 +63,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -139,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:29 GMT + - Wed, 28 Apr 2021 17:58:20 GMT server: - openresty strict-transport-security: @@ -147,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '165.4' status: code: 200 message: OK @@ -167,7 +101,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -177,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:29 GMT + - Wed, 28 Apr 2021 17:58:20 GMT server: - openresty strict-transport-security: @@ -185,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '165.383333' status: code: 200 message: OK @@ -203,7 +137,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -221,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:29 GMT + - Wed, 28 Apr 2021 17:58:20 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index a55737887e68..eeddfa9d869e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world + 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"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:30 GMT + - Wed, 28 Apr 2021 17:58:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOusYynU9ju0f6hNt_R_KYzVx5SYqlUGK24tqsy34Xz9S8W741EiegrNZmRj_uAng0IumyNdpJUOryhirHA2D3u_jbZ_x_42X1KrhJ3h82mcJCh2jqRBXOKyi-X2ald7P4cEe7pnKgWZuzvCp8d8zBeLLk8QZJIlf78SxV4kBc4wgAA; - fpc=AjLko-3Yf3BImlfkknWSQ9I; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:31 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AjLko-3Yf3BImlfkknWSQ9Ivu5CIAQAAALp_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:31 GMT + - Wed, 28 Apr 2021 17:58:22 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '165.95' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:31 GMT + - Wed, 28 Apr 2021 17:58:22 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '165.933333' status: code: 200 message: OK @@ -199,10 +133,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -220,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:32 GMT + - Wed, 28 Apr 2021 17:58:22 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml index ba495d1af478..127bc2c342be 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests + 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"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:32 GMT + - Wed, 28 Apr 2021 17:58:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrS6ujqvmG5WF0yrIvfupf2kDgORI5qAP5M5pHqRKwiaC0ZwgMLvn1XJRNs8cQHtat_uARJodPbtO440LM2MDsBTTAqW6c0pTGjTsEcSKfmREodSRilsWqQ389Z_lMLzKYFCIVTzl8gy65BEqMIsfwJG2g0BsYDrRJ3OEa5__uUzQgAA; - fpc=AqmIWl5_ZB5MpMJEGoW_tZk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:32 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AqmIWl5_ZB5MpMJEGoW_tZkvu5CIAQAAALx_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:33 GMT + - Wed, 28 Apr 2021 17:58:24 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.633333' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:34 GMT + - Wed, 28 Apr 2021 17:58:24 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.616667' status: code: 200 message: OK @@ -199,10 +133,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -264,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:34 GMT + - Wed, 28 Apr 2021 17:58:25 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml index c2175cf5590b..b609c0c21df6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_ascending.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + 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"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:35 GMT + - Wed, 28 Apr 2021 17:58:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLGCstDGQBWe_GDeH8R5bxLulCzdtTMV7ejqkavcVY1x-J6NviZz_AX5LvyQPB4yx-Zd0vNTJKh_gSUyGIKOPRr5-grUx6CQtzHsjrEnuMNqxjQZHyQVXJPnGYkGpngtQKdAYcAUffV_w5wEP6LxfKccX1AVDR7oDQQWVJTNXCBAgAA; - fpc=ArskO1OIHLxPt_OTKqt1HPY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:35 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ArskO1OIHLxPt_OTKqt1HPYvu5CIAQAAAL9_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:36 GMT + - Wed, 28 Apr 2021 17:58:27 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.65' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:36 GMT + - Wed, 28 Apr 2021 17:58:27 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '166.633333' status: code: 200 message: OK @@ -199,10 +133,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", @@ -264,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:37 GMT + - Wed, 28 Apr 2021 17:58:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml index 5a3cf42c572e..2c55467a678b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_by_page.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + 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"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:37 GMT + - Wed, 28 Apr 2021 17:58:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBgnO6b6gQU5P4ALEcNe9TzP8pCqRpOItlonDN520pHewUK8TOpVfZitNxgPxZgk0sIzYPnE68uVlLSa19aOlmS7glATaun9BnAjeN5BRGVjTqBX1sAo5bpgWwxz5Xg5gvbzDD31l8--N45g2JsqU2pmGlwQSQ0MAZfsAjdKeGiMgAA; - fpc=AuDb20AA5d5Ksx_MvLXWhf8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:37 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AuDb20AA5d5Ksx_MvLXWhf8vu5CIAQAAAMF_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:39 GMT + - Wed, 28 Apr 2021 17:58:30 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '165.883333' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:39 GMT + - Wed, 28 Apr 2021 17:58:30 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '165.083333' status: code: 200 message: OK @@ -199,10 +133,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -227,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:39 GMT + - Wed, 28 Apr 2021 17:58:30 GMT docker-distribution-api-version: - registry/2.0 link: @@ -255,13 +189,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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"}]}]} - - ' + 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 @@ -275,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:39 GMT + - Wed, 28 Apr 2021 17:58:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -284,7 +217,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -306,7 +239,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -316,7 +249,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:39 GMT + - Wed, 28 Apr 2021 17:58:30 GMT server: - openresty strict-transport-security: @@ -324,7 +257,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '165.066667' status: code: 200 message: OK @@ -344,7 +277,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -354,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:40 GMT + - Wed, 28 Apr 2021 17:58:31 GMT server: - openresty strict-transport-security: @@ -362,7 +295,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '165.05' status: code: 200 message: OK @@ -378,10 +311,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -406,7 +339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:40 GMT + - Wed, 28 Apr 2021 17:58:31 GMT docker-distribution-api-version: - registry/2.0 link: @@ -434,13 +367,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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"}]}]} - - ' + 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 @@ -454,7 +386,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:40 GMT + - Wed, 28 Apr 2021 17:58:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -463,7 +395,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -485,7 +417,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -495,7 +427,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:40 GMT + - Wed, 28 Apr 2021 17:58:31 GMT server: - openresty strict-transport-security: @@ -503,7 +435,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '165.033333' status: code: 200 message: OK @@ -523,7 +455,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -533,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:40 GMT + - Wed, 28 Apr 2021 17:58:31 GMT server: - openresty strict-transport-security: @@ -541,7 +473,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '165.016667' status: code: 200 message: OK @@ -557,10 +489,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -584,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT docker-distribution-api-version: - registry/2.0 link: @@ -612,13 +544,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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"}]}]} - - ' + 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 @@ -632,7 +563,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -641,7 +572,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -663,7 +594,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -673,7 +604,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT server: - openresty strict-transport-security: @@ -681,7 +612,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '165' status: code: 200 message: OK @@ -701,7 +632,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -711,7 +642,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT server: - openresty strict-transport-security: @@ -719,7 +650,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '164.983333' status: code: 200 message: OK @@ -735,10 +666,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -763,7 +694,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT docker-distribution-api-version: - registry/2.0 link: @@ -791,13 +722,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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"}]}]} - - ' + 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 @@ -811,7 +741,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:41 GMT + - Wed, 28 Apr 2021 17:58:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -820,7 +750,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -842,7 +772,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -852,7 +782,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:42 GMT + - Wed, 28 Apr 2021 17:58:33 GMT server: - openresty strict-transport-security: @@ -860,7 +790,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '164.966667' status: code: 200 message: OK @@ -880,7 +810,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -890,7 +820,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:42 GMT + - Wed, 28 Apr 2021 17:58:33 GMT server: - openresty strict-transport-security: @@ -898,7 +828,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '164.95' status: code: 200 message: OK @@ -914,10 +844,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": @@ -942,7 +872,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:42 GMT + - Wed, 28 Apr 2021 17:58:33 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml index 5ab4a43a10ee..0391740c86fd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + 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"}]}]} - - ' + 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 @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:43 GMT + - Wed, 28 Apr 2021 17:58:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-kVZdRBjA8ffanRrlp0ydzU14YG672CLomBf4r8nr-Cr5qw9X5ae5wZyp7kqFy3gGzydYgFB3eOvfeRRIBvxBS0JJcPJaK-Cc0wy4psaq-nhCb54v85UO3ISFVoQt7M1L_hgX6CQ4yktmR7hU9AIANKg0DxCb-k6uZ27ZX1w0cQgAA; - fpc=ArYNGImdzqJLixup8jsC6lM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:43 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ArYNGImdzqJLixup8jsC6lMvu5CIAQAAAMd_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09:43 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:44 GMT + - Wed, 28 Apr 2021 17:58:35 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '165.866667' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:44 GMT + - Wed, 28 Apr 2021 17:58:35 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '165.833333' status: code: 200 message: OK @@ -199,10 +133,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -264,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:45 GMT + - Wed, 28 Apr 2021 17:58:36 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 3faf888f319a..eeb15f644e21 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv4p1_Yb75NXEajMth7jA3IZTEf4GHS_ksiX-tUCFGrlzgpQC4Uab0W2QJyzKQQGMrnqzHghbDGeF9J9QwCc1x5JfeFLKKhBkAwlp8qOMFu6P6mD4aLEaV3VLFj7Igyhlzc7BZL0rSO6JOvW3rypT_Hs0CJZuUXQxCaJ9FGxQmRogAA; - fpc=Auxj1G9-WzZHtwmZbC-8LUw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:09:45 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Auxj1G9-WzZHtwmZbC-8LUwE8LayAQAAAMl_G9gOAAAA; expires=Fri, 28-May-2021 - 16:09:45 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repob22512e7:tagb22512e7"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:45 GMT + - Wed, 28 Apr 2021 17:58:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-26c0f094-a83c-11eb-8487-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5b9e2af3-a84b-11eb-b9f8-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-26c0f094-a83c-11eb-8487-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5b9e2af3-a84b-11eb-b9f8-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:09:59 GMT + - Wed, 28 Apr 2021 17:58:50 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob22512e7", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:00 GMT + - Wed, 28 Apr 2021 17:58:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIfXBdqCYec-XaTUWQ14bZB_YbyQ8hFj5o8xo8OP1dmqhDOdeEQ9WmsECN4ILQz-CV9blk0Pda-1cTvT6FnTRjIpNMU1eyMm7S3ianDM9j1AgXIpOVDZBcl9Cx5MmxItZDXz73HwZMgVI0_-DNLLldZCEduifWlYWGhZqi3n7Ad4gAA; - fpc=Ar9BK3IeVyNJi22MTHK65bI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:10:01 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Ar9BK3IeVyNJi22MTHK65bIvu5CIAQAAANh_G9gOAAAA; expires=Fri, 28-May-2021 - 16:10: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-clitelem: - - 1,0,0,, - x-ms-ests-server: - - 2.1.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:02 GMT + - Wed, 28 Apr 2021 17:58:53 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '165.783333' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:02 GMT + - Wed, 28 Apr 2021 17:58:53 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '165.7' status: code: 200 message: OK @@ -353,10 +222,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -374,7 +243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:02 GMT + - Wed, 28 Apr 2021 17:58:53 GMT docker-distribution-api-version: - registry/2.0 server: @@ -404,13 +273,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob22512e7", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -424,7 +292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:03 GMT + - Wed, 28 Apr 2021 17:58:53 GMT docker-distribution-api-version: - registry/2.0 server: @@ -433,7 +301,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -455,7 +323,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -465,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:03 GMT + - Wed, 28 Apr 2021 17:58:53 GMT server: - openresty strict-transport-security: @@ -473,7 +341,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '165.683333' status: code: 200 message: OK @@ -493,7 +361,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -503,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:03 GMT + - Wed, 28 Apr 2021 17:58:54 GMT server: - openresty strict-transport-security: @@ -511,7 +379,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '165.666667' status: code: 200 message: OK @@ -532,10 +400,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -553,7 +421,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:03 GMT + - Wed, 28 Apr 2021 17:58:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -583,13 +451,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob22512e7","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob22512e7", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -603,7 +470,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:03 GMT + - Wed, 28 Apr 2021 17:58:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -612,7 +479,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob22512e7:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -634,7 +501,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -644,7 +511,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:04 GMT + - Wed, 28 Apr 2021 17:58:54 GMT server: - openresty strict-transport-security: @@ -652,7 +519,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '165.65' status: code: 200 message: OK @@ -672,7 +539,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -682,7 +549,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:04 GMT + - Wed, 28 Apr 2021 17:58:54 GMT server: - openresty strict-transport-security: @@ -690,7 +557,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '165.633333' status: code: 200 message: OK @@ -711,10 +578,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob22512e7 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob22512e7", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -732,7 +599,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:04 GMT + - Wed, 28 Apr 2021 17:58:55 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index 4578cadffdc7..8f9cd2611529 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-nhB3-zPkh_kmQOx88ky39LPgznWb0Zy1Ne7A9Y_7-j_sfyHJq4f9NAsTf3sqcb_zAUjiZXU4IEW87tRmrJYk9E2ZW6pCh-CLbr5dKvxfvyspUv3vpKqICz8xjRwEo0-7UsW-eLvSHB1cSAEHvTUJ4vVoHypDPQTWHkxesqFbS8gAA; - fpc=AlsanZX0AkRCmyNk9HaN_eU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:10:05 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AlsanZX0AkRCmyNk9HaN_eUE8LayAQAAANx_G9gOAAAA; expires=Fri, 28-May-2021 - 16:10: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["to_be_deleted"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:06 GMT + - Wed, 28 Apr 2021 17:55:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-327a90a2-a83c-11eb-b0cf-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6efc147-a84a-11eb-91ca-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-327a90a2-a83c-11eb-b0cf-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6efc147-a84a-11eb-91ca-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:19 GMT + - Wed, 28 Apr 2021 17:56:01 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:20 GMT + date: Wed, 28 Apr 2021 17:56:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/_catalog -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:20 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:21 GMT + date: Wed, 28 Apr 2021 17:56:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:21 GMT + date: Wed, 28 Apr 2021 17:56:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -279,7 +180,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -292,7 +193,7 @@ interactions: connection: keep-alive content-length: '370' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:21 GMT + date: Wed, 28 Apr 2021 17:56:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -309,61 +210,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:21 GMT + date: Wed, 28 Apr 2021 17:56:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:to_be_deleted:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/to_be_deleted -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:21 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -375,18 +242,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:22 GMT + date: Wed, 28 Apr 2021 17:56:05 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -403,18 +270,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:23 GMT + date: Wed, 28 Apr 2021 17:56:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -427,7 +294,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/to_be_deleted + uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: body: string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", @@ -446,7 +313,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:24 GMT + date: Wed, 28 Apr 2021 17:56:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -464,23 +331,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + 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":"*"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:24 GMT + date: Wed, 28 Apr 2021 17:56:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="registry:catalog:*" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -497,18 +363,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:25 GMT + date: Wed, 28 Apr 2021 17:56:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -525,18 +391,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:25 GMT + date: Wed, 28 Apr 2021 17:56:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -549,7 +415,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", @@ -562,7 +428,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:25 GMT + date: Wed, 28 Apr 2021 17:56:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index 7e5d2a8c267d..8c5deb8258f8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/does_not_exist 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:26 GMT + date: Wed, 28 Apr 2021 17:56:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:does_not_exist:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/does_not_exist -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:25 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:27 GMT + date: Wed, 28 Apr 2021 17:56:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.216667' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:27 GMT + date: Wed, 28 Apr 2021 17:56:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.2' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: body: string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not @@ -135,7 +101,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:27 GMT + date: Wed, 28 Apr 2021 17:56:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index ad42b5004770..f11b3ebd95dd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world + 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:27 GMT + date: Wed, 28 Apr 2021 17:56:12 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/hello-world:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/library%2Fhello-world -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:27 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:28 GMT + date: Wed, 28 Apr 2021 17:56:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '165.233333' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:28 GMT + date: Wed, 28 Apr 2021 17:56:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '165.216667' status: code: 200 message: OK @@ -125,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -138,7 +104,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:29 GMT + date: Wed, 28 Apr 2021 17:56:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml index 6c6e2bf1e75f..7f48f6b3a471 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests + 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:29 GMT + date: Wed, 28 Apr 2021 17:56:14 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/library%2Fbusybox/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:29 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:30 GMT + date: Wed, 28 Apr 2021 17:56:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:30 GMT + date: Wed, 28 Apr 2021 17:56:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '165.7' status: code: 200 message: OK @@ -125,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -183,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:31 GMT + date: Wed, 28 Apr 2021 17:56:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml index b2e9cb2d29a5..c218fcb73239 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_ascending.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:31 GMT + date: Wed, 28 Apr 2021 17:56:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/library%2Fbusybox/_manifests?orderby=timeasc -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:31 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:32 GMT + date: Wed, 28 Apr 2021 17:56:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:33 GMT + date: Wed, 28 Apr 2021 17:56:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -125,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", @@ -183,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:33 GMT + date: Wed, 28 Apr 2021 17:56:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml index 6436168fd44a..4594b9969726 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_by_page.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:34 GMT + date: Wed, 28 Apr 2021 17:56:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/library%2Fbusybox/_manifests?n=2 -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:33 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '165.766667' status: code: 200 message: OK @@ -125,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -145,7 +111,7 @@ interactions: connection: keep-alive content-length: '931' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -164,23 +130,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -197,18 +162,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -225,18 +190,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:35 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -249,10 +214,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -269,7 +234,7 @@ interactions: connection: keep-alive content-length: '927' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -288,23 +253,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -321,18 +285,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -349,18 +313,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' + x-ms-ratelimit-remaining-calls-per-second: '165.7' status: code: 200 message: OK @@ -373,10 +337,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -392,7 +356,7 @@ interactions: connection: keep-alive content-length: '889' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:21 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -411,23 +375,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:36 GMT + date: Wed, 28 Apr 2021 17:56:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -444,18 +407,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' + x-ms-ratelimit-remaining-calls-per-second: '165.683333' status: code: 200 message: OK @@ -472,18 +435,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -496,10 +459,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -516,7 +479,7 @@ interactions: connection: keep-alive content-length: '936' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -535,23 +498,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -568,18 +530,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' + x-ms-ratelimit-remaining-calls-per-second: '165.65' status: code: 200 message: OK @@ -596,18 +558,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:37 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -620,10 +582,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": @@ -640,7 +602,7 @@ interactions: connection: keep-alive content-length: '929' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:38 GMT + date: Wed, 28 Apr 2021 17:56:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml index 3ed33206be76..e2c86dab9778 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + 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"}]}]} - - ' + 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: Wed, 28 Apr 2021 16:10:38 GMT + date: Wed, 28 Apr 2021 17:56:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:library/busybox:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/library%2Fbusybox/_manifests?orderby=timedesc -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:38 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:39 GMT + date: Wed, 28 Apr 2021 17:56:25 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.1' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:39 GMT + date: Wed, 28 Apr 2021 17:56:25 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '164.616667' status: code: 200 message: OK @@ -125,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "library/busybox", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", @@ -183,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:40 GMT + date: Wed, 28 Apr 2021 17:56:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index 9b80d13b90e3..edb2b9b8b17f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9p6N0iXLYByhcLxrkvdwHowCskPPLwJ-Nk1wYRuET76oty5Asd3kAmaidDsPBSIbVzrxvFMWzr3BlZMwtIPwCgUSR2peBEyPxkktOr1e_dyF33SDTpldxU0YaHrrUehCmhx1fGXrcwfOr-aS-97cFPXu-nYyykYbjO4LC-8XO9QgAA; - fpc=Ahe6HlRUwM5Lka4SUJzk_Ek; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:10:40 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Ahe6HlRUwM5Lka4SUJzk_EkE8LayAQAAAACAG9gOAAAA; expires=Fri, 28-May-2021 - 16:10: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo2c591564:tag2c591564"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:40 GMT + - Wed, 28 Apr 2021 17:56:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-479d6c85-a83c-11eb-9012-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0dd99d1b-a84b-11eb-8580-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-479d6c85-a83c-11eb-9012-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0dd99d1b-a84b-11eb-8580-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:10:54 GMT + - Wed, 28 Apr 2021 17:56:39 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo2c591564", "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, 28 Apr 2021 16:10:56 GMT + date: Wed, 28 Apr 2021 17:56:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo2c591564 -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:56 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,14 +128,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:57 GMT + date: Wed, 28 Apr 2021 17:56:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:57 GMT + date: Wed, 28 Apr 2021 17:56:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '165.6' status: code: 200 message: OK @@ -279,10 +180,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -292,7 +193,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:57 GMT + date: Wed, 28 Apr 2021 17:56:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -314,23 +215,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo2c591564", "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, 28 Apr 2021 16:10:57 GMT + date: Wed, 28 Apr 2021 17:56:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -347,18 +247,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:58 GMT + date: Wed, 28 Apr 2021 17:56:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '165.583333' status: code: 200 message: OK @@ -375,18 +275,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:58 GMT + date: Wed, 28 Apr 2021 17:56:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.983333' + x-ms-ratelimit-remaining-calls-per-second: '165.55' status: code: 200 message: OK @@ -404,10 +304,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, @@ -417,7 +317,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:58 GMT + date: Wed, 28 Apr 2021 17:56:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -439,23 +339,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo2c591564","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo2c591564", "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, 28 Apr 2021 16:10:58 GMT + date: Wed, 28 Apr 2021 17:56:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo2c591564:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -472,18 +371,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:10:59 GMT + date: Wed, 28 Apr 2021 17:56:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.966667' + x-ms-ratelimit-remaining-calls-per-second: '165.533333' status: code: 200 message: OK @@ -500,18 +399,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:10:59 GMT + date: Wed, 28 Apr 2021 17:56:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' + x-ms-ratelimit-remaining-calls-per-second: '165.516667' status: code: 200 message: OK @@ -529,10 +428,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo2c591564 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo2c591564", "createdTime": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -542,7 +441,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:10:59 GMT + date: Wed, 28 Apr 2021 17:56:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index 432430a25798..4541b02c0813 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPPOQ93eIKSdRbA7UnOG0BPSnFXziYfpif_dPRxDFwNQf0vMzBbgaJmZjSkqGy8VFHWOklN8Yb6-oXnLMwVDgjHniJGrdjGNIG2wvihiUzwBIEqUnbTEDMW1MS7FqFA7JdcF-d_JoXfep6D4E7TxoFqM8yU-IfgEg-o3Zb9NSF3ogAA; - fpc=Asr37wFcwpxGm0-vGRv0mfw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:10:59 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Asr37wFcwpxGm0-vGRv0mfwE8LayAQAAABOAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3c82158b:tag3c82158b"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:01 GMT + - Wed, 28 Apr 2021 18:01:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-53280054-a83c-11eb-8de3-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b78745b7-a84b-11eb-91ae-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-53280054-a83c-11eb-8de3-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b78745b7-a84b-11eb-91ae-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:14 GMT + - Wed, 28 Apr 2021 18:01:24 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3c82158b", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:15 GMT + - Wed, 28 Apr 2021 18:01:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCwA4rxD7F1gqGNgA2XyCc7XMIJjU_k_n50V7ZMt2oHFnOkvsI8QrtnP3hHo1a8qZAw7aQmdscAcRoKxuwbCdMoTRUZ_LmB9AG9jiQdEzG0k627EP49WmnRTc2YDl-nHAAUS4rAAOvJq6xVKh85NBLqNq3wP9vW3X-CIjTLYbWnggAA; - fpc=Ai9wvhmgRfZBsNyV71azlb8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:11:15 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Ai9wvhmgRfZBsNyV71azlb8vu5CIAQAAACOAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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-clitelem: - - 1,0,0,, - x-ms-ests-server: - - 2.1.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:16 GMT + - Wed, 28 Apr 2021 18:01:28 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '165.95' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:16 GMT + - Wed, 28 Apr 2021 18:01:28 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' + - '165.933333' status: code: 200 message: OK @@ -353,13 +222,13 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3c82158b", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T16:11:04.6312678Z", "lastUpdateTime": - "2021-04-28T16:11:04.6312678Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T18:01:15.6071602Z", "lastUpdateTime": + "2021-04-28T18:01:15.6071602Z", "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", @@ -418,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:17 GMT + - Wed, 28 Apr 2021 18:01:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -447,13 +316,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3c82158b", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -467,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:17 GMT + - Wed, 28 Apr 2021 18:01:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -476,7 +344,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:delete" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -498,7 +366,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -508,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:18 GMT + - Wed, 28 Apr 2021 18:01:29 GMT server: - openresty strict-transport-security: @@ -516,7 +384,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.483333' status: code: 200 message: OK @@ -536,7 +404,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -546,7 +414,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:18 GMT + - Wed, 28 Apr 2021 18:01:30 GMT server: - openresty strict-transport-security: @@ -554,7 +422,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' + - '165.916667' status: code: 200 message: OK @@ -572,7 +440,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '' @@ -587,7 +455,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 16:11:19 GMT + - Wed, 28 Apr 2021 18:01:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -614,13 +482,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3c82158b","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3c82158b", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -634,7 +501,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:29 GMT + - Wed, 28 Apr 2021 18:01:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -643,7 +510,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3c82158b:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -665,7 +532,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -675,7 +542,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:29 GMT + - Wed, 28 Apr 2021 18:01:40 GMT server: - openresty strict-transport-security: @@ -683,7 +550,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.1' + - '165.9' status: code: 200 message: OK @@ -703,7 +570,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -713,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:29 GMT + - Wed, 28 Apr 2021 18:01:40 GMT server: - openresty strict-transport-security: @@ -721,7 +588,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '165.883333' status: code: 200 message: OK @@ -737,7 +604,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' @@ -754,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:29 GMT + - Wed, 28 Apr 2021 18:01:41 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index 94511a182d52..ef9be262e1af 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0ef1bd1","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob0ef1bd1", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:30 GMT + - Wed, 28 Apr 2021 18:01:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0ef1bd1:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIw58Ove9RoOlxzAvN-o50om_w8ZF75eXq_VLXwmNQgUPHhmTepOaGxeWZiP_ySk1DVr2Bx1m98dDV5T_NQTKl7q6GUJk8INuoZWXlPN1d9fHiWApOIQ0-Cid1Sp8zoZaByrwmxttVLuHYG9Xa6IQJbuHKDgPlOv2sDfwfjNZYisgAA; - fpc=AvQ98bThP0BEpchvhT7EOxI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:11:30 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AvQ98bThP0BEpchvhT7EOxIvu5CIAQAAADKAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:31 GMT + - Wed, 28 Apr 2021 18:01:43 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.216667' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:31 GMT + - Wed, 28 Apr 2021 18:01:43 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '165.95' status: code: 200 message: OK @@ -199,7 +133,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -217,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:32 GMT + - Wed, 28 Apr 2021 18:01:43 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index 066ac34afbe2..5c0cd95021bf 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLp0eKIQtLzwlO5QfpDtUCx52BOn7CuXZlQ_KCpttmO3NQA-1MMgvlIuzzI0rAXnq4_C-0GDLEzOPW0rM-qF5fOPEQ4sSOMg8NF5uowoOD2C4mgOxFbDlUM0lFV4G1qVCiJMlLlixkE_jVsFPOSr7oKvgYkHxUJ2ypqi3FwWNSl4gAA; - fpc=AmVdn4pKCABEhZshKNNaMI0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:11:32 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AmVdn4pKCABEhZshKNNaMI0E8LayAQAAADSAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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-clitelem: - - 1,0,0,, - x-ms-ests-server: - - 2.1.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo34ab0fa1:tag34ab0fa10", "repo34ab0fa1:tag34ab0fa11", "repo34ab0fa1:tag34ab0fa12", @@ -94,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:33 GMT + - Wed, 28 Apr 2021 18:01:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-66929c87-a83c-11eb-900a-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb679a0a-a84b-11eb-9d88-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -108,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -124,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-66929c87-a83c-11eb-900a-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb679a0a-a84b-11eb-9d88-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -136,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:47 GMT + - Wed, 28 Apr 2021 18:01:58 GMT expires: - '-1' pragma: @@ -168,13 +103,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo34ab0fa1","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo34ab0fa1", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -188,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:48 GMT + - Wed, 28 Apr 2021 18:01:58 GMT docker-distribution-api-version: - registry/2.0 server: @@ -197,77 +131,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo34ab0fa1:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFsSrotJXf1UsJakUwgCIKwIWiYlStTxpyg5J6OYlEZ2zf3KZ6L6LSx8Y3OpDz8PXbq9JK5EoCMEhBBboe9plGr-8x9RQXT-euYxd7VgKXBaJuGQOSvYDj4iefUxN0ykIfHCmsW5FrIv4Qx1PKE3KadMCE0BkEhej9Bqzud-fpMcgAA; - fpc=Am0yDaTphYlJuqsnj6YSteQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:11:48 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Am0yDaTphYlJuqsnj6YSteQvu5CIAQAAAESAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -284,7 +153,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -294,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:49 GMT + - Wed, 28 Apr 2021 18:02:00 GMT server: - openresty strict-transport-security: @@ -302,7 +171,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.066667' status: code: 200 message: OK @@ -322,7 +191,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -332,7 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:49 GMT + - Wed, 28 Apr 2021 18:02:00 GMT server: - openresty strict-transport-security: @@ -340,7 +209,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '166.05' status: code: 200 message: OK @@ -358,7 +227,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: body: string: '' @@ -373,7 +242,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 16:11:50 GMT + - Wed, 28 Apr 2021 18:02:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -402,13 +271,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo34ab0fa1","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo34ab0fa1", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -422,7 +290,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:50 GMT + - Wed, 28 Apr 2021 18:02:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -431,7 +299,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo34ab0fa1:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -453,7 +321,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -463,7 +331,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:50 GMT + - Wed, 28 Apr 2021 18:02:01 GMT server: - openresty strict-transport-security: @@ -471,7 +339,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.033333' status: code: 200 message: OK @@ -491,7 +359,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -501,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:50 GMT + - Wed, 28 Apr 2021 18:02:01 GMT server: - openresty strict-transport-security: @@ -509,7 +377,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' + - '166.016667' status: code: 200 message: OK @@ -525,10 +393,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo34ab0fa1/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo34ab0fa1", "tags": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo34ab0fa1", "tags": [{"name": "tag34ab0fa11", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:12:32.4424555Z", "lastUpdateTime": "2021-04-28T15:12:32.4424555Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -554,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:50 GMT + - Wed, 28 Apr 2021 18:02:01 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 8bb95edfaf01..05c89465f526 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -13,13 +13,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo506215e7","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo506215e7", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -33,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:51 GMT + - Wed, 28 Apr 2021 18:02:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -42,77 +41,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo506215e7:delete" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnBf60F2qq-38QjQ75MVzsyQnKILg7Wr_MBcCfbQ5tQMMofK0kNTHSGmPJEm6HCeQaJhUJKw1X_P27mwienqSKL9zOAl3kwZd6A4yMUIKZ0PsYvCP14w4SCVpPhSWKWY6tEqMao1kOZxwjH0NxQxilwcwvXhuPI_Vr5B3GogsP68gAA; - fpc=AkeWiLu88CtOimR-fD3gr3E; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:11:52 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AkeWiLu88CtOimR-fD3gr3Evu5CIAQAAAEeAG9gOAAAA; expires=Fri, 28-May-2021 - 16:11: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -129,7 +63,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -139,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:52 GMT + - Wed, 28 Apr 2021 18:02:03 GMT server: - openresty strict-transport-security: @@ -147,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.6' status: code: 200 message: OK @@ -167,7 +101,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -177,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:52 GMT + - Wed, 28 Apr 2021 18:02:03 GMT server: - openresty strict-transport-security: @@ -185,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '165.583333' status: code: 200 message: OK @@ -203,7 +137,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -221,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:11:53 GMT + - Wed, 28 Apr 2021 18:02:04 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml new file mode 100644 index 000000000000..a8993b46bb8b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -0,0 +1,478 @@ +interactions: +- request: + body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, + "targetTags": ["repo27331535:tag27331535"], "mode": "Force"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 18:02:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d79b7f0c-a84b-11eb-93bd-002b67128e4c?api-version=2019-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d79b7f0c-a84b-11eb-93bd-002b67128e4c?api-version=2019-05-01 + response: + body: + string: '{"status": "Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 18:02: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 + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo27331535", "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, 28 Apr 2021 18:02: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: 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.0b1 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, 28 Apr 2021 18:02:20 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo27331535%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 18:02:20 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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": 0, "createdTime": "2021-04-28T14:19:08.2257429Z", "lastUpdateTime": + "2021-04-28T14:19:08.2257429Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4130486Z", "lastUpdateTime": + "2021-04-28T14:19:08.4130486Z", "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": 0, "createdTime": "2021-04-28T14:19:08.9755326Z", "lastUpdateTime": + "2021-04-28T14:19:08.9755326Z", "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": 0, "createdTime": "2021-04-28T14:19:08.4645969Z", "lastUpdateTime": + "2021-04-28T14:19:08.4645969Z", "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": 0, "createdTime": "2021-04-28T14:19:10.1957381Z", "lastUpdateTime": + "2021-04-28T14:19:10.1957381Z", "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": 0, "createdTime": "2021-04-28T14:19:08.5821358Z", "lastUpdateTime": + "2021-04-28T14:19:08.5821358Z", "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": 0, "createdTime": "2021-04-28T14:19:07.9519043Z", "lastUpdateTime": + "2021-04-28T14:19:07.9519043Z", "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": 0, "createdTime": "2021-04-28T14:19:08.3640124Z", "lastUpdateTime": + "2021-04-28T14:19:08.3640124Z", "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": 0, "createdTime": "2021-04-28T14:19:07.5813228Z", "lastUpdateTime": + "2021-04-28T14:19:07.5813228Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag27331535"], "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, 28 Apr 2021 18:02:21 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo27331535", "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, 28 Apr 2021 18:02: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: + - '1343' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 18:02: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo27331535%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 18:02:22 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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\":\"4/28/2021 6:02:10 + 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-length: + - '816' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 18:02: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index f7401f1cde02..e1dd75d8796e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl response: body: string: '404 page not found @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:12 GMT + - Wed, 28 Apr 2021 18:02:23 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index 284c8a0e2dbc..02d4e9b0802c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8tIWH_Pesdnh5lQZ2ixyQ828lFaeX4uOo4xuJ6exT-31AF1NwxSs0Lt_KOpM0OzkVw6_WoZMI6T77b8PhBzLVd_a4u7VvlIzxtfeRvK0YAHg4iyrEeNJojS8y2TZAowfzMtMb4KrNn3mpzLhT-JopE8D06jjpj8APqjuBaIlQpIgAA; - fpc=Ao4N_4q2NwFAqhVIdIdBKCY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:12 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Ao4N_4q2NwFAqhVIdIdBKCYE8LayAQAAAFyAG9gOAAAA; expires=Fri, 28-May-2021 - 16:12:12 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc1b5131a:tagc1b5131a"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:13 GMT + - Wed, 28 Apr 2021 18:02:24 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7e7911a9-a83c-11eb-99ad-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e31058cf-a84b-11eb-b72d-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7e7911a9-a83c-11eb-99ad-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e31058cf-a84b-11eb-b72d-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:25 GMT + - Wed, 28 Apr 2021 18:02:37 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc1b5131a","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc1b5131a", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:27 GMT + - Wed, 28 Apr 2021 18:02:38 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc1b5131a:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGP4DTtrLhLSjSq3--_Z0gIz7cc94I2PA0iaIoeJMw61SsdF_5vZCF_CPYTmYgcsMeBLkEnI8ixc5q0zf2tyO7qCUQYxHzpwIHKIdhIVMjXO3zdeDtNkPNE5VrbEWfprEHqpq6kCkRyCgiD_UATOgIzVOMj50_4GjnQJzgAzVorUgAA; - fpc=AvE2asR4ClRIvpoZCdTOzi4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:27 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AvE2asR4ClRIvpoZCdTOzi4vu5CIAQAAAGuAG9gOAAAA; expires=Fri, 28-May-2021 - 16:12: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:28 GMT + - Wed, 28 Apr 2021 18:02:39 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '165' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:28 GMT + - Wed, 28 Apr 2021 18:02:40 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.616667' + - '164.983333' status: code: 200 message: OK @@ -353,10 +222,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc1b5131a", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T14:54:13.7370801Z", "lastUpdateTime": "2021-04-28T14:54:13.7370801Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -418,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:29 GMT + - Wed, 28 Apr 2021 18:02:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -445,13 +314,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc1b5131a","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc1b5131a", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -465,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:29 GMT + - Wed, 28 Apr 2021 18:02:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -474,7 +342,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc1b5131a:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -496,7 +364,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -506,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:30 GMT + - Wed, 28 Apr 2021 18:02:41 GMT server: - openresty strict-transport-security: @@ -514,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '165.233333' status: code: 200 message: OK @@ -534,7 +402,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -544,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:30 GMT + - Wed, 28 Apr 2021 18:02:41 GMT server: - openresty strict-transport-security: @@ -552,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.066667' + - '165.216667' status: code: 200 message: OK @@ -568,10 +436,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a + uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc1b5131a", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "tag": {"name": "tagc1b5131a", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T14:54:13.3752616Z", "lastUpdateTime": "2021-04-28T14:54:13.3752616Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -589,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:30 GMT + - Wed, 28 Apr 2021 18:02:42 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index 13e039342d91..5585f6814daf 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -11,13 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"hello-world","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "hello-world", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -31,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:30 GMT + - Wed, 28 Apr 2021 18:02:42 GMT docker-distribution-api-version: - registry/2.0 server: @@ -40,77 +39,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:hello-world:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnFwXm72klJDleXaOqQtBa-pXZQDY_jcwLtPRKbmWFO9ezILx9-b4dvq6UMEqwOl3u8c0V71tRYXxqtBs_0NFBYYy2gKmYOB-T-ljBTeFR2ZOTCqHTV-OTQIKEvwEthJJTMCKSpfJFsRN6POjadFHeDsNkV_7Sz3NJji1r-4v5ZsgAA; - fpc=AtW9iZdIwblCmtHWPEvnDCw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:31 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AtW9iZdIwblCmtHWPEvnDCwvu5CIAQAAAG6AG9gOAAAA; expires=Fri, 28-May-2021 - 16:12: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -127,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -137,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:32 GMT + - Wed, 28 Apr 2021 18:02:44 GMT server: - openresty strict-transport-security: @@ -145,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.1' + - '166.183333' status: code: 200 message: OK @@ -165,7 +99,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -175,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:32 GMT + - Wed, 28 Apr 2021 18:02:44 GMT server: - openresty strict-transport-security: @@ -183,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.05' + - '166.166667' status: code: 200 message: OK @@ -199,7 +133,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -217,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:32 GMT + - Wed, 28 Apr 2021 18:02:44 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index 30765c536540..dd7bca9377e8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruDEg1JfaZGqtC9xh1hiDb0YzuhgRBAsAp0mGWZkSytCLdLdsqnhu9caHnqoxUOh3_x7OB7tI4m2ChvlOSruogGiknTEdDXN8d6padpgbac3xVJO9zuHmmUGMJiz8hcY6LWhdKmFxthjXMtIxc71gE5NFxN5DdpUiq-PycwVsEtQgAA; - fpc=AqkhRxoR2-NJkihOadrV5SI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:33 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AqkhRxoR2-NJkihOadrV5SIE8LayAQAAAHCAG9gOAAAA; expires=Fri, 28-May-2021 - 16:12: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo25ce0f5d:tag25ce0f5d0", "repo25ce0f5d:tag25ce0f5d1", "repo25ce0f5d:tag25ce0f5d2", @@ -94,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:33 GMT + - Wed, 28 Apr 2021 18:02:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8aab56c3-a83c-11eb-a1ea-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ef86e155-a84b-11eb-8c4b-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -124,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8aab56c3-a83c-11eb-a1ea-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ef86e155-a84b-11eb-8c4b-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -136,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:47 GMT + - Wed, 28 Apr 2021 18:02:58 GMT expires: - '-1' pragma: @@ -166,13 +101,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo25ce0f5d","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo25ce0f5d", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -186,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:48 GMT + - Wed, 28 Apr 2021 18:02:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -195,77 +129,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo25ce0f5d:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUwqJxFIgLj4PwGzwLG3ON6XEdShSz1Hqy1anKrnJgBNBTnzE4uK4-v8uTMXdpgLtdgQm69F2vI9NY323BnFRnTO2nGnFbPOOMZjxMC6cNUNk5IhaIokYxzf1FUmexrzeax-g6hayMieO9fPdjx0YxxaQG-yfKtdvWMkQKdLG-e0gAA; - fpc=AmxxHg4R5QpEuncKlddNQls; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:48 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AmxxHg4R5QpEuncKlddNQlsvu5CIAQAAAICAG9gOAAAA; expires=Fri, 28-May-2021 - 16:12:49 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -282,7 +151,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -292,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:49 GMT + - Wed, 28 Apr 2021 18:03:01 GMT server: - openresty strict-transport-security: @@ -300,7 +169,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.55' + - '166.65' status: code: 200 message: OK @@ -320,7 +189,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -330,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:49 GMT + - Wed, 28 Apr 2021 18:03:01 GMT server: - openresty strict-transport-security: @@ -338,7 +207,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.533333' + - '166.633333' status: code: 200 message: OK @@ -354,10 +223,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo25ce0f5d", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:08:43.2327437Z", "lastUpdateTime": "2021-04-28T15:08:43.2327437Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -420,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:50 GMT + - Wed, 28 Apr 2021 18:03:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -447,13 +316,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo25ce0f5d","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo25ce0f5d", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -467,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:50 GMT + - Wed, 28 Apr 2021 18:03:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -476,7 +344,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo25ce0f5d:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -498,7 +366,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -508,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:51 GMT + - Wed, 28 Apr 2021 18:03:03 GMT server: - openresty strict-transport-security: @@ -516,7 +384,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' + - '166.2' status: code: 200 message: OK @@ -536,7 +404,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -546,7 +414,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:51 GMT + - Wed, 28 Apr 2021 18:03:03 GMT server: - openresty strict-transport-security: @@ -554,7 +422,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' + - '166.183333' status: code: 200 message: OK @@ -570,10 +438,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo25ce0f5d/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo25ce0f5d", "tags": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "tags": [{"name": "tag25ce0f5d0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:08:41.893031Z", "lastUpdateTime": "2021-04-28T15:08:41.893031Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -603,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:51 GMT + - Wed, 28 Apr 2021 18:03:03 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index dff2fe14d3bc..990b23bc556a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryzevqF6TsCkz5MaSh2MEzj_M6ZB8FzGFxupzUYfCQRUC8ZqP7XpWfVFzklTQSdtJqRFTij0iLQorfHJfkaGiUODFtZFxAdXL8DKQW9CXfDveQ_vLgAtbP1UX64QTVmmyLETqUIxMts3YyF4ec-eGvYbexr_DXHWvQQePo5vT7hAgAA; - fpc=ArUBFJ01pu9BmuMJcGdPC8g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:12:52 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ArUBFJ01pu9BmuMJcGdPC8gE8LayAQAAAISAG9gOAAAA; expires=Fri, 28-May-2021 - 16:12: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo28471541:tag28471541"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:12:53 GMT + - Wed, 28 Apr 2021 18:03:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-962dd973-a83c-11eb-ad2f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf0199f-a84b-11eb-89a2-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-962dd973-a83c-11eb-ad2f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf0199f-a84b-11eb-89a2-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:06 GMT + - Wed, 28 Apr 2021 18:03:17 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo28471541", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:07 GMT + - Wed, 28 Apr 2021 18:03:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlYHzS3SndIeTBnzY9rMSSadvotWlFudvRjTJEe7Kgb9h8ngvGDOdIJUoMOBiuuShv29fq1exgkZgkSnim3XAVolI0UbSyLP_qx53e3Z3V22FSoViiQJpgB1EkZqht38e-vXKNjD5pOCBoYuXGO1h8XQyxXqXnrmtqo25G-ynUZMgAA; - fpc=Am1WebrbSllFhKptesNEUMg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:13:07 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Am1WebrbSllFhKptesNEUMgvu5CIAQAAAJOAG9gOAAAA; expires=Fri, 28-May-2021 - 16:13: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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:08 GMT + - Wed, 28 Apr 2021 18:03:20 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.266667' + - '166.616667' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:09 GMT + - Wed, 28 Apr 2021 18:03:20 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.25' + - '166.083333' status: code: 200 message: OK @@ -353,10 +222,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -418,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:10 GMT + - Wed, 28 Apr 2021 18:03:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -445,13 +314,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo28471541", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -465,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:11 GMT + - Wed, 28 Apr 2021 18:03:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -474,7 +342,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -496,7 +364,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -506,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:11 GMT + - Wed, 28 Apr 2021 18:03:22 GMT server: - openresty strict-transport-security: @@ -514,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.016667' status: code: 200 message: OK @@ -534,7 +402,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -544,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:11 GMT + - Wed, 28 Apr 2021 18:03:22 GMT server: - openresty strict-transport-security: @@ -552,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '165.5' status: code: 200 message: OK @@ -568,17 +436,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 4:03:22 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:03:09 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -594,7 +462,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:12 GMT + - Wed, 28 Apr 2021 18:03:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -624,13 +492,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo28471541", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -644,7 +511,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:12 GMT + - Wed, 28 Apr 2021 18:03:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -653,7 +520,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -675,7 +542,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -685,7 +552,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:12 GMT + - Wed, 28 Apr 2021 18:03:23 GMT server: - openresty strict-transport-security: @@ -693,7 +560,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.483333' status: code: 200 message: OK @@ -713,7 +580,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -723,7 +590,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:12 GMT + - Wed, 28 Apr 2021 18:03:23 GMT server: - openresty strict-transport-security: @@ -731,7 +598,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '165.466667' status: code: 200 message: OK @@ -752,17 +619,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 4:03:22 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:03:09 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -778,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:12 GMT + - Wed, 28 Apr 2021 18:03:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -808,13 +675,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo28471541","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo28471541", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -828,7 +694,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:13 GMT + - Wed, 28 Apr 2021 18:03:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -837,7 +703,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo28471541:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -859,7 +725,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -869,7 +735,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:13 GMT + - Wed, 28 Apr 2021 18:03:24 GMT server: - openresty strict-transport-security: @@ -877,7 +743,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '165.45' status: code: 200 message: OK @@ -897,7 +763,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -907,7 +773,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:13 GMT + - Wed, 28 Apr 2021 18:03:24 GMT server: - openresty strict-transport-security: @@ -915,7 +781,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.2' + - '165.433333' status: code: 200 message: OK @@ -936,17 +802,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo28471541", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": "2021-04-28T14:59:58.6083453Z", "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\":\"4/28/2021 4:03:22 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:03:09 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -962,7 +828,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:13 GMT + - Wed, 28 Apr 2021 18:03:24 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index 2d278b625bef..506749b9f54a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8GZZOYsIiYLha4lgHKWBUNjGgF_t4zN7EHHb2uKumApQzebJS6gMuzBlG78yzCB0zfN4tdQWtBM2TQF5MjjaNo_Bp9x4ipz7ncUDll9KB0lyn_AlI4Z5yvHXCk6J-T8NTX2_8W3pWYNZts2MF0Nly-eILZci6MemFp1PIS8_4-wgAA; - fpc=Apw9mBOvljJNteGtGXS8SmA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:13:14 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Apw9mBOvljJNteGtGXS8SmAE8LayAQAAAJqAG9gOAAAA; expires=Fri, 28-May-2021 - 16:13:14 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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc28d1326:tagc28d1326"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:15 GMT + - Wed, 28 Apr 2021 18:03:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a349c98f-a83c-11eb-acf2-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-07a1f33a-a84c-11eb-a368-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a349c98f-a83c-11eb-acf2-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-07a1f33a-a84c-11eb-a368-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:28 GMT + - Wed, 28 Apr 2021 18:03:39 GMT expires: - '-1' pragma: @@ -165,13 +100,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc28d1326", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -185,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:29 GMT + - Wed, 28 Apr 2021 18:03:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -194,77 +128,12 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_read" + - Bearer realm="https://fake_url.azurecr.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: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.core.windows.net%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrxn7E6huBW9I9BQn7Im4E5UBW-Qb3W9GsGiRxTZeLKd3Bz4MwBOngSj_WM40-6p2f5jDbNRfxODn9tx60UNPwvP4s1xTgk63qXhOiTyKN79B3UVDq5UMcz5mq-0-vjWJvbZ0hllpzI5EEGmoE_jS6WlkJPvAx1vsxQh1fWK6QUMIgAA; - fpc=AmivhRPrIDdMggFjJR_UP98; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1361' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:13:29 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AmivhRPrIDdMggFjJR_UP98vu5CIAQAAAKmAG9gOAAAA; expires=Fri, 28-May-2021 - 16:13: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-clitelem: - - 1,0,0,, - x-ms-ests-server: - - 2.1.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED headers: @@ -281,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -291,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:30 GMT + - Wed, 28 Apr 2021 18:03:42 GMT server: - openresty strict-transport-security: @@ -299,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.616667' status: code: 200 message: OK @@ -319,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -329,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:30 GMT + - Wed, 28 Apr 2021 18:03:42 GMT server: - openresty strict-transport-security: @@ -337,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.266667' status: code: 200 message: OK @@ -353,10 +222,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:02:29.8734878Z", "lastUpdateTime": "2021-04-28T15:02:29.8734878Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -418,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:31 GMT + - Wed, 28 Apr 2021 18:03:42 GMT docker-distribution-api-version: - registry/2.0 server: @@ -445,13 +314,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc28d1326", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -465,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:31 GMT + - Wed, 28 Apr 2021 18:03:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -474,7 +342,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_read" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -496,7 +364,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -506,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:32 GMT + - Wed, 28 Apr 2021 18:03:44 GMT server: - openresty strict-transport-security: @@ -514,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.6' status: code: 200 message: OK @@ -534,7 +402,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -544,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:32 GMT + - Wed, 28 Apr 2021 18:03:44 GMT server: - openresty strict-transport-security: @@ -552,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '165.583333' status: code: 200 message: OK @@ -568,10 +436,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -589,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:32 GMT + - Wed, 28 Apr 2021 18:03:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -619,13 +487,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc28d1326", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -639,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:32 GMT + - Wed, 28 Apr 2021 18:03:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -648,7 +515,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -670,7 +537,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -680,7 +547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:33 GMT + - Wed, 28 Apr 2021 18:03:44 GMT server: - openresty strict-transport-security: @@ -688,7 +555,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '165.566667' status: code: 200 message: OK @@ -708,7 +575,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -718,7 +585,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:33 GMT + - Wed, 28 Apr 2021 18:03:44 GMT server: - openresty strict-transport-security: @@ -726,7 +593,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '165.55' status: code: 200 message: OK @@ -747,10 +614,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": @@ -768,7 +635,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:33 GMT + - Wed, 28 Apr 2021 18:03:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -798,13 +665,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc28d1326","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc28d1326", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -818,7 +684,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:33 GMT + - Wed, 28 Apr 2021 18:03:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -827,7 +693,7 @@ interactions: - max-age=31536000; includeSubDomains - max-age=31536000; includeSubDomains www-authenticate: - - Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc28d1326:metadata_write" + - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: - nosniff status: @@ -849,7 +715,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + uri: https://fake_url.azurecr.io/oauth2/exchange response: body: string: '{"refresh_token": "REDACTED"}' @@ -859,7 +725,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:34 GMT + - Wed, 28 Apr 2021 18:03:45 GMT server: - openresty strict-transport-security: @@ -867,7 +733,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '165.666667' status: code: 200 message: OK @@ -887,7 +753,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -897,7 +763,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:34 GMT + - Wed, 28 Apr 2021 18:03:45 GMT server: - openresty strict-transport-security: @@ -905,7 +771,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '165.65' status: code: 200 message: OK @@ -926,10 +792,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc28d1326", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -947,7 +813,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:34 GMT + - Wed, 28 Apr 2021 18:03:45 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index c93da0c6032f..34b4cc82cd5c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6GeM0QFN8Ze-iV6HyvJR7cUURAB1TR6EqZ9hrYZrsHSDJhFdcHFA0vL6uHdnzB9V3782rWMw4aas9eAqwbFEtJfoc0BkcS5G4A3fyhxKDkewA1v2Cy_zhpuhGn7n7_2rto4_f4tmkpLKsdbUFJNYZbLCNeKow8gHo6bID-BkSLIgAA; - fpc=AsS7PsRzEmNAnTd_m-1VaIA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:13:34 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AsS7PsRzEmNAnTd_m-1VaIAE8LayAQAAAK6AG9gOAAAA; expires=Fri, 28-May-2021 - 16:13: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.11654.16 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoc7611808:tagc7611808"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:35 GMT + - Wed, 28 Apr 2021 18:03:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-af87ba06-a83c-11eb-9950-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1447b24a-a84c-11eb-acc0-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-af87ba06-a83c-11eb-9950-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1447b24a-a84c-11eb-acc0-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:13:48 GMT + - Wed, 28 Apr 2021 18:04:01 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc7611808", "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, 28 Apr 2021 16:13:49 GMT + date: Wed, 28 Apr 2021 18:04:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repoc7611808/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:13:50 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:13:50 GMT + date: Wed, 28 Apr 2021 18:04:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:13:50 GMT + date: Wed, 28 Apr 2021 18:04:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -279,13 +180,13 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoc7611808", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T16:13:39.7891562Z", "lastUpdateTime": - "2021-04-28T16:13:39.7891562Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T18:03:52.8351082Z", "lastUpdateTime": + "2021-04-28T18:03:52.8351082Z", "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", @@ -337,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:13:51 GMT + date: Wed, 28 Apr 2021 18:04:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -355,23 +256,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc7611808", "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: Wed, 28 Apr 2021 16:13:51 GMT + date: Wed, 28 Apr 2021 18:04:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -388,18 +288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:13:52 GMT + date: Wed, 28 Apr 2021 18:04:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.383333' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -416,18 +316,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:13:52 GMT + date: Wed, 28 Apr 2021 18:04:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -440,7 +340,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/v2/repoc7611808/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '' @@ -448,7 +348,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 16:13:52 GMT + date: Wed, 28 Apr 2021 18:04:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -466,23 +366,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoc7611808","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc7611808", "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, 28 Apr 2021 16:14:03 GMT + date: Wed, 28 Apr 2021 18:04:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoc7611808:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -499,18 +398,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:03 GMT + date: Wed, 28 Apr 2021 18:04:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -527,18 +426,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:03 GMT + date: Wed, 28 Apr 2021 18:04:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '166.066667' status: code: 200 message: OK @@ -551,7 +450,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' @@ -560,7 +459,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:03 GMT + date: Wed, 28 Apr 2021 18:04:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index e66e045858d8..df58cccd3768 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo61301e4e","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo61301e4e", "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, 28 Apr 2021 16:14:04 GMT + date: Wed, 28 Apr 2021 18:04:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo61301e4e:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo61301e4e/_tags/does_not_exist -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:04 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:05 GMT + date: Wed, 28 Apr 2021 18:04:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:05 GMT + date: Wed, 28 Apr 2021 18:04:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '166.15' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -135,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:05 GMT + date: Wed, 28 Apr 2021 18:04:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index 573d5ffb7c05..f0dc73760795 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6s5vIse5m8HaqT7Qq9F_03PDLfuvmK48BGIyvtvJnBoHrG1-Ia4_3NwcsM2YMGMWw6JzZbkr-VMc0Gjeuz4pI9a5LMLOgldJRdkApML8pwtqGSoOUTKM5mz2vg_LewLBzFvthaelvRmHFa3pSuYeedHOXB89BuPIP6ln3JMJYF4gAA; - fpc=AiykUYvrIpNNnPx-jNTkKJI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:14:06 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AiykUYvrIpNNnPx-jNTkKJIE8LayAQAAAM2AG9gOAAAA; expires=Fri, 28-May-2021 - 16:14:06 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo9cb4121e:tag9cb4121e0", "repo9cb4121e:tag9cb4121e1", "repo9cb4121e:tag9cb4121e2", @@ -94,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:06 GMT + - Wed, 28 Apr 2021 18:04:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c209c52a-a83c-11eb-ac5f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-27461efe-a84c-11eb-8e39-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -108,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -124,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-c209c52a-a83c-11eb-ac5f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-27461efe-a84c-11eb-8e39-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -136,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:19 GMT + - Wed, 28 Apr 2021 18:04:32 GMT expires: - '-1' pragma: @@ -162,61 +97,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9cb4121e","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo9cb4121e", "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: Wed, 28 Apr 2021 16:14:20 GMT + date: Wed, 28 Apr 2021 18:04:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9cb4121e:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo9cb4121e/_tags/tag9cb4121e0 -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:20 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -228,18 +129,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:21 GMT + date: Wed, 28 Apr 2021 18:04:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -256,18 +157,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:21 GMT + date: Wed, 28 Apr 2021 18:04:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -280,7 +181,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: body: string: '' @@ -288,7 +189,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 16:14:22 GMT + date: Wed, 28 Apr 2021 18:04:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -307,23 +208,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo9cb4121e","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo9cb4121e", "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, 28 Apr 2021 16:14:22 GMT + date: Wed, 28 Apr 2021 18:04:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo9cb4121e:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -340,18 +240,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:22 GMT + date: Wed, 28 Apr 2021 18:04:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -368,18 +268,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:22 GMT + date: Wed, 28 Apr 2021 18:04:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -392,10 +292,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo9cb4121e/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo9cb4121e", "tags": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9cb4121e", "tags": [{"name": "tag9cb4121e1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:06.2665877Z", "lastUpdateTime": "2021-04-28T15:40:06.2665877Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -413,7 +313,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:22 GMT + date: Wed, 28 Apr 2021 18:04:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index fea79547b1fc..cef0c78f8f0a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoddbe1864","Action":"delete"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoddbe1864", "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: Wed, 28 Apr 2021 16:14:23 GMT + date: Wed, 28 Apr 2021 18:04:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoddbe1864:delete" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repoddbe1864/_tags/does_not_exist -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:23 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - WUS2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:24 GMT + date: Wed, 28 Apr 2021 18:04:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:24 GMT + date: Wed, 28 Apr 2021 18:04:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://seankane.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -135,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:24 GMT + date: Wed, 28 Apr 2021 18:04:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index b11330ae4713..51b9d9183e85 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqQPp-6jgxLNpoUU3C9sSUofEADJzG7gHzQTqnlrJ5yHCFb5G3KcSM0sS60tqtJ_EIPvAoNMpjITjSrlhuewFpAMTXrTBKctRzZ32bd1zpXTocYCHMBauuhxV-mVJVUbBAwGNIXcgawAO6UFUQ5Y71uuI5Y5OmlzLftOM8T9S-XAgAA; - fpc=ArdRpSN-vgpAgrrnBA5ncI0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:14:25 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=ArdRpSN-vgpAgrrnBA5ncI0E8LayAQAAAOGAG9gOAAAA; expires=Fri, 28-May-2021 - 16:14: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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repoaf9517b2:tagaf9517b2"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:26 GMT + - Wed, 28 Apr 2021 18:04:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cd8c1ab9-a83c-11eb-a1c7-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3320fe23-a84c-11eb-b424-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cd8c1ab9-a83c-11eb-a1c7-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3320fe23-a84c-11eb-b424-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:39 GMT + - Wed, 28 Apr 2021 18:04:52 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoaf9517b2","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoaf9517b2", "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, 28 Apr 2021 16:14:40 GMT + date: Wed, 28 Apr 2021 18:04:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoaf9517b2:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repoaf9517b2/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:39 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - EUS ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:41 GMT + date: Wed, 28 Apr 2021 18:04:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:41 GMT + date: Wed, 28 Apr 2021 18:04:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -279,10 +180,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoaf9517b2", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": "2021-04-28T15:40:19.4589707Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -337,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:42 GMT + date: Wed, 28 Apr 2021 18:04:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -355,23 +256,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repoaf9517b2","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoaf9517b2", "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, 28 Apr 2021 16:14:42 GMT + date: Wed, 28 Apr 2021 18:04:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repoaf9517b2:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -388,18 +288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:14:43 GMT + date: Wed, 28 Apr 2021 18:04:56 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -416,18 +316,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:14:43 GMT + date: Wed, 28 Apr 2021 18:04:56 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK @@ -440,17 +340,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repoaf9517b2", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf9517b2", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:40:19.4589707Z", "lastUpdateTime": "2021-04-28T15:40:19.4589707Z", "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\":\"4/28/2021 3:40:23 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:04:47 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -458,7 +358,7 @@ interactions: connection: keep-alive content-length: '818' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:43 GMT + date: Wed, 28 Apr 2021 18:04:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index e0bdafeee2d8..56e7b8a21bb7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl response: body: string: '404 page not found @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:43 GMT + date: Wed, 28 Apr 2021 18:04:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index a7624307a12a..969d2a04c0cf 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXgEfUq9mFlTRXIWKD-s-luTOCRrkvjRHmxvvxFfrXvJTl52pgZhA28De9nR0LYgUuSZTm0QEGZAj2Y8BaKFP780RIYF9seY19zX-4QsZndUKEry58qRKwjTJajyCdsiMeY3yWoPKZlm_ZfSQ6GArBRMGf_EZgfndK5-bk6teEKEgAA; - fpc=AjK1oWL5niVDnQyDW401Z9U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:14:44 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AjK1oWL5niVDnQyDW401Z9UE8LayAQAAAPSAG9gOAAAA; expires=Fri, 28-May-2021 - 16:14:45 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.11654.16 - NEULR2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3db51597:tag3db51597"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:45 GMT + - Wed, 28 Apr 2021 18:04:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d8df310c-a83c-11eb-a22e-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3e940845-a84c-11eb-9937-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d8df310c-a83c-11eb-a22e-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3e940845-a84c-11eb-9937-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:14:58 GMT + - Wed, 28 Apr 2021 18:05:12 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3db51597","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3db51597", "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, 28 Apr 2021 16:14:59 GMT + date: Wed, 28 Apr 2021 18:05:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3db51597:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo3db51597/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:14:59 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - NEULR1 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:00 GMT + date: Wed, 28 Apr 2021 18:05:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:00 GMT + date: Wed, 28 Apr 2021 18:05:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -279,10 +180,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3db51597", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:40:36.3129691Z", "lastUpdateTime": "2021-04-28T15:40:36.3129691Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -337,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:00 GMT + date: Wed, 28 Apr 2021 18:05:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -355,23 +256,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3db51597","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3db51597", "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, 28 Apr 2021 16:15:01 GMT + date: Wed, 28 Apr 2021 18:05:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3db51597:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -388,18 +288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:01 GMT + date: Wed, 28 Apr 2021 18:05:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK @@ -416,18 +316,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:02 GMT + date: Wed, 28 Apr 2021 18:05:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -440,10 +340,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 + uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3db51597", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3db51597", "tag": {"name": "tag3db51597", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:36.7019882Z", "lastUpdateTime": "2021-04-28T15:40:36.7019882Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -453,7 +353,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:02 GMT + date: Wed, 28 Apr 2021 18:05:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index 26ae0ab03148..ac4a987a03fc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -7,61 +7,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"hello-world","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "hello-world", "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: Wed, 28 Apr 2021 16:15:02 GMT + date: Wed, 28 Apr 2021 18:05:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:hello-world:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/hello-world/_tags/doesnotexist -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:02 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - NEULR2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -73,18 +39,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:03 GMT + date: Wed, 28 Apr 2021 18:05:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' + x-ms-ratelimit-remaining-calls-per-second: '166.566667' status: code: 200 message: OK @@ -101,18 +67,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:04 GMT + date: Wed, 28 Apr 2021 18:05:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.45' status: code: 200 message: OK @@ -125,7 +91,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/hello-world/_tags/doesnotexist + uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does @@ -135,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:04 GMT + date: Wed, 28 Apr 2021 18:05:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index 785d8c44b4bd..701041fcfc04 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2Cdv1ucA9h1TLHc2I4cZ9SuTMdu9MKh6U94sFd-jslQVl8oGAQgdha81NMYnMpJKUwQyuvnFAgcudwqICazQR4pIWEL7J6ZxwxRbs9hpL1Gy-WFY5e7cgtPhyvJXbSC-EDKnbjWeRA1_gV2taXTAh8g0JG3RIVhKkY3AVhvsUc0gAA; - fpc=AiiuZV4yddNPiwZMIqZKnKw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:15:04 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AiiuZV4yddNPiwZMIqZKnKwE8LayAQAAAAiBG9gOAAAA; expires=Fri, 28-May-2021 - 16:15: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.11654.16 - NEULR1 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo8b5a11da:tag8b5a11da0", "repo8b5a11da:tag8b5a11da1", "repo8b5a11da:tag8b5a11da2", @@ -94,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:06 GMT + - Wed, 28 Apr 2021 18:05:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e500935b-a83c-11eb-9bc9-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-4bf7d6fc-a84c-11eb-a33f-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -108,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 202 message: Accepted @@ -124,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e500935b-a83c-11eb-9bc9-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-4bf7d6fc-a84c-11eb-a33f-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -136,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:18 GMT + - Wed, 28 Apr 2021 18:05:34 GMT expires: - '-1' pragma: @@ -162,61 +97,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo8b5a11da","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo8b5a11da", "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, 28 Apr 2021 16:15:19 GMT + date: Wed, 28 Apr 2021 18:05:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo8b5a11da:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo8b5a11da/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:19 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - NEULR1 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -228,18 +129,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:21 GMT + date: Wed, 28 Apr 2021 18:05:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -256,18 +157,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:21 GMT + date: Wed, 28 Apr 2021 18:05:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.65' status: code: 200 message: OK @@ -280,10 +181,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo8b5a11da", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:40:53.2285659Z", "lastUpdateTime": "2021-04-28T15:40:53.2285659Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -339,7 +240,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:21 GMT + date: Wed, 28 Apr 2021 18:05:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -357,23 +258,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo8b5a11da","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo8b5a11da", "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, 28 Apr 2021 16:15:22 GMT + date: Wed, 28 Apr 2021 18:05:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo8b5a11da:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -390,18 +290,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:22 GMT + date: Wed, 28 Apr 2021 18:05:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -418,18 +318,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:23 GMT + date: Wed, 28 Apr 2021 18:05:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.95' status: code: 200 message: OK @@ -442,10 +342,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo8b5a11da/_tags + uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo8b5a11da", "tags": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "tags": [{"name": "tag8b5a11da0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:40:55.5579596Z", "lastUpdateTime": "2021-04-28T15:40:55.5579596Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -467,7 +367,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:23 GMT + date: Wed, 28 Apr 2021 18:05:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 4a9293fa5e83..861d1699b7e9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc4uwkoqtVDOfLgmIvntzfWtLzRsHrwiwqdCRity0wf2-OLKnzfadGX4DCPLrcCom6GxEL4x12BoqJrEq99rKFhadQ6a1q-is7VlcUXqfqpUtNVSkj7PjsstbyDgaQE_Dus_75wYfgNEohQBB4EgG5ZrBqKls1TAPOoszvqheKkwgAA; - fpc=Au3dwMJ4SQlCvQ6V5wEOSQA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:15:23 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Au3dwMJ4SQlCvQ6V5wEOSQAE8LayAQAAAByBG9gOAAAA; expires=Fri, 28-May-2021 - 16:15: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.11654.16 - WEULR2 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repob0a917be:tagb0a917be"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:24 GMT + - Wed, 28 Apr 2021 18:05:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f05b947f-a83c-11eb-9ba2-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-57af6c07-a84c-11eb-851a-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f05b947f-a83c-11eb-9ba2-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-57af6c07-a84c-11eb-851a-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:36 GMT + - Wed, 28 Apr 2021 18:05:53 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 16:15:37 GMT + date: Wed, 28 Apr 2021 18:05:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repob0a917be/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:38 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - NEULR2 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:38 GMT + date: Wed, 28 Apr 2021 18:05:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:38 GMT + date: Wed, 28 Apr 2021 18:05:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -279,10 +180,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -337,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:39 GMT + date: Wed, 28 Apr 2021 18:05:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -355,23 +256,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 16:15:39 GMT + date: Wed, 28 Apr 2021 18:05:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -388,18 +288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:40 GMT + date: Wed, 28 Apr 2021 18:05:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' + x-ms-ratelimit-remaining-calls-per-second: '166.566667' status: code: 200 message: OK @@ -416,18 +316,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:40 GMT + date: Wed, 28 Apr 2021 18:05:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -440,17 +340,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "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\":\"4/28/2021 3:41:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:05:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -458,7 +358,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:40 GMT + date: Wed, 28 Apr 2021 18:05:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -480,23 +380,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 16:15:40 GMT + date: Wed, 28 Apr 2021 18:05:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -513,18 +412,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' + x-ms-ratelimit-remaining-calls-per-second: '166.316667' status: code: 200 message: OK @@ -541,18 +440,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -570,17 +469,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 3:41:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:05:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -588,7 +487,7 @@ interactions: connection: keep-alive content-length: '820' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -610,23 +509,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repob0a917be","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repob0a917be:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -643,18 +541,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.65' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -671,18 +569,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:41 GMT + date: Wed, 28 Apr 2021 18:05:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -700,17 +598,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repob0a917be", "manifest": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-04-28T15:41:12.718692Z", "lastUpdateTime": "2021-04-28T15:41:12.718692Z", "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\":\"4/28/2021 3:41:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:05:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -718,7 +616,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:42 GMT + date: Wed, 28 Apr 2021 18:05:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index 1a0f91ace34d..ac1ed1bb061f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -1,69 +1,4 @@ interactions: -- request: - body: client_id=f850650c-1fcf-4489-b46f-71af2e30d360&grant_type=client_credentials&client_info=1&client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t&scope=https%3A%2F%2Fmanagement.azure.com%2F.default - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '197' - Content-Type: - - application/x-www-form-urlencoded - Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4ZYKoU9GE6qE3a91wALyTS3oW5YLzeJzlWVanuLEn_mpdcGFME47DuLobUicoSiSIJ-hnFaV-3jDsEYgCMG6nBmOeqf5qMSE1aXuAXax329jzXoyMXt5JzCqmK9IWtpp_TR6EuWIU7ETQ61eXCMF9Nr9BL5JiIZBKQuzPyN5UzwgAA; - fpc=AnBQnvbV7x5Gr7kbM9tNiKU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - x-client-cpu: - - x64 - x-client-current-telemetry: - - 1|730,0| - x-client-os: - - win32 - x-client-sku: - - MSAL.Python - x-client-ver: - - 1.9.0 - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 16:15:42 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=AnBQnvbV7x5Gr7kbM9tNiKUE8LayAQAAAC-BG9gOAAAA; expires=Fri, 28-May-2021 - 16:15:43 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.11654.16 - NEULR1 ProdSlices - status: - code: 200 - message: OK - request: body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, "targetTags": ["repo3e8d15a3:tag3e8d15a3"], "mode": "Force"}' @@ -93,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:43 GMT + - Wed, 28 Apr 2021 18:06:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fbad64af-a83c-11eb-998a-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63e2cb56-a84c-11eb-83d9-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -107,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -123,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fbad64af-a83c-11eb-998a-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63e2cb56-a84c-11eb-83d9-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -135,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 16:15:57 GMT + - Wed, 28 Apr 2021 18:06:13 GMT expires: - '-1' pragma: @@ -161,61 +96,27 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3e8d15a3", "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, 28 Apr 2021 16:15:58 GMT + date: Wed, 28 Apr 2021 18:06:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.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/repo3e8d15a3/_manifests -- request: - body: - client_id: f850650c-1fcf-4489-b46f-71af2e30d360 - client_secret: s?=q2ZAdO=-Vn8ecVgo0Hv64-=4ril2t - grant_type: client_credentials - scope: https://management.core.windows.net/.default - headers: - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-identity/1.6.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - response: - body: - string: '{"token_type": "Bearer", "expires_in": 86399, "ext_expires_in": 86399, - "access_token": "REDACTED"}' - headers: - cache-control: no-store, no-cache - content-length: '1361' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:15:58 GMT - expires: '-1' - p3p: CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: no-cache - set-cookie: 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.11654.16 - NEULR1 ProdSlices - status: - code: 200 - message: OK - url: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token - request: body: access_token: REDACTED @@ -227,18 +128,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:15:59 GMT + date: Wed, 28 Apr 2021 18:06:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -255,18 +156,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:15:59 GMT + date: Wed, 28 Apr 2021 18:06:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK @@ -279,10 +180,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_manifests + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "manifests": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 0, "createdTime": "2021-04-28T15:41:28.6034839Z", "lastUpdateTime": "2021-04-28T15:41:28.6034839Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -337,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:16:00 GMT + date: Wed, 28 Apr 2021 18:06:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -355,23 +256,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","Action":"metadata_read"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3e8d15a3", "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, 28 Apr 2021 16:16:00 GMT + date: Wed, 28 Apr 2021 18:06:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_read" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -388,18 +288,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:16:01 GMT + date: Wed, 28 Apr 2021 18:06:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK @@ -416,18 +316,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:16:01 GMT + date: Wed, 28 Apr 2021 18:06:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK @@ -440,10 +340,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -453,7 +353,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:16:01 GMT + date: Wed, 28 Apr 2021 18:06:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -475,23 +375,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3e8d15a3", "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, 28 Apr 2021 16:16:01 GMT + date: Wed, 28 Apr 2021 18:06:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -508,18 +407,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:16:01 GMT + date: Wed, 28 Apr 2021 18:06:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -536,18 +435,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.383333' + x-ms-ratelimit-remaining-calls-per-second: '166.066667' status: code: 200 message: OK @@ -565,10 +464,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": @@ -578,7 +477,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -600,23 +499,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, - visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"repo3e8d15a3","Action":"metadata_write"}]}]} - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo3e8d15a3", "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, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://seankane.azurecr.io/oauth2/token",service="seankane.azurecr.io",scope="repository:repo3e8d15a3:metadata_write" + www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" x-content-type-options: nosniff status: code: 401 @@ -633,18 +531,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/exchange + 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, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK @@ -661,18 +559,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankane.azurecr.io/oauth2/token + 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, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:19 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -690,10 +588,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://seankane.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 + uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: body: - string: '{"registry": "seankane.azurecr.io", "imageName": "repo3e8d15a3", "tag": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3e8d15a3", "tag": {"name": "tag3e8d15a3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-04-28T15:41:27.4432686Z", "lastUpdateTime": "2021-04-28T15:41:27.4432686Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -703,7 +601,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 16:16:02 GMT + date: Wed, 28 Apr 2021 18:06:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 e9dc15dee5de..b12fef18102b 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 @@ -79,7 +79,7 @@ async def test_delete_repository_does_not_exist(self, containerregistry_endpoint client = self.create_registry_client(containerregistry_endpoint) with pytest.raises(ResourceNotFoundError): - deleted_result = await client.delete_repository("not_real_repo") + await client.delete_repository("not_real_repo") @acr_preparer() async def test_transport_closed_only_once(self, containerregistry_endpoint): diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index 6d18bfc8f659..dbfb21672ddf 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -6,23 +6,16 @@ from datetime import datetime import pytest -from devtools_testutils import AzureTestCase - from azure.containerregistry import ( - ContainerRepository, - ContainerRegistryClient, ContentPermissions, DeletedRepositoryResult, RepositoryProperties, RegistryArtifactOrderBy, ArtifactManifestProperties, - TagProperties, - TagOrderBy, ) from azure.core.exceptions import ResourceNotFoundError -from azure.core.paging import ItemPaged -from testcase import ContainerRegistryTestClass, AcrBodyReplacer, FakeTokenCredential +from testcase import ContainerRegistryTestClass from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD from preparer import acr_preparer @@ -51,7 +44,7 @@ class TestContainerRepository(ContainerRegistryTestClass): # with pytest.raises(ResourceNotFoundError): # client.delete_tag(TO_BE_DELETED) - @pytest.mark.live_test_only # This needs to be removed in the future + # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() def test_get_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) @@ -62,8 +55,7 @@ def test_get_properties(self, containerregistry_endpoint): assert properties.name == u"library/hello-world" assert properties.registry == containerregistry_endpoint - - @pytest.mark.live_test_only # This needs to be removed in the future + # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() def test_set_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index 959c0fd4f667..f9778f03450b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -6,8 +6,6 @@ from datetime import datetime import pytest -from devtools_testutils import AzureTestCase - from azure.containerregistry import ( DeletedRepositoryResult, RepositoryProperties, @@ -308,7 +306,7 @@ async def test_list_registry_artifacts_ascending(self, containerregistry_endpoin assert count > 0 - @pytest.mark.live_test_only # This needs to be removed in the future + # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() async def test_get_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) @@ -319,7 +317,7 @@ async def test_get_properties(self, containerregistry_endpoint): assert properties.name == u"library/hello-world" assert properties.registry == containerregistry_endpoint - @pytest.mark.live_test_only # This needs to be removed in the future + # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() async def test_set_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") @@ -346,4 +344,4 @@ async def test_set_properties(self, containerregistry_endpoint): assert c.can_delete == new_properties.content_permissions.can_delete assert c.can_read == new_properties.content_permissions.can_read assert c.can_list == new_properties.content_permissions.can_list - assert c.can_write == new_properties.content_permissions.can_write \ No newline at end of file + assert c.can_write == new_properties.content_permissions.can_write diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py index 82660920fb8b..7f602dd50cb9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py @@ -3,27 +3,17 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from datetime import datetime import pytest -from devtools_testutils import AzureTestCase - from azure.containerregistry import ( - ContainerRepository, - ContainerRegistryClient, ContentPermissions, - DeletedRepositoryResult, - RepositoryProperties, - RegistryArtifactOrderBy, ArtifactManifestProperties, TagProperties, - TagOrderBy, ) from azure.core.exceptions import ResourceNotFoundError -from azure.core.paging import ItemPaged -from testcase import ContainerRegistryTestClass, AcrBodyReplacer, FakeTokenCredential -from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD +from testcase import ContainerRegistryTestClass +from constants import DOES_NOT_EXIST, HELLO_WORLD from preparer import acr_preparer @@ -40,7 +30,7 @@ def test_get_manifest_properties(self, containerregistry_endpoint): tag = self.get_resource_name("tag") self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - reg_artifact = self.set_up(containerregistry_endpoint, name=repo) + reg_artifact = self.set_up(containerregistry_endpoint, repo) properties = reg_artifact.get_manifest_properties() diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py index 9a3cfddbba61..b3a4bb6b604b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py @@ -3,11 +3,8 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from datetime import datetime import pytest -from devtools_testutils import AzureTestCase - from azure.containerregistry import ( ContentPermissions, ArtifactManifestProperties, diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 9ceaadaf7478..1bfd3e5d4e4c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -29,13 +29,26 @@ GeneralNameReplacer, RequestUrlNormalizer, AuthenticationMetadataFilter, - RecordingProcessor + RecordingProcessor, ) from devtools_testutils import AzureTestCase REDACTED = "REDACTED" +class OAuthRequestResponsesFilterACR(RecordingProcessor): + """Remove oauth authentication requests and responses from recording.""" + + def process_request(self, request): + # filter request like: + # GET https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/token + # POST https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token + # But 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 AcrBodyReplacer(RecordingProcessor): """Replace request body for oauth2 exchanges""" @@ -79,6 +92,11 @@ def process_request(self, request): if request.body: request.body = self._scrub_body(request.body) + if "seankane.azurecr.io" in request.uri: + request.uri = request.uri.replace("seankane.azurecr.io", "fake_url.azurecr.io") + if "seankane.azurecr.io" in request.url: + request.url = request.url.replace("seankane.azurecr.io", "fake_url.azurecr.io") + return request def process_response(self, response): @@ -88,7 +106,7 @@ def process_response(self, response): if "www-authenticate" in headers: headers["www-authenticate"] = ( - [self._401_replacement] if isinstance(headers["www-authenticeate"], list) else self._401_replacement + [self._401_replacement] if isinstance(headers["www-authenticate"], list) else self._401_replacement ) body = response["body"] @@ -96,6 +114,9 @@ def process_response(self, response): if body["string"] == b"" or body["string"] == "null": return response + if "seankane.azurecr.io" in body["string"]: + body["string"] = body["string"].replace("seankane.azurecr.io", "fake_url.azurecr.io") + refresh = json.loads(body["string"]) if "refresh_token" in refresh.keys(): refresh["refresh_token"] = REDACTED @@ -137,14 +158,16 @@ def get_token(self, *args): class ContainerRegistryTestClass(AzureTestCase): def __init__(self, method_name): - super(ContainerRegistryTestClass, self).__init__(method_name, - recording_processors=[ - GeneralNameReplacer(), - AuthenticationMetadataFilter(), - RequestUrlNormalizer(), - AcrBodyReplacer(), - ]) - # self.recording_processors.append(AcrBodyReplacer()) + super(ContainerRegistryTestClass, self).__init__( + method_name, + recording_processors=[ + GeneralNameReplacer(), + OAuthRequestResponsesFilterACR(), + AuthenticationMetadataFilter(), + RequestUrlNormalizer(), + AcrBodyReplacer(), + ], + ) self.repository = "library/hello-world" def sleep(self, t): From 145949b1a2bf0b81fdf702d4f9fa9d079b5d45b8 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 14:12:49 -0400 Subject: [PATCH 09/42] removing commented out code --- .../azure/containerregistry/_base_client.py | 2 +- .../_container_repository.py | 215 ----------------- .../aio/_async_base_client.py | 2 +- .../aio/_async_container_registry_client.py | 3 +- .../aio/_async_container_repository.py | 216 +----------------- .../aio/_async_registry_artifact.py | 3 +- 6 files changed, 5 insertions(+), 436 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py index d302c11397fe..9f6aa5554ea0 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py @@ -23,7 +23,7 @@ class ContainerRegistryApiVersion(str, Enum): class ContainerRegistryBaseClient(object): - """Base class for ContainerRegistryClient and ContainerRepository + """Base class for ContainerRegistryClient, ContainerRepository, and RegistryArtifact :param str endpoint: Azure Container Registry endpoint :param credential: AAD Token for authenticating requests with Azure diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index 480899eba4ac..095c8fcdd78e 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -52,11 +52,6 @@ def __init__(self, endpoint, repository, credential, **kwargs): self._credential = credential super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - # def _get_digest_from_tag(self, tag): - # # type: (str) -> str - # tag_props = self.get_tag_properties(tag) - # return tag_props.digest - @distributed_trace def delete(self, **kwargs): # type: (Dict[str, Any]) -> None @@ -70,29 +65,6 @@ def delete(self, **kwargs): self._client.container_registry.delete_repository(self.repository, **kwargs) ) - # @distributed_trace - # def delete_registry_artifact(self, digest, **kwargs): - # # type: (str, Dict[str, Any]) -> None - # """Delete a registry artifact - - # :param digest: The digest of the artifact to be deleted - # :type digest: str - # :returns: None - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - # @distributed_trace - # def delete_tag(self, tag, **kwargs): - # # type: (str, Dict[str, Any]) -> None - # """Delete a tag from a repository - - # :param str tag: The tag to be deleted - # :returns: None - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # self._client.container_registry.delete_tag(self.repository, tag, **kwargs) - @distributed_trace def get_properties(self, **kwargs): # type: (Dict[str, Any]) -> RepositoryProperties @@ -105,39 +77,6 @@ def get_properties(self, **kwargs): self._client.container_registry.get_properties(self.repository, **kwargs) ) - # @distributed_trace - # def get_registry_artifact_properties(self, tag_or_digest, **kwargs): - # # type: (str, Dict[str, Any]) -> ArtifactManifestProperties - # """Get the properties of a registry artifact - - # :param tag_or_digest: The tag/digest of a registry artifact - # :type tag_or_digest: str - # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # if _is_tag(tag_or_digest): - # tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - # self._client.container_registry.get_manifest_properties( - # self.repository, tag_or_digest, **kwargs - # ) - # ) - - # @distributed_trace - # def get_tag_properties(self, tag, **kwargs): - # # type: (str, Dict[str, Any]) -> TagProperties - # """Get the properties for a tag - - # :param tag: The tag to get properties for - # :type tag: str - # :returns: :class:`~azure.containerregistry.TagProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return TagProperties._from_generated( # pylint: disable=protected-access - # self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - # ) - @distributed_trace def list_registry_artifacts(self, **kwargs): # type: (Dict[str, Any]) -> ItemPaged[ArtifactManifestProperties] @@ -256,160 +195,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - # @distributed_trace - # def list_tags(self, **kwargs): - # # type: (Dict[str, Any]) -> ItemPaged[TagProperties] - # """List the tags for a repository - - # :keyword last: Query parameter for the last item in the previous call. Ensuing - # call will return values after last lexically - # :paramtype last: str - # :keyword order_by: Query parameter for ordering by time ascending or descending - # :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - # :keyword results_per_page: Number of repositories to return per page - # :paramtype results_per_page: int - # :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - # :rtype: :class:`~azure.core.paging.ItemPaged` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # name = self.repository - # last = kwargs.pop("last", None) - # n = kwargs.pop("results_per_page", None) - # orderby = kwargs.pop("order_by", None) - # digest = kwargs.pop("digest", None) - # cls = kwargs.pop( - # "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - # ) - - # error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - # error_map.update(kwargs.pop("error_map", {})) - # accept = "application/json" - - # def prepare_request(next_link=None): - # # Construct headers - # header_parameters = {} # type: Dict[str, Any] - # header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - # "accept", accept, "str" - # ) - - # if not next_link: - # # Construct URL - # url = "/acr/v1/{name}/_tags" - # path_format_arguments = { - # "url": self._client._serialize.url( # pylint: disable=protected-access - # "self._config.url", - # self._client._config.url, # pylint: disable=protected-access - # "str", - # skip_quote=True, - # ), - # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - # } - # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # # Construct parameters - # query_parameters = {} # type: Dict[str, Any] - # if last is not None: - # query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - # "last", last, "str" - # ) - # if n is not None: - # query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - # "n", n, "int" - # ) - # if orderby is not None: - # query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - # "orderby", orderby, "str" - # ) - # if digest is not None: - # query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - # "digest", digest, "str" - # ) - - # request = self._client._client.get( # pylint: disable=protected-access - # url, query_parameters, header_parameters - # ) - # else: - # url = next_link - # query_parameters = {} # type: Dict[str, Any] - # path_format_arguments = { - # "url": self._client._serialize.url( # pylint: disable=protected-access - # "self._client._config.url", - # self._client._config.url, # pylint: disable=protected-access - # "str", - # skip_quote=True, - # ), - # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - # } - # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # request = self._client._client.get( # pylint: disable=protected-access - # url, query_parameters, header_parameters - # ) - # return request - - # def extract_data(pipeline_response): - # deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - # list_of_elem = deserialized.tag_attribute_bases - # if cls: - # list_of_elem = cls(list_of_elem) - # link = None - # if "Link" in pipeline_response.http_response.headers.keys(): - # link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - # return link, iter(list_of_elem) - - # def get_next(next_link=None): - # request = prepare_request(next_link) - - # pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access - # request, stream=False, **kwargs - # ) - # response = pipeline_response.http_response - - # if response.status_code not in [200]: - # error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - # AcrErrors, response - # ) - # map_error(status_code=response.status_code, response=response, error_map=error_map) - # raise HttpResponseError(response=response, model=error) - - # return pipeline_response - - # return ItemPaged(get_next, extract_data) - - # @distributed_trace - # def set_manifest_properties(self, digest, permissions, **kwargs): - # # type: (str, ContentPermissions, Dict[str, Any]) -> ArtifactManifestProperties - # """Set the properties for a manifest - - # :param digest: Digest of a manifest - # :type digest: str - # :param permissions: The property's values to be set - # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - # self._client.container_registry.update_manifest_properties( - # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - # ) - # ) - - # @distributed_trace - # def set_tag_properties(self, tag, permissions, **kwargs): - # # type: (str, ContentPermissions, Dict[str, Any]) -> TagProperties - # """Set the properties for a tag - - # :param tag: Tag to set properties for - # :type tag: str - # :param permissions: The property's values to be set - # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.TagProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return TagProperties._from_generated( # pylint: disable=protected-access - # self._client.container_registry.update_tag_attributes( - # self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - # ) - # ) - @distributed_trace def set_properties(self, properties, **kwargs): # type: (RepositoryProperties, Dict[str, Any]) -> RepositoryProperties diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py index 5362fe3eb86b..94215e38d0e8 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py @@ -22,7 +22,7 @@ class ContainerRegistryApiVersion(str, Enum): class ContainerRegistryBaseClient(object): - """Base class for ContainerRegistryClient and ContainerRepository + """Base class for ContainerRegistryClient, ContainerRepository, and RegistryArtifact :param endpoint: Azure Container Registry endpoint :type endpoint: str diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 6511ef1e6680..7c76d5359293 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -181,8 +181,7 @@ def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> Co ) @distributed_trace - def get_artifact(self, repository_name, tag_or_digest, **kwargs): - # type: (str, str, Dict[str, Any]) -> RegistryArtifact + def get_artifact(self, repository_name: str, tag_or_digest: str, **kwargs: Dict[str, Any]) -> RegistryArtifact: """Get a Registry Artifact object :param str repository_name: Name of the repository diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index d7ca3aa69c7a..1ccc8524f198 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -54,10 +54,6 @@ def __init__( self.repository = repository super(ContainerRepository, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - # async def _get_digest_from_tag(self, tag: str) -> None: - # tag_props = await self.get_tag_properties(tag) - # return tag_props.digest - @distributed_trace_async async def delete(self, **kwargs: Dict[str, Any]) -> DeletedRepositoryResult: """Delete a repository @@ -70,27 +66,6 @@ async def delete(self, **kwargs: Dict[str, Any]) -> DeletedRepositoryResult: await self._client.container_registry.delete_repository(self.repository, **kwargs) ) - # @distributed_trace_async - # async def delete_registry_artifact(self, digest: str, **kwargs: Dict[str, Any]) -> None: - # """Delete a registry artifact - - # :param digest: The digest of the artifact to be deleted - # :type digest: str - # :returns: None - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # await self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - # @distributed_trace_async - # async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: - # """Delete a tag from a repository - - # :param str tag: The tag to be deleted - # :returns: None - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # await self._client.container_registry.delete_tag(self.repository, tag, **kwargs) - @distributed_trace_async async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties: """Get the properties of a repository @@ -102,39 +77,6 @@ async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties await self._client.container_registry.get_properties(self.repository, **kwargs) ) - # @distributed_trace_async - # async def get_registry_artifact_properties( - # self, tag_or_digest: str, **kwargs: Dict[str, Any] - # ) -> ArtifactManifestProperties: - # """Get the properties of a registry artifact - - # :param tag_or_digest: The tag/digest of a registry artifact - # :type tag_or_digest: str - # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # if _is_tag(tag_or_digest): - # tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - # await self._client.container_registry.get_manifest_properties( - # self.repository, tag_or_digest, **kwargs - # ) - # ) - - # @distributed_trace_async - # async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: - # """Get the properties for a tag - - # :param tag: The tag to get properties for - # :type tag: str - # :returns: :class:`~azure.containerregistry.TagProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return TagProperties._from_generated( # pylint: disable=protected-access - # await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - # ) - @distributed_trace def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactManifestProperties]: """List the artifacts for a repository @@ -252,164 +194,8 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - # @distributed_trace - # def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: - # """List the tags for a repository - - # :keyword last: Query parameter for the last item in the previous call. Ensuing - # call will return values after last lexically - # :paramtype last: str - # :keyword order_by: Query parameter for ordering by time ascending or descending - # :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - # :keyword results_per_page: Number of repositories to return per page - # :paramtype results_per_page: int - # :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - # :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # name = self.repository - # last = kwargs.pop("last", None) - # n = kwargs.pop("results_per_page", None) - # orderby = kwargs.pop("order_by", None) - # digest = kwargs.pop("digest", None) - # cls = kwargs.pop( - # "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - # ) - - # error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - # error_map.update(kwargs.pop("error_map", {})) - # accept = "application/json" - - # def prepare_request(next_link=None): - # # Construct headers - # header_parameters = {} # type: Dict[str, Any] - # header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - # "accept", accept, "str" - # ) - - # if not next_link: - # # Construct URL - # url = "/acr/v1/{name}/_tags" - # path_format_arguments = { - # "url": self._client._serialize.url( # pylint: disable=protected-access - # "self._client._config.url", - # self._client._config.url, # pylint: disable=protected-access - # "str", - # skip_quote=True, - # ), - # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - # } - # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # # Construct parameters - # query_parameters = {} # type: Dict[str, Any] - # if last is not None: - # query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - # "last", last, "str" - # ) - # if n is not None: - # query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - # "n", n, "int" - # ) - # if orderby is not None: - # query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - # "orderby", orderby, "str" - # ) - # if digest is not None: - # query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - # "digest", digest, "str" - # ) - - # request = self._client._client.get( # pylint: disable=protected-access - # url, query_parameters, header_parameters - # ) - # else: - # url = next_link - # query_parameters = {} # type: Dict[str, Any] - # path_format_arguments = { - # "url": self._client._serialize.url( # pylint: disable=protected-access - # "self._client._config.url", - # self._client._config.url, # pylint: disable=protected-access - # "str", - # skip_quote=True, - # ), - # "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - # } - # url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # request = self._client._client.get( # pylint: disable=protected-access - # url, query_parameters, header_parameters - # ) - # return request - - # async def extract_data(pipeline_response): - # deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - # list_of_elem = deserialized.tag_attribute_bases - # if cls: - # list_of_elem = cls(list_of_elem) - # link = None - # if "Link" in pipeline_response.http_response.headers.keys(): - # link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - # return link, AsyncList(list_of_elem) - - # async def get_next(next_link=None): - # request = prepare_request(next_link) - - # pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access - # request, stream=False, **kwargs - # ) - # response = pipeline_response.http_response - - # if response.status_code not in [200]: - # error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - # AcrErrors, response - # ) - # map_error(status_code=response.status_code, response=response, error_map=error_map) - # raise HttpResponseError(response=response, model=error) - - # return pipeline_response - - # return AsyncItemPaged(get_next, extract_data) - - # @distributed_trace_async - # async def set_manifest_properties( - # self, digest: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] - # ) -> None: - # """Set the properties for a manifest - - # :param digest: Digest of a manifest - # :type digest: str - # :param permissions: The property's values to be set - # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - # await self._client.container_registry.update_manifest_properties( - # self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - # ) - # ) - - # @distributed_trace_async - # async def set_tag_properties( - # self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] - # ) -> TagProperties: - # """Set the properties for a tag - - # :param tag: Tag to set properties for - # :type tag: str - # :param permissions: The property's values to be set - # :type permissions: ContentPermissions - # :returns: :class:`~azure.containerregistry.TagProperties` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return TagProperties._from_generated( # pylint: disable=protected-access - # await self._client.container_registry.update_tag_attributes( - # self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - # ) - # ) - @distributed_trace_async - async def set_properties(self, properties, **kwargs): - # type: (RepositoryProperties, Dict[str, Any]) -> RepositoryProperties + async def set_properties(self, properties: ContentPermissions, **kwargs: Dict[str, Any]) -> RepositoryProperties: """Set the properties of a repository :returns: :class:`~azure.containerregistry.RepositoryProperties` diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index 675ad47597fc..03692bf688dd 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -62,8 +62,7 @@ def __init__( self._tag = None super(RegistryArtifact, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - async def _get_digest_from_tag(self): - # type: () -> str + async def _get_digest_from_tag(self) -> str: tag_props = await self.get_tag_properties(self.tag_or_digest) return tag_props.digest From 09f36363dc9260fc8eeea5be5ab39c9c337ce7be Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 14:22:17 -0400 Subject: [PATCH 10/42] undoing changes to cache --- .../azure/containerregistry/_exchange_client.py | 4 +--- .../azure/containerregistry/_registry_artifact.py | 1 - .../azure/containerregistry/aio/_async_exchange_client.py | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py index 37c68e2e2eb6..54ae6aff97c3 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py @@ -64,9 +64,7 @@ def __init__(self, endpoint, credential, **kwargs): def get_acr_access_token(self, challenge, **kwargs): # type: (str, Dict[str, Any]) -> str parsed_challenge = _parse_challenge(challenge) - # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) - # TODO: This is interfering with recordings - refresh_token = self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) + refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) return self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 4ebc09fe7dbd..e291b4999fb0 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -113,7 +113,6 @@ def get_tag_properties(self, tag, **kwargs): self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) ) - # TODO: this needs to only look up for one artifact @distributed_trace def list_tags(self, **kwargs): # type: (Dict[str, Any]) -> ItemPaged[TagProperties] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py index d933da2d33a8..4aad909ec0b1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py @@ -59,9 +59,7 @@ def __init__(self, endpoint: str, credential: "AsyncTokencredential", **kwargs: async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: parsed_challenge = _parse_challenge(challenge) - # refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) - # TODO: This is interfering with recordings - refresh_token = await self.exchange_aad_token_for_refresh_token(parsed_challenge["service"], **kwargs) + refresh_token = await self.get_refresh_token(parsed_challenge["service"], **kwargs) return await self.exchange_refresh_token_for_access_token( refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs ) From 6e38bf158ed3c063fe147a9fdceb37c6cf356a23 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 15:18:02 -0400 Subject: [PATCH 11/42] more lint fixes --- .../azure/containerregistry/_container_repository.py | 6 +++++- .../containerregistry/aio/_async_container_repository.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index 095c8fcdd78e..e4f5b37b1f77 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -204,7 +204,11 @@ def set_properties(self, properties, **kwargs): :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ return RepositoryProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) + self._client.container_registry.set_properties( + self.repository, + properties._to_generated(), # pylint: disable=protected-access + **kwargs + ) ) @distributed_trace diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index 1ccc8524f198..20ff1ed6c426 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -202,7 +202,11 @@ async def set_properties(self, properties: ContentPermissions, **kwargs: Dict[st :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ return RepositoryProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.set_properties(self.repository, properties._to_generated(), **kwargs) + await self._client.container_registry.set_properties( + self.repository, + properties._to_generated(), # pylint: disable=protected-access + **kwargs + ) ) @distributed_trace From d9659c087ac2bf39e0cb3564c9cc74c89abad7d4 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 15:23:21 -0400 Subject: [PATCH 12/42] help with logging output --- .../azure-containerregistry/tests/testcase.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 1bfd3e5d4e4c..cb1e67a6064d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -6,6 +6,7 @@ import copy from datetime import datetime import json +import logging import os import pytest import re @@ -36,6 +37,7 @@ REDACTED = "REDACTED" + class OAuthRequestResponsesFilterACR(RecordingProcessor): """Remove oauth authentication requests and responses from recording.""" @@ -45,7 +47,8 @@ def process_request(self, request): # POST https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token # But 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: + + if not re.search("/oauth2(?:/v2.0)?/token", request.uri) or "azurecr.io" in request.uri: return request return None @@ -219,10 +222,18 @@ def get_credential(self): return FakeTokenCredential() def create_registry_client(self, endpoint, **kwargs): - return ContainerRegistryClient(endpoint=endpoint, credential=self.get_credential(), **kwargs) + c = ContainerRegistryClient(endpoint=endpoint, credential=self.get_credential(), **kwargs) + logger = logging.getLogger("azure") + logger.setLevel(logging.WARNING) + logger.propagate = True + return c def create_container_repository(self, endpoint, name, **kwargs): - return ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) + c = ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) + logger = logging.getLogger("azure") + logger.setLevel(logging.WARNING) + logger.propagate = True + return c def assert_content_permission(self, content_perm, content_perm2): assert isinstance(content_perm, ContentPermissions) From 941473ae0fcd54246c91265598d0725b3133877b Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 16:23:15 -0400 Subject: [PATCH 13/42] change to list_repository_names --- .../_container_registry_client.py | 4 ++-- .../aio/_async_container_registry_client.py | 4 ++-- .../sample_create_client_async.py | 4 ++-- .../samples/sample_create_client.py | 4 ++-- .../tests/test_container_registry_client.py | 16 ++++++++-------- .../test_container_registry_client_async.py | 18 +++++++++--------- .../tests/test_container_repository.py | 4 ++-- .../tests/test_container_repository_async.py | 4 ++-- .../azure-containerregistry/tests/testcase.py | 4 ++-- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index 94e5a2f82fb5..2aa683d1cfbe 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -59,7 +59,7 @@ def delete_repository(self, repository, **kwargs): ) @distributed_trace - def list_repositories(self, **kwargs): + def list_repository_names(self, **kwargs): # type: (Dict[str, Any]) -> ItemPaged[str] """List all repositories @@ -166,7 +166,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def get_repository_client(self, repository, **kwargs): + def get_repository(self, repository, **kwargs): # type: (str, Dict[str, Any]) -> ContainerRepository """Get a Container Repository object diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 7c76d5359293..2ac189b95e69 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -59,7 +59,7 @@ async def delete_repository(self, repository: str, **kwargs: Dict[str, Any]) -> return DeletedRepositoryResult._from_generated(result) # pylint: disable=protected-access @distributed_trace - def list_repositories(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[str]: + def list_repository_names(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[str]: """List all repositories :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -163,7 +163,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def get_repository_client(self, repository: str, **kwargs: Dict[str, Any]) -> ContainerRepository: + def get_repository(self, repository: str, **kwargs: Dict[str, Any]) -> ContainerRepository: """Get a repository client :param repository: The repository to create a client for diff --git a/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py b/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py index bb6f4b035068..09e2d4ecaed6 100644 --- a/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py +++ b/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py @@ -55,10 +55,10 @@ async def basic_sample(self): client = ContainerRegistryClient(self.account_url, DefaultAzureCredential()) async with client: # Iterate through all the repositories - async for repository_name in client.list_repositories(): + async for repository_name in client.list_repository_names(): if repository_name == "hello-world": # Create a repository client from the registry client - repository_client = client.get_repository_client(repository_name) + repository_client = client.get_repository(repository_name) async with repository_client: # Show all tags diff --git a/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py b/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py index 0c538b0c5b66..58dbd463e3aa 100644 --- a/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py +++ b/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py @@ -55,10 +55,10 @@ def basic_sample(self): client = ContainerRegistryClient(self.account_url, DefaultAzureCredential()) with client: # Iterate through all the repositories - for repository_name in client.list_repositories(): + for repository_name in client.list_repository_names(): if repository_name == "hello-world": # Create a repository client from the registry client - repository_client = client.get_repository_client(repository_name) + repository_client = client.get_repository(repository_name) with repository_client: # Show all tags 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 1f914a87b6b7..78e93a0e6875 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,10 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() - def test_list_repositories(self, containerregistry_endpoint): + def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) - repositories = client.list_repositories() + repositories = client.list_repository_names() assert isinstance(repositories, ItemPaged) count = 0 @@ -40,12 +40,12 @@ def test_list_repositories(self, containerregistry_endpoint): assert count > 0 @acr_preparer() - def test_list_repositories_by_page(self, containerregistry_endpoint): + def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 total_pages = 0 - repository_pages = client.list_repositories(results_per_page=results_per_page) + repository_pages = client.list_repository_names(results_per_page=results_per_page) prev = None for page in repository_pages.by_page(): @@ -70,7 +70,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r assert result.deleted_registry_artifact_digests is not None assert result.deleted_tags is not None - for repo in client.list_repositories(): + for repo in client.list_repository_names(): if repo == TO_BE_DELETED: raise ValueError("Repository not deleted") @@ -86,13 +86,13 @@ def test_transport_closed_only_once(self, containerregistry_endpoint): transport = RequestsTransport() client = self.create_registry_client(containerregistry_endpoint, transport=transport) with client: - for r in client.list_repositories(): + for r in client.list_repository_names(): pass assert transport.session is not None - with client.get_repository_client(HELLO_WORLD) as repo_client: + with client.get_repository(HELLO_WORLD) as repo_client: assert transport.session is not None - for r in client.list_repositories(): + for r in client.list_repository_names(): pass assert transport.session is not None 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 b12fef18102b..1ae718ac343c 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 @@ -23,14 +23,14 @@ class TestContainerRegistryClient(AsyncContainerRegistryTestClass): @acr_preparer() - async def test_list_repositories(self, containerregistry_endpoint): + async def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) - repositories = client.list_repositories() + repositories = client.list_repository_names() count = 0 prev = None - async for repo in client.list_repositories(): + async for repo in client.list_repository_names(): count += 1 assert isinstance(repo, six.string_types) assert prev != repo @@ -39,12 +39,12 @@ async def test_list_repositories(self, containerregistry_endpoint): assert count > 0 @acr_preparer() - async def test_list_repositories_by_page(self, containerregistry_endpoint): + async def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 total_pages = 0 - repository_pages = client.list_repositories(results_per_page=results_per_page) + repository_pages = client.list_repository_names(results_per_page=results_per_page) prev = None async for page in repository_pages.by_page(): @@ -70,7 +70,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi assert result.deleted_registry_artifact_digests is not None assert result.deleted_tags is not None - async for repo in client.list_repositories(): + async for repo in client.list_repository_names(): if repo == TO_BE_DELETED: raise ValueError("Repository not deleted") @@ -86,14 +86,14 @@ async def test_transport_closed_only_once(self, containerregistry_endpoint): transport = AioHttpTransport() client = self.create_registry_client(containerregistry_endpoint, transport=transport) async with client: - async for r in client.list_repositories(): + async for r in client.list_repository_names(): pass assert transport.session is not None - repo_client = client.get_repository_client(HELLO_WORLD) + repo_client = client.get_repository(HELLO_WORLD) async with repo_client: assert transport.session is not None - async for r in client.list_repositories(): + async for r in client.list_repository_names(): pass assert transport.session is not None diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index dbfb21672ddf..696b466fcf20 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -314,7 +314,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r self.import_image(HELLO_WORLD, [TO_BE_DELETED]) reg_client = self.create_registry_client(containerregistry_endpoint) - existing_repos = list(reg_client.list_repositories()) + existing_repos = list(reg_client.list_repository_names()) assert TO_BE_DELETED in existing_repos repo_client = self.create_container_repository(containerregistry_endpoint, TO_BE_DELETED) @@ -323,7 +323,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r assert result.deleted_registry_artifact_digests is not None assert result.deleted_tags is not None - existing_repos = list(reg_client.list_repositories()) + existing_repos = list(reg_client.list_repository_names()) assert TO_BE_DELETED not in existing_repos @acr_preparer() diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index f9778f03450b..73862d5dc7d6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -82,7 +82,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi reg_client = self.create_registry_client(containerregistry_endpoint) existing_repos = [] - async for repo in reg_client.list_repositories(): + async for repo in reg_client.list_repository_names(): existing_repos.append(repo) assert TO_BE_DELETED in existing_repos @@ -93,7 +93,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi assert result.deleted_tags is not None existing_repos = [] - async for repo in reg_client.list_repositories(): + async for repo in reg_client.list_repository_names(): existing_repos.append(repo) assert TO_BE_DELETED not in existing_repos diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index cb1e67a6064d..9ea040081766 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -190,7 +190,7 @@ def _clean_up(self, endpoint): return reg_client = self.create_registry_client(endpoint) - for repo in reg_client.list_repositories(): + for repo in reg_client.list_repository_names(): if repo.startswith("repo"): repo_client = self.create_container_repository(endpoint, repo) for tag in repo_client.list_tags(): @@ -210,7 +210,7 @@ def _clean_up(self, endpoint): except: pass - for repo in reg_client.list_repositories(): + for repo in reg_client.list_repository_names(): try: reg_client.delete_repository(repo) except: From 44ceace7ae9792bbfb91db5dd5815d89341e2820 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 16:42:16 -0400 Subject: [PATCH 14/42] renaming for consistency --- .../azure/containerregistry/__init__.py | 12 ++-- .../_container_repository.py | 4 +- .../_container_registry_operations.py | 20 +++--- .../_generated/models/__init__.py | 6 +- .../_generated/models/_models.py | 4 +- .../_generated/models/_models_py3.py | 4 +- .../_container_registry_operations.py | 20 +++--- .../azure/containerregistry/_models.py | 53 +++++++------- .../containerregistry/_registry_artifact.py | 28 ++++---- .../aio/_async_container_repository.py | 8 +-- .../aio/_async_registry_artifact.py | 30 ++++---- .../tests/asynctestcase.py | 4 +- .../tests/test_container_registry_client.py | 4 +- .../test_container_registry_client_async.py | 4 +- .../tests/test_container_repository.py | 72 +++++++++---------- .../tests/test_container_repository_async.py | 70 +++++++++--------- .../tests/test_registry_artifact.py | 48 ++++++------- .../tests/test_registry_artifact_async.py | 48 ++++++------- .../azure-containerregistry/tests/testcase.py | 16 ++--- 19 files changed, 230 insertions(+), 225 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index b9b2ec95f1c8..6457453d09cf 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -9,13 +9,13 @@ from ._container_registry_client import ContainerRegistryClient from ._container_repository import ContainerRepository from ._models import ( - ContentPermissions, + ContentProperties, DeletedRepositoryResult, - RegistryArtifactOrderBy, + ManifestOrderBy, ArtifactManifestProperties, RepositoryProperties, TagOrderBy, - TagProperties, + ArtifactTagProperties, ) from ._registry_artifact import RegistryArtifact from ._version import VERSION @@ -25,12 +25,12 @@ __all__ = [ "ContainerRegistryClient", "ContainerRepository", - "ContentPermissions", + "ContentProperties", "DeletedRepositoryResult", "RegistryArtifact", - "RegistryArtifactOrderBy", + "ManifestOrderBy", "ArtifactManifestProperties", "RepositoryProperties", "TagOrderBy", - "TagProperties", + "ArtifactTagProperties", ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index e4f5b37b1f77..f040ed7441bb 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -28,7 +28,7 @@ if TYPE_CHECKING: from typing import Any, Dict from azure.core.credentials import TokenCredential - from ._models import ContentPermissions + from ._models import ContentProperties class ContainerRepository(ContainerRegistryBaseClient): @@ -86,7 +86,7 @@ def list_registry_artifacts(self, **kwargs): call will return values after last lexically :paramtype last: str :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` + :paramtype order_by: :class:`~azure.containerregistry.ManifestOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int :return: ItemPaged[:class:`ArtifactManifestProperties`] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py index 6ceada0afc4a..cc90eeadfa4f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py @@ -623,7 +623,7 @@ async def get_tag_properties( name: str, reference: str, **kwargs - ) -> "_models.ArtifactTagProperties": + ) -> "_models.ArtifactArtifactTagProperties": """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -631,11 +631,11 @@ async def get_tag_properties( :param reference: Tag name. :type reference: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactTagProperties + :return: ArtifactArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -667,7 +667,7 @@ async def get_tag_properties( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -681,7 +681,7 @@ async def update_tag_attributes( reference: str, value: Optional["_models.ContentProperties"] = None, **kwargs - ) -> "_models.ArtifactTagProperties": + ) -> "_models.ArtifactArtifactTagProperties": """Update tag attributes. :param name: Name of the image (including the namespace). @@ -691,11 +691,11 @@ async def update_tag_attributes( :param value: Repository attribute value. :type value: ~container_registry.models.ContentProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactTagProperties + :return: ArtifactArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -735,7 +735,7 @@ async def update_tag_attributes( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 47f70aa24044..179c289ad856 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -12,7 +12,7 @@ from ._models_py3 import AcrRefreshToken from ._models_py3 import Annotations from ._models_py3 import ArtifactManifestProperties - from ._models_py3 import ArtifactTagProperties + from ._models_py3 import ArtifactArtifactTagProperties from ._models_py3 import ContentProperties from ._models_py3 import DeleteRepositoryResult from ._models_py3 import Descriptor @@ -50,7 +50,7 @@ from ._models import AcrRefreshToken # type: ignore from ._models import Annotations # type: ignore from ._models import ArtifactManifestProperties # type: ignore - from ._models import ArtifactTagProperties # type: ignore + from ._models import ArtifactArtifactTagProperties # type: ignore from ._models import ContentProperties # type: ignore from ._models import DeleteRepositoryResult # type: ignore from ._models import Descriptor # type: ignore @@ -96,7 +96,7 @@ 'AcrRefreshToken', 'Annotations', 'ArtifactManifestProperties', - 'ArtifactTagProperties', + 'ArtifactArtifactTagProperties', 'ContentProperties', 'DeleteRepositoryResult', 'Descriptor', diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index 4ff78817dcfc..4b3b2ca83b70 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -249,7 +249,7 @@ def __init__( self.writeable_properties = kwargs.get('writeable_properties', None) -class ArtifactTagProperties(msrest.serialization.Model): +class ArtifactArtifactTagProperties(msrest.serialization.Model): """Tag attributes. All required parameters must be populated in order to send to Azure. @@ -290,7 +290,7 @@ def __init__( self, **kwargs ): - super(ArtifactTagProperties, self).__init__(**kwargs) + super(ArtifactArtifactTagProperties, self).__init__(**kwargs) self.repository = kwargs['repository'] self.name = kwargs['name'] self.digest = kwargs['digest'] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index 7d3ccf0d68cf..dcbc7ab3de90 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -293,7 +293,7 @@ def __init__( self.writeable_properties = writeable_properties -class ArtifactTagProperties(msrest.serialization.Model): +class ArtifactArtifactTagProperties(msrest.serialization.Model): """Tag attributes. All required parameters must be populated in order to send to Azure. @@ -341,7 +341,7 @@ def __init__( writeable_properties: "ContentProperties", **kwargs ): - super(ArtifactTagProperties, self).__init__(**kwargs) + super(ArtifactArtifactTagProperties, self).__init__(**kwargs) self.repository = repository self.name = name self.digest = digest diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py index 6e0d378e0489..9d008b9d50e4 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py @@ -637,7 +637,7 @@ def get_tag_properties( reference, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactTagProperties" + # type: (...) -> "_models.ArtifactArtifactTagProperties" """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -645,11 +645,11 @@ def get_tag_properties( :param reference: Tag name. :type reference: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactTagProperties + :return: ArtifactArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -681,7 +681,7 @@ def get_tag_properties( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -696,7 +696,7 @@ def update_tag_attributes( value=None, # type: Optional["_models.ContentProperties"] **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactTagProperties" + # type: (...) -> "_models.ArtifactArtifactTagProperties" """Update tag attributes. :param name: Name of the image (including the namespace). @@ -706,11 +706,11 @@ def update_tag_attributes( :param value: Repository attribute value. :type value: ~container_registry.models.ContentProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactTagProperties + :return: ArtifactArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -750,7 +750,7 @@ def update_tag_attributes( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 23e75c4917ba..1802bf54783c 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -6,15 +6,15 @@ from enum import Enum from typing import TYPE_CHECKING -from ._generated.models import ContentProperties +from ._generated.models import ContentProperties as GeneratedContentProperties from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties if TYPE_CHECKING: from ._generated.models import ManifestAttributesBase - from ._generated.models import ArtifactTagProperties as GeneratedTagProperties + from ._generated.models import ArtifactArtifactTagProperties as GeneratedArtifactTagProperties -class ContentPermissions(object): +class ContentProperties(object): """Permissions of an artifact or tag :ivar bool can_delete: Ability to delete an artifact or tag @@ -31,7 +31,7 @@ def __init__(self, **kwargs): @classmethod def _from_generated(cls, generated): - # type: (ContentProperties) -> ContentPermissions + # type: (ContentProperties) -> ContentProperties return cls( can_delete=generated.can_delete, can_list=generated.can_list, @@ -40,8 +40,8 @@ def _from_generated(cls, generated): ) def _to_generated(self): - # type: () -> ContentProperties - return ContentProperties( + # type: () -> GeneratedContentProperties + return GeneratedContentProperties( can_delete=self.can_delete, can_list=self.can_list, can_read=self.can_read, @@ -52,19 +52,19 @@ def _to_generated(self): class DeletedRepositoryResult(object): """Represents the digests and tags deleted when a repository is deleted - :ivar List[str] deleted_registry_artifact_digests: Registry artifact digests that were deleted + :ivar List[str] deleted_manifests: Registry artifact digests that were deleted :ivar List[str] deleted_tags: Tags that were deleted """ def __init__(self, **kwargs): - self.deleted_registry_artifact_digests = kwargs.get("deleted_registry_artifact_digests", None) + self.deleted_manifests = kwargs.get("deleted_manifests", None) self.deleted_tags = kwargs.get("deleted_tags", None) @classmethod def _from_generated(cls, gen): return cls( deleted_tags=gen.deleted_tags, - deleted_registry_artifact_digests=gen.deleted_manifests, + deleted_manifests=gen.deleted_manifests, ) @@ -82,7 +82,7 @@ class ArtifactManifestProperties(object): :ivar str size: Size of the artifact :ivar List[str] tags: Tags associated with a registry artifact :ivar content_permissions: Permissions for an artifact - :vartype content_permissions: :class:`~azure.containerregistry.ContentPermissions` + :vartype content_permissions: :class:`~azure.containerregistry.ContentProperties` """ def __init__(self, **kwargs): @@ -94,9 +94,9 @@ def __init__(self, **kwargs): self.references = kwargs.get("references", None) self.size = kwargs.get("size", None) self.tags = kwargs.get("tags", None) - self.content_permissions = kwargs.get("content_permissions", None) - if self.content_permissions: - self.content_permissions = ContentPermissions._from_generated(self.content_permissions) + self.writeable_properties = kwargs.get("content_permissions", None) + if self.writeable_properties: + self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) @classmethod def _from_generated(cls, generated): @@ -117,7 +117,7 @@ class RepositoryProperties(object): """Model for storing properties of a single repository :ivar content_permissions: Read/Write/List/Delete permissions for the repository - :vartype content_permissions: :class:`~azure.containerregistry.ContentPermissions` + :vartype content_permissions: :class:`~azure.containerregistry.ContentProperties` :ivar created_on: Time the repository was created :vartype created_on: :class:`datetime.datetime` :ivar last_updated_on: Time the repository was last updated @@ -129,15 +129,15 @@ class RepositoryProperties(object): """ def __init__(self, **kwargs): - self.content_permissions = kwargs.get("content_permissions", None) + self.writeable_properties = kwargs.get("content_permissions", None) self.created_on = kwargs.get("created_on", None) self.last_updated_on = kwargs.get("last_updated_on", None) self.manifest_count = kwargs.get("manifest_count", None) self.name = kwargs.get("name", None) self.registry = kwargs.get("registry", None) self.tag_count = kwargs.get("tag_count", None) - if self.content_permissions: - self.content_permissions = ContentPermissions._from_generated(self.content_permissions) + if self.writeable_properties: + self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) @classmethod def _from_generated(cls, generated): @@ -160,11 +160,11 @@ def _to_generated(self): last_updated_on=self.last_updated_on, manifest_count=self.manifest_count, tag_count=self.tag_count, - writeable_properties=self.content_permissions._to_generated(), # pylint: disable=protected-access + writeable_properties=self.writeable_properties._to_generated(), # pylint: disable=protected-access ) -class RegistryArtifactOrderBy(str, Enum): +class ManifestOrderBy(str, Enum): """Enum for ordering registry artifacts""" LAST_UPDATE_TIME_DESCENDING = "timedesc" @@ -178,32 +178,33 @@ class TagOrderBy(str, Enum): LAST_UPDATE_TIME_ASCENDING = "timeasc" -class TagProperties(object): +class ArtifactTagProperties(object): """Model for storing properties of a single tag :ivar content_permissions: Read/Write/List/Delete permissions for the tag - :vartype content_permissions: :class:`~azure.containerregistry.ContentPermissions` + :vartype content_permissions: :class:`~azure.containerregistry.ContentProperties` :ivar created_on: Time the tag was created :vartype created_on: :class:`datetime.datetime` :ivar str digest: Digest for the tag :ivar last_updated_on: Time the tag was last updated :vartype last_updated_on: :class:`datetime.datetime` :ivar str name: Name of the image the tag corresponds to - :ivar str registry: Registry the tag belongs to + :ivar str repository: Repository the tag belongs to """ def __init__(self, **kwargs): - self.content_permissions = kwargs.get("writeable_properties", None) + self.writeable_properties = kwargs.get("writeable_properties", None) self.created_on = kwargs.get("created_on", None) self.digest = kwargs.get("digest", None) self.last_updated_on = kwargs.get("last_updated_on", None) self.name = kwargs.get("name", None) - if self.content_permissions: - self.content_permissions = ContentPermissions._from_generated(self.content_permissions) + self.repository = kwargs.get("repository", None) + if self.writeable_properties: + self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) @classmethod def _from_generated(cls, generated): - # type: (GeneratedTagProperties) -> TagProperties + # type: (GeneratedArtifactTagProperties) -> ArtifactTagProperties return cls( created_on=generated.created_on, digest=generated.digest, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index e291b4999fb0..1de7facedaf2 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -20,13 +20,13 @@ from ._helpers import _is_tag, _parse_next_link from ._models import ( ArtifactManifestProperties, - TagProperties, + ArtifactTagProperties, ) if TYPE_CHECKING: from typing import Any, Dict from azure.core.credentials import TokenCredential - from ._models import ContentPermissions + from ._models import ContentProperties class RegistryArtifact(ContainerRegistryBaseClient): @@ -101,21 +101,21 @@ def get_manifest_properties(self, **kwargs): @distributed_trace def get_tag_properties(self, tag, **kwargs): - # type: (str, Dict[str, Any]) -> TagProperties + # type: (str, Dict[str, Any]) -> ArtifactTagProperties """Get the properties for a tag :param tag: The tag to get properties for :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` + :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - return TagProperties._from_generated( # pylint: disable=protected-access + return ArtifactTagProperties._from_generated( # pylint: disable=protected-access self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) ) @distributed_trace def list_tags(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[TagProperties] + # type: (Dict[str, Any]) -> ItemPaged[ArtifactTagProperties] """List the tags for a repository :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -125,7 +125,7 @@ def list_tags(self, **kwargs): :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + :return: ItemPaged[:class:`~azure.containerregistry.ArtifactTagProperties`] :rtype: :class:`~azure.core.paging.ItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -135,7 +135,7 @@ def list_tags(self, **kwargs): orderby = kwargs.pop("order_by", None) digest = kwargs.pop("digest", None) cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + "cls", lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access ) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -233,11 +233,11 @@ def get_next(next_link=None): @distributed_trace def set_manifest_properties(self, permissions, **kwargs): - # type: (str, ContentPermissions, Dict[str, Any]) -> ArtifactManifestProperties + # type: (str, ContentProperties, Dict[str, Any]) -> ArtifactManifestProperties """Set the properties for a manifest :param permissions: The property's values to be set - :type permissions: ContentPermissions + :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -255,17 +255,17 @@ def set_manifest_properties(self, permissions, **kwargs): @distributed_trace def set_tag_properties(self, tag, permissions, **kwargs): - # type: (str, ContentPermissions, Dict[str, Any]) -> TagProperties + # type: (str, ContentProperties, Dict[str, Any]) -> ArtifactTagProperties """Set the properties for a tag :param tag: Tag to set properties for :type tag: str :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.TagProperties` + :type permissions: ContentProperties + :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - return TagProperties._from_generated( # pylint: disable=protected-access + return ArtifactTagProperties._from_generated( # pylint: disable=protected-access self._client.container_registry.update_tag_attributes( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index 20ff1ed6c426..d0b79caa25fc 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -20,11 +20,11 @@ from .._generated.models import AcrErrors from .._helpers import _parse_next_link from .._models import ( - ContentPermissions, + ContentProperties, DeletedRepositoryResult, ArtifactManifestProperties, RepositoryProperties, - TagProperties, + ArtifactTagProperties, ) from ._async_registry_artifact import RegistryArtifact @@ -85,7 +85,7 @@ def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[Ar call will return values after last lexically :paramtype last: str :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` + :paramtype order_by: :class:`~azure.containerregistry.ManifestOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int :return: ItemPaged[:class:`~azure.containerregistry.ArtifactManifestProperties`] @@ -195,7 +195,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace_async - async def set_properties(self, properties: ContentPermissions, **kwargs: Dict[str, Any]) -> RepositoryProperties: + async def set_properties(self, properties: ContentProperties, **kwargs: Dict[str, Any]) -> RepositoryProperties: """Set the properties of a repository :returns: :class:`~azure.containerregistry.RepositoryProperties` diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index 03692bf688dd..c2b603443aa1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -20,9 +20,9 @@ from .._generated.models import AcrErrors from .._helpers import _is_tag, _parse_next_link from .._models import ( - ContentPermissions, + ContentProperties, ArtifactManifestProperties, - TagProperties, + ArtifactTagProperties, ) if TYPE_CHECKING: @@ -102,20 +102,20 @@ async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactMan ) @distributed_trace_async - async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: + async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> ArtifactTagProperties: """Get the properties for a tag :param tag: The tag to get properties for :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` + :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - return TagProperties._from_generated( # pylint: disable=protected-access + return ArtifactTagProperties._from_generated( # pylint: disable=protected-access await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) ) @distributed_trace - def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: + def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactTagProperties]: """List the tags for a repository :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -125,7 +125,7 @@ def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` :keyword results_per_page: Number of repositories to return per page :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] + :return: ItemPaged[:class:`~azure.containerregistry.ArtifactTagProperties`] :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -135,7 +135,7 @@ def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: orderby = kwargs.pop("order_by", None) digest = kwargs.pop("digest", None) cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + "cls", lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access ) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -233,12 +233,12 @@ async def get_next(next_link=None): @distributed_trace_async async def set_manifest_properties( - self, permissions: ContentPermissions, **kwargs: Dict[str, Any] + self, permissions: ContentProperties, **kwargs: Dict[str, Any] ) -> ArtifactManifestProperties: """Set the properties for a manifest :param permissions: The property's values to be set - :type permissions: ContentPermissions + :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ @@ -256,18 +256,18 @@ async def set_manifest_properties( @distributed_trace_async async def set_tag_properties( - self, tag: str, permissions: ContentPermissions, **kwargs: Dict[str, Any] - ) -> TagProperties: + self, tag: str, permissions: ContentProperties, **kwargs: Dict[str, Any] + ) -> ArtifactTagProperties: """Set the properties for a tag :param tag: Tag to set properties for :type tag: str :param permissions: The property's values to be set - :type permissions: ContentPermissions - :returns: :class:`~azure.containerregistry.TagProperties` + :type permissions: ContentProperties + :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - return TagProperties._from_generated( # pylint: disable=protected-access + return ArtifactTagProperties._from_generated( # pylint: disable=protected-access await self._client.container_registry.update_tag_attributes( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ) diff --git a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py index 2d795f7bb4ca..5f6bd3733f60 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py @@ -14,8 +14,8 @@ ContainerRegistryClient, ) from azure.containerregistry import ( - TagProperties, - ContentPermissions, + ArtifactTagProperties, + ContentProperties, ArtifactManifestProperties, ) 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 78e93a0e6875..6a81b67dec8c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py @@ -22,6 +22,7 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): + @pytest.mark.live_test_only @acr_preparer() def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -39,6 +40,7 @@ def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 + @pytest.mark.live_test_only @acr_preparer() def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -67,7 +69,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r result = client.delete_repository(TO_BE_DELETED) assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None + assert result.deleted_manifests is not None assert result.deleted_tags is not None for repo in client.list_repository_names(): 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 1ae718ac343c..16cb64129d5e 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 @@ -22,6 +22,7 @@ class TestContainerRegistryClient(AsyncContainerRegistryTestClass): + @pytest.mark.live_test_only @acr_preparer() async def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -38,6 +39,7 @@ async def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 + @pytest.mark.live_test_only @acr_preparer() async def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -67,7 +69,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi result = await client.delete_repository(TO_BE_DELETED) assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None + assert result.deleted_manifests is not None assert result.deleted_tags is not None async for repo in client.list_repository_names(): diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index 696b466fcf20..f27b141fc90c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -7,10 +7,10 @@ import pytest from azure.containerregistry import ( - ContentPermissions, + ContentProperties, DeletedRepositoryResult, RepositoryProperties, - RegistryArtifactOrderBy, + ManifestOrderBy, ArtifactManifestProperties, ) from azure.core.exceptions import ResourceNotFoundError @@ -51,7 +51,7 @@ def test_get_properties(self, containerregistry_endpoint): properties = repo_client.get_properties() assert isinstance(properties, RepositoryProperties) - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) assert properties.name == u"library/hello-world" assert properties.registry == containerregistry_endpoint @@ -64,25 +64,25 @@ def test_set_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, repository) properties = repo_client.get_properties() - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) - c = ContentPermissions(can_delete=False, can_read=False, can_list=False, can_write=False) - properties.content_permissions = c + c = ContentProperties(can_delete=False, can_read=False, can_list=False, can_write=False) + properties.writeable_properties = c new_properties = repo_client.set_properties(c) - assert c.can_delete == new_properties.content_permissions.can_delete - assert c.can_read == new_properties.content_permissions.can_read - assert c.can_list == new_properties.content_permissions.can_list - assert c.can_write == new_properties.content_permissions.can_write + assert c.can_delete == new_properties.writeable_properties.can_delete + assert c.can_read == new_properties.writeable_properties.can_read + assert c.can_list == new_properties.writeable_properties.can_list + assert c.can_write == new_properties.writeable_properties.can_write - c = ContentPermissions(can_delete=True, can_read=True, can_list=True, can_write=True) - properties.content_permissions = c + c = ContentProperties(can_delete=True, can_read=True, can_list=True, can_write=True) + properties.writeable_properties = c new_properties = repo_client.set_properties(c) - assert c.can_delete == new_properties.content_permissions.can_delete - assert c.can_read == new_properties.content_permissions.can_read - assert c.can_list == new_properties.content_permissions.can_list - assert c.can_write == new_properties.content_permissions.can_write + assert c.can_delete == new_properties.writeable_properties.can_delete + assert c.can_read == new_properties.writeable_properties.can_read + assert c.can_list == new_properties.writeable_properties.can_list + assert c.can_write == new_properties.writeable_properties.can_write # @acr_preparer() # def test_get_tag(self, containerregistry_endpoint): @@ -91,7 +91,7 @@ def test_set_properties(self, containerregistry_endpoint): # tag = client.get_tag_properties("latest") # assert tag is not None - # assert isinstance(tag, TagProperties) + # assert isinstance(tag, ArtifactTagProperties) @acr_preparer() def test_list_registry_artifacts(self, containerregistry_endpoint): @@ -131,7 +131,7 @@ def test_list_registry_artifacts_descending(self, containerregistry_endpoint): prev_last_updated_on = None count = 0 - for artifact in client.list_registry_artifacts(order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_DESCENDING): + for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING): if prev_last_updated_on: assert artifact.last_updated_on < prev_last_updated_on prev_last_updated_on = artifact.last_updated_on @@ -145,7 +145,7 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): prev_last_updated_on = None count = 0 - for artifact in client.list_registry_artifacts(order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_ASCENDING): + for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING): if prev_last_updated_on: assert artifact.last_updated_on > prev_last_updated_on prev_last_updated_on = artifact.last_updated_on @@ -229,11 +229,11 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, repository) # tag_props = client.get_tag_properties(tag_identifier) - # permissions = tag_props.content_permissions + # permissions = tag_props.writeable_properties # received = client.set_tag_properties( # tag_identifier, - # ContentPermissions( + # ContentProperties( # can_delete=False, # can_list=False, # can_read=False, @@ -241,14 +241,14 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # ), # ) - # assert not received.content_permissions.can_write - # assert not received.content_permissions.can_read - # assert not received.content_permissions.can_list - # assert not received.content_permissions.can_delete + # assert not received.writeable_properties.can_write + # assert not received.writeable_properties.can_read + # assert not received.writeable_properties.can_list + # assert not received.writeable_properties.can_delete # client.set_tag_properties( # tag_identifier, - # ContentPermissions( + # ContentProperties( # can_delete=True, # can_list=True, # can_read=True, @@ -261,7 +261,7 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) # with pytest.raises(ResourceNotFoundError): - # client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) + # client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) # @acr_preparer() # def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): @@ -272,11 +272,11 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, repository) # for artifact in client.list_registry_artifacts(): - # permissions = artifact.content_permissions + # permissions = artifact.writeable_properties # received_permissions = client.set_manifest_properties( # artifact.digest, - # ContentPermissions( + # ContentProperties( # can_delete=False, # can_list=False, # can_read=False, @@ -284,15 +284,15 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # ), # ) - # assert not received_permissions.content_permissions.can_delete - # assert not received_permissions.content_permissions.can_read - # assert not received_permissions.content_permissions.can_list - # assert not received_permissions.content_permissions.can_write + # assert not received_permissions.writeable_properties.can_delete + # assert not received_permissions.writeable_properties.can_read + # assert not received_permissions.writeable_properties.can_list + # assert not received_permissions.writeable_properties.can_write # # Reset and delete # client.set_manifest_properties( # artifact.digest, - # ContentPermissions( + # ContentProperties( # can_delete=True, # can_list=True, # can_read=True, @@ -307,7 +307,7 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) # with pytest.raises(ResourceNotFoundError): - # client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) + # client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) @acr_preparer() def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): @@ -320,7 +320,7 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r repo_client = self.create_container_repository(containerregistry_endpoint, TO_BE_DELETED) result = repo_client.delete() assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None + assert result.deleted_manifests is not None assert result.deleted_tags is not None existing_repos = list(reg_client.list_repository_names()) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index 73862d5dc7d6..f373e2aec905 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -9,8 +9,8 @@ from azure.containerregistry import ( DeletedRepositoryResult, RepositoryProperties, - ContentPermissions, - RegistryArtifactOrderBy, + ContentProperties, + ManifestOrderBy, ArtifactManifestProperties, TagOrderBy, ) @@ -89,7 +89,7 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi repo_client = self.create_container_repository(containerregistry_endpoint, TO_BE_DELETED) result = await repo_client.delete() assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None + assert result.deleted_manifests is not None assert result.deleted_tags is not None existing_repos = [] @@ -133,11 +133,11 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, repository) # tag_props = await client.get_tag_properties(tag_identifier) - # permissions = tag_props.content_permissions + # permissions = tag_props.writeable_properties # received = await client.set_tag_properties( # tag_identifier, - # ContentPermissions( + # ContentProperties( # can_delete=False, # can_list=False, # can_read=False, @@ -145,15 +145,15 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # ), # ) - # assert not received.content_permissions.can_write - # assert not received.content_permissions.can_read - # assert not received.content_permissions.can_list - # assert not received.content_permissions.can_delete + # assert not received.writeable_properties.can_write + # assert not received.writeable_properties.can_read + # assert not received.writeable_properties.can_list + # assert not received.writeable_properties.can_delete # # Reset them # await client.set_tag_properties( # tag_identifier, - # ContentPermissions( + # ContentProperties( # can_delete=True, # can_list=True, # can_read=True, @@ -166,7 +166,7 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) # with pytest.raises(ResourceNotFoundError): - # await client.set_tag_properties(DOES_NOT_EXIST, ContentPermissions(can_delete=False)) + # await client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) # @acr_preparer() # async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): @@ -177,26 +177,26 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, repository) # async for artifact in client.list_registry_artifacts(): - # permissions = artifact.content_permissions + # permissions = artifact.writeable_properties # received_permissions = await client.set_manifest_properties( # artifact.digest, - # ContentPermissions( + # ContentProperties( # can_delete=False, # can_list=False, # can_read=False, # can_write=False, # ), # ) - # assert not received_permissions.content_permissions.can_delete - # assert not received_permissions.content_permissions.can_read - # assert not received_permissions.content_permissions.can_list - # assert not received_permissions.content_permissions.can_write + # assert not received_permissions.writeable_properties.can_delete + # assert not received_permissions.writeable_properties.can_read + # assert not received_permissions.writeable_properties.can_list + # assert not received_permissions.writeable_properties.can_write # # Reset and delete # await client.set_manifest_properties( # artifact.digest, - # ContentPermissions( + # ContentProperties( # can_delete=True, # can_list=True, # can_read=True, @@ -212,7 +212,7 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) # with pytest.raises(ResourceNotFoundError): - # await client.set_manifest_properties("sha256:abcdef", ContentPermissions(can_delete=False)) + # await client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) # @acr_preparer() # async def test_list_tags_descending(self, containerregistry_endpoint): @@ -281,7 +281,7 @@ async def test_list_registry_artifacts_descending(self, containerregistry_endpoi prev_last_updated_on = None count = 0 async for artifact in client.list_registry_artifacts( - order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_DESCENDING + order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING ): if prev_last_updated_on: assert artifact.last_updated_on < prev_last_updated_on @@ -297,7 +297,7 @@ async def test_list_registry_artifacts_ascending(self, containerregistry_endpoin prev_last_updated_on = None count = 0 async for artifact in client.list_registry_artifacts( - order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_ASCENDING + order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING ): if prev_last_updated_on: assert artifact.last_updated_on > prev_last_updated_on @@ -313,7 +313,7 @@ async def test_get_properties(self, containerregistry_endpoint): properties = await repo_client.get_properties() assert isinstance(properties, RepositoryProperties) - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) assert properties.name == u"library/hello-world" assert properties.registry == containerregistry_endpoint @@ -326,22 +326,22 @@ async def test_set_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, repository) properties = await repo_client.get_properties() - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) - c = ContentPermissions(can_delete=False, can_read=False, can_list=False, can_write=False) - properties.content_permissions = c + c = ContentProperties(can_delete=False, can_read=False, can_list=False, can_write=False) + properties.writeable_properties = c new_properties = await repo_client.set_properties(c) - assert c.can_delete == new_properties.content_permissions.can_delete - assert c.can_read == new_properties.content_permissions.can_read - assert c.can_list == new_properties.content_permissions.can_list - assert c.can_write == new_properties.content_permissions.can_write + assert c.can_delete == new_properties.writeable_properties.can_delete + assert c.can_read == new_properties.writeable_properties.can_read + assert c.can_list == new_properties.writeable_properties.can_list + assert c.can_write == new_properties.writeable_properties.can_write - c = ContentPermissions(can_delete=True, can_read=True, can_list=True, can_write=True) - properties.content_permissions = c + c = ContentProperties(can_delete=True, can_read=True, can_list=True, can_write=True) + properties.writeable_properties = c new_properties = await repo_client.set_properties(c) - assert c.can_delete == new_properties.content_permissions.can_delete - assert c.can_read == new_properties.content_permissions.can_read - assert c.can_list == new_properties.content_permissions.can_list - assert c.can_write == new_properties.content_permissions.can_write + assert c.can_delete == new_properties.writeable_properties.can_delete + assert c.can_read == new_properties.writeable_properties.can_read + assert c.can_list == new_properties.writeable_properties.can_list + assert c.can_write == new_properties.writeable_properties.can_write diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py index 7f602dd50cb9..3fc21f66de90 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py @@ -6,9 +6,9 @@ import pytest from azure.containerregistry import ( - ContentPermissions, + ContentProperties, ArtifactManifestProperties, - TagProperties, + ArtifactTagProperties, ) from azure.core.exceptions import ResourceNotFoundError @@ -35,7 +35,7 @@ def test_get_manifest_properties(self, containerregistry_endpoint): properties = reg_artifact.get_manifest_properties() assert isinstance(properties, ArtifactManifestProperties) - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) @acr_preparer() def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): @@ -55,22 +55,22 @@ def test_set_manifest_properties(self, containerregistry_endpoint): reg_artifact = self.set_up(containerregistry_endpoint, name=repo) properties = reg_artifact.get_manifest_properties() - c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + c = ContentProperties(can_delete=False, can_read=False, can_write=False, can_list=False) received = reg_artifact.set_manifest_properties(c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list - c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + c = ContentProperties(can_delete=True, can_read=True, can_write=True, can_list=True) received = reg_artifact.set_manifest_properties(c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list @acr_preparer() def test_get_tag_properties(self, containerregistry_endpoint): @@ -82,7 +82,7 @@ def test_get_tag_properties(self, containerregistry_endpoint): properties = reg_artifact.get_tag_properties(tag) - assert isinstance(properties, TagProperties) + assert isinstance(properties, ArtifactTagProperties) assert properties.name == tag @acr_preparer() @@ -103,22 +103,22 @@ def test_set_tag_properties(self, containerregistry_endpoint): reg_artifact = self.set_up(containerregistry_endpoint, name=repo) properties = reg_artifact.get_tag_properties(tag) - c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + c = ContentProperties(can_delete=False, can_read=False, can_write=False, can_list=False) received = reg_artifact.set_tag_properties(tag, c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list - c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + c = ContentProperties(can_delete=True, can_read=True, can_write=True, can_list=True) received = reg_artifact.set_tag_properties(tag, c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list @acr_preparer() def test_list_tags(self, containerregistry_endpoint): diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py index b3a4bb6b604b..5b2fa18b3358 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py @@ -6,9 +6,9 @@ import pytest from azure.containerregistry import ( - ContentPermissions, + ContentProperties, ArtifactManifestProperties, - TagProperties, + ArtifactTagProperties, ) from azure.core.exceptions import ResourceNotFoundError @@ -35,7 +35,7 @@ async def test_get_manifest_properties(self, containerregistry_endpoint): properties = await reg_artifact.get_manifest_properties() assert isinstance(properties, ArtifactManifestProperties) - assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.writeable_properties, ContentProperties) @acr_preparer() async def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): @@ -55,22 +55,22 @@ async def test_set_manifest_properties(self, containerregistry_endpoint): reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) properties = await reg_artifact.get_manifest_properties() - c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + c = ContentProperties(can_delete=False, can_read=False, can_write=False, can_list=False) received = await reg_artifact.set_manifest_properties(c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list - c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + c = ContentProperties(can_delete=True, can_read=True, can_write=True, can_list=True) received = await reg_artifact.set_manifest_properties(c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list @acr_preparer() async def test_get_tag_properties(self, containerregistry_endpoint): @@ -82,7 +82,7 @@ async def test_get_tag_properties(self, containerregistry_endpoint): properties = await reg_artifact.get_tag_properties(tag) - assert isinstance(properties, TagProperties) + assert isinstance(properties, ArtifactTagProperties) assert properties.name == tag @acr_preparer() @@ -103,22 +103,22 @@ async def test_set_tag_properties(self, containerregistry_endpoint): reg_artifact = await self.set_up(containerregistry_endpoint, name=repo) properties = await reg_artifact.get_tag_properties(tag) - c = ContentPermissions(can_delete=False, can_read=False, can_write=False, can_list=False) + c = ContentProperties(can_delete=False, can_read=False, can_write=False, can_list=False) received = await reg_artifact.set_tag_properties(tag, c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list - c = ContentPermissions(can_delete=True, can_read=True, can_write=True, can_list=True) + c = ContentProperties(can_delete=True, can_read=True, can_write=True, can_list=True) received = await reg_artifact.set_tag_properties(tag, c) - assert received.content_permissions.can_delete == c.can_delete - assert received.content_permissions.can_read == c.can_read - assert received.content_permissions.can_write == c.can_write - assert received.content_permissions.can_list == c.can_list + assert received.writeable_properties.can_delete == c.can_delete + assert received.writeable_properties.can_read == c.can_read + assert received.writeable_properties.can_write == c.can_write + assert received.writeable_properties.can_list == c.can_list @acr_preparer() async def test_list_tags(self, containerregistry_endpoint): diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 9ea040081766..3f940a075a8f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -16,8 +16,8 @@ from azure.containerregistry import ( ContainerRepository, ContainerRegistryClient, - TagProperties, - ContentPermissions, + ArtifactTagProperties, + ContentProperties, ArtifactManifestProperties, ) @@ -196,7 +196,7 @@ def _clean_up(self, endpoint): for tag in repo_client.list_tags(): try: - p = tag.content_permissions + p = tag.writeable_properties p.can_delete = True repo_client.set_tag_properties(tag.digest, p) except: @@ -204,7 +204,7 @@ def _clean_up(self, endpoint): for manifest in repo_client.list_registry_artifacts(): try: - p = manifest.content_permissions + p = manifest.writeable_properties p.can_delete = True repo_client.set_manifest_properties(tag.digest, p) except: @@ -236,8 +236,8 @@ def create_container_repository(self, endpoint, name, **kwargs): return c def assert_content_permission(self, content_perm, content_perm2): - assert isinstance(content_perm, ContentPermissions) - assert isinstance(content_perm2, ContentPermissions) + assert isinstance(content_perm, ContentProperties) + assert isinstance(content_perm2, ContentProperties) assert content_perm.can_delete == content_perm2.can_delete assert content_perm.can_list == content_perm2.can_list assert content_perm.can_read == content_perm2.can_read @@ -254,8 +254,8 @@ def assert_tag( registry=None, repository=None, ): - assert isinstance(tag, TagProperties) - assert isinstance(tag.writeable_permissions, ContentPermissions) + assert isinstance(tag, ArtifactTagProperties) + assert isinstance(tag.writeable_permissions, ContentProperties) assert isinstance(tag.created_on, datetime) assert isinstance(tag.last_updated_on, datetime) if content_permission: From 4e5dbc821a189c80e255e10139fcf37ed7d58497 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 17:08:50 -0400 Subject: [PATCH 15/42] all changes made, plus recordings --- .../_container_repository.py | 6 +- .../azure/containerregistry/_models.py | 14 +- .../containerregistry/_registry_artifact.py | 6 +- .../aio/_async_container_repository.py | 4 +- .../aio/_async_registry_artifact.py | 6 +- ...egistry_client.test_delete_repository.yaml | 66 +- ...test_delete_repository_does_not_exist.yaml | 12 +- ...try_client.test_list_repository_names.yaml | 170 ++ ...nt.test_list_repository_names_by_page.yaml | 1574 +++++++++++++++++ ...lient.test_transport_closed_only_once.yaml | 58 +- ...y_client_async.test_delete_repository.yaml | 57 +- ...test_delete_repository_does_not_exist.yaml | 12 +- ...ient_async.test_list_repository_names.yaml | 116 ++ ...nc.test_list_repository_names_by_page.yaml | 1036 +++++++++++ ...async.test_transport_closed_only_once.yaml | 47 +- ...ner_repository.test_delete_repository.yaml | 80 +- ...y.test_delete_repository_doesnt_exist.yaml | 12 +- ...tainer_repository.test_get_properties.yaml | 12 +- ...tainer_repository.test_list_manifests.yaml | 216 +++ ...ository.test_list_manifests_ascending.yaml | 216 +++ ...epository.test_list_manifests_by_page.yaml | 736 ++++++++ ...sitory.test_list_manifests_descending.yaml | 216 +++ ...tainer_repository.test_set_properties.yaml | 114 +- ...pository_async.test_delete_repository.yaml | 69 +- ...c.test_delete_repository_doesnt_exist.yaml | 12 +- ..._repository_async.test_get_properties.yaml | 12 +- ..._repository_async.test_list_manifests.yaml | 162 ++ ...y_async.test_list_manifests_ascending.yaml | 162 ++ ...ory_async.test_list_manifests_by_page.yaml | 506 ++++++ ..._async.test_list_manifests_descending.yaml | 162 ++ ..._repository_async.test_set_properties.yaml | 92 +- ...rtifact.test_delete_registry_artifact.yaml | 84 +- ...lete_registry_artifact_does_not_exist.yaml | 12 +- ...est_registry_artifact.test_delete_tag.yaml | 68 +- ...tifact.test_delete_tag_does_not_exist.yaml | 12 +- ...artifact.test_get_manifest_properties.yaml | 40 +- ...et_manifest_properties_does_not_exist.yaml | 2 +- ...stry_artifact.test_get_tag_properties.yaml | 32 +- ...est_get_tag_properties_does_not_exist.yaml | 12 +- ...test_registry_artifact.test_list_tags.yaml | 34 +- ...artifact.test_set_manifest_properties.yaml | 132 +- ...stry_artifact.test_set_tag_properties.yaml | 126 +- ...t_async.test_delete_registry_artifact.yaml | 73 +- ...lete_registry_artifact_does_not_exist.yaml | 12 +- ...gistry_artifact_async.test_delete_tag.yaml | 55 +- ..._async.test_delete_tag_does_not_exist.yaml | 12 +- ...ct_async.test_get_manifest_properties.yaml | 34 +- ...et_manifest_properties_does_not_exist.yaml | 2 +- ...rtifact_async.test_get_tag_properties.yaml | 32 +- ...est_get_tag_properties_does_not_exist.yaml | 12 +- ...egistry_artifact_async.test_list_tags.yaml | 34 +- ...ct_async.test_set_manifest_properties.yaml | 110 +- ...rtifact_async.test_set_tag_properties.yaml | 102 +- .../tests/test_container_repository.py | 229 +-- .../tests/test_container_repository_async.py | 211 +-- .../tests/test_registry_artifact.py | 3 +- .../tests/test_registry_artifact_async.py | 3 +- .../azure-containerregistry/tests/testcase.py | 18 +- 58 files changed, 5802 insertions(+), 1657 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index f040ed7441bb..c14394c8368d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -54,7 +54,7 @@ def __init__(self, endpoint, repository, credential, **kwargs): @distributed_trace def delete(self, **kwargs): - # type: (Dict[str, Any]) -> None + # type: (Dict[str, Any]) -> DeletedRepositoryResult """Delete a repository :returns: Object containing information about the deleted repository @@ -78,7 +78,7 @@ def get_properties(self, **kwargs): ) @distributed_trace - def list_registry_artifacts(self, **kwargs): + def list_manifests(self, **kwargs): # type: (Dict[str, Any]) -> ItemPaged[ArtifactManifestProperties] """List the artifacts for a repository @@ -100,7 +100,7 @@ def list_registry_artifacts(self, **kwargs): cls = kwargs.pop( "cls", lambda objs: [ - ArtifactManifestProperties._from_generated(x) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x, repository_name=self.repository) for x in objs # pylint: disable=protected-access ], ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 1802bf54783c..69150c0c19ac 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -5,7 +5,7 @@ # ------------------------------------ from enum import Enum -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Dict, Any from ._generated.models import ContentProperties as GeneratedContentProperties from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties @@ -78,7 +78,7 @@ class ArtifactManifestProperties(object): :ivar last_updated_on: Time and date an artifact was last updated :vartype last_updated_on: :class:`~datetime.datetime` :ivar str operating_system: Operating system for the artifact - :ivar List[str] references: References for the artifact + :ivar str repository_name: Repository name the artifact belongs to :ivar str size: Size of the artifact :ivar List[str] tags: Tags associated with a registry artifact :ivar content_permissions: Permissions for an artifact @@ -91,7 +91,7 @@ def __init__(self, **kwargs): self.digest = kwargs.get("digest", None) self.last_updated_on = kwargs.get("last_updated_on", None) self.operating_system = kwargs.get("operating_system", None) - self.references = kwargs.get("references", None) + self.repository_name = kwargs.get("repository_name", None) self.size = kwargs.get("size", None) self.tags = kwargs.get("tags", None) self.writeable_properties = kwargs.get("content_permissions", None) @@ -99,8 +99,8 @@ def __init__(self, **kwargs): self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) @classmethod - def _from_generated(cls, generated): - # type: (ManifestAttributesBase) -> ArtifactManifestProperties + def _from_generated(cls, generated, **kwargs): + # type: (ManifestAttributesBase, Dict[str, Any]) -> ArtifactManifestProperties return cls( cpu_architecture=generated.architecture, created_on=generated.created_on, @@ -110,6 +110,7 @@ def _from_generated(cls, generated): size=generated.size, tags=generated.tags, content_permissions=generated.writeable_properties, + repository_name=kwargs.get("repository_name") ) @@ -124,7 +125,6 @@ class RepositoryProperties(object): :vartype last_updated_on: :class:`datetime.datetime` :ivar int manifest_count: Number of manifest in the repository :ivar str name: Name of the repository - :ivar str registry: Registry the repository belongs to :ivar int tag_count: Number of tags associated with the repository """ @@ -134,7 +134,6 @@ def __init__(self, **kwargs): self.last_updated_on = kwargs.get("last_updated_on", None) self.manifest_count = kwargs.get("manifest_count", None) self.name = kwargs.get("name", None) - self.registry = kwargs.get("registry", None) self.tag_count = kwargs.get("tag_count", None) if self.writeable_properties: self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) @@ -149,7 +148,6 @@ def _from_generated(cls, generated): manifest_count=generated.manifest_count, tag_count=generated.tag_count, content_permissions=generated.writeable_properties, - registry=generated.additional_properties.get("registry", None), ) def _to_generated(self): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 1de7facedaf2..5def6f953475 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -96,7 +96,8 @@ def get_manifest_properties(self, **kwargs): self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else self._get_digest_from_tag() return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs) + self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs), + repository_name=self.repository, ) @distributed_trace @@ -250,7 +251,8 @@ def set_manifest_properties(self, permissions, **kwargs): self._digest, value=permissions._to_generated(), # pylint: disable=protected-access **kwargs - ) + ), + repository_name=self.repository, ) @distributed_trace diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index d0b79caa25fc..d464d7b9e975 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -78,7 +78,7 @@ async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties ) @distributed_trace - def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactManifestProperties]: + def list_manifests(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactManifestProperties]: """List the artifacts for a repository :keyword last: Query parameter for the last item in the previous call. Ensuing @@ -99,7 +99,7 @@ def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[Ar cls = kwargs.pop( "cls", lambda objs: [ - ArtifactManifestProperties._from_generated(x) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x, repository_name=self.repository) for x in objs # pylint: disable=protected-access ], ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index c2b603443aa1..3b0894ca1baf 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -98,7 +98,8 @@ async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactMan self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() return ArtifactManifestProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs) + await self._client.container_registry.get_manifest_properties(self.repository, self._digest, **kwargs), + repository_name=self.repository, ) @distributed_trace_async @@ -251,7 +252,8 @@ async def set_manifest_properties( self._digest, value=permissions._to_generated(), # pylint: disable=protected-access **kwargs - ) + ), + repository_name=self.repository, ) @distributed_trace_async 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 index 43065b90083d..0ce46cc41bb3 100644 --- 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 @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:32 GMT + - Wed, 28 Apr 2021 21:00:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8d39093a-a848-11eb-89c6-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b98b8700-a864-11eb-a44f-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8d39093a-a848-11eb-89c6-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b98b8700-a864-11eb-a44f-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:45 GMT + - Wed, 28 Apr 2021 21:00:25 GMT expires: - '-1' pragma: @@ -121,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:46 GMT + - Wed, 28 Apr 2021 21:00:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -162,7 +162,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:48 GMT + - Wed, 28 Apr 2021 21:00:28 GMT server: - openresty strict-transport-security: @@ -170,7 +170,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.3' status: code: 200 message: OK @@ -200,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:48 GMT + - Wed, 28 Apr 2021 21:00:28 GMT server: - openresty strict-transport-security: @@ -208,7 +208,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.283333' status: code: 200 message: OK @@ -253,7 +253,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:50 GMT + - Wed, 28 Apr 2021 21:00:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -299,7 +299,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:50 GMT + - Wed, 28 Apr 2021 21:00:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -314,44 +314,6 @@ interactions: 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.0b1 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, 28 Apr 2021 17:38:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED headers: @@ -378,7 +340,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:51 GMT + - Wed, 28 Apr 2021 21:00:31 GMT server: - openresty strict-transport-security: @@ -386,7 +348,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.266667' status: code: 200 message: OK @@ -423,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:51 GMT + - Wed, 28 Apr 2021 21:00:31 GMT docker-distribution-api-version: - registry/2.0 server: 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 index c179b3027ec8..56736cf8ea22 100644 --- 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 @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:52 GMT + - Wed, 28 Apr 2021 21:00:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:54 GMT + - Wed, 28 Apr 2021 21:00:33 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '166.55' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:54 GMT + - Wed, 28 Apr 2021 21:00:33 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.35' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:38:54 GMT + - Wed, 28 Apr 2021 21:00:33 GMT docker-distribution-api-version: - registry/2.0 server: 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 new file mode 100644 index 000000000000..8967f35ad5cc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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, 28 Apr 2021 21:00: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: + - '1343' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:35 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:36 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '354' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:00: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 +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 new file mode 100644 index 000000000000..7f16f5ee6e73 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names_by_page.yaml @@ -0,0 +1,1574 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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, 28 Apr 2021 21:00: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.0b1 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, 28 Apr 2021 21:00:38 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:38 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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, 28 Apr 2021 21:00:38 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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, 28 Apr 2021 21:00:39 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + response: + body: + string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' + 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: + - Wed, 28 Apr 2021 21:00:39 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&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, 28 Apr 2021 21:00:39 GMT + docker-distribution-api-version: + - registry/2.0 + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer realm="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:39 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + response: + body: + string: '{"repositories": ["repo28471541", "repo2c591564"]}' + 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: + - Wed, 28 Apr 2021 21:00:39 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:40 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + response: + body: + string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' + 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: + - Wed, 28 Apr 2021 21:00:40 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:40 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + response: + body: + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + 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: + - Wed, 28 Apr 2021 21:00:40 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:41 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + response: + body: + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' + 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: + - Wed, 28 Apr 2021 21:00:41 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:41 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + response: + body: + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + 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: + - Wed, 28 Apr 2021 21:00:41 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:42 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 + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + 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: + - Wed, 28 Apr 2021 21:00:42 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:42 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + response: + body: + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + 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: + - Wed, 28 Apr 2021 21:00:42 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:43 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + response: + body: + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + 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: + - Wed, 28 Apr 2021 21:00:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + response: + body: + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + 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: + - Wed, 28 Apr 2021 21:00:43 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&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, 28 Apr 2021 21:00: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1063' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:00:44 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + response: + body: + string: '{"repositories": null}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:00: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 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index a6c78ee067da..733ec04cc49c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:10 GMT + - Wed, 28 Apr 2021 21:00:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:12 GMT + - Wed, 28 Apr 2021 21:00:46 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '166.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:12 GMT + - Wed, 28 Apr 2021 21:00:46 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.7' + - '166.616667' status: code: 200 message: OK @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:13 GMT + - Wed, 28 Apr 2021 21:00:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:13 GMT + - Wed, 28 Apr 2021 21:00:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -213,44 +213,6 @@ interactions: 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.0b1 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, 28 Apr 2021 17:39:14 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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED headers: @@ -277,7 +239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:14 GMT + - Wed, 28 Apr 2021 21:00:47 GMT server: - openresty strict-transport-security: @@ -285,7 +247,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.666667' + - '166.6' status: code: 200 message: OK @@ -322,7 +284,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:14 GMT + - Wed, 28 Apr 2021 21:00:47 GMT docker-distribution-api-version: - registry/2.0 server: 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 index d784bec98fc0..4a840818ef30 100644 --- 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 @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:16 GMT + - Wed, 28 Apr 2021 21:00:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a7388cd0-a848-11eb-9070-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cf08e7fa-a864-11eb-967a-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a7388cd0-a848-11eb-9070-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cf08e7fa-a864-11eb-967a-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:39:27 GMT + - Wed, 28 Apr 2021 21:01:01 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:28 GMT + date: Wed, 28 Apr 2021 21:01:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:29 GMT + date: Wed, 28 Apr 2021 21:01:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:29 GMT + date: Wed, 28 Apr 2021 21:01:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -199,7 +199,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:31 GMT + date: Wed, 28 Apr 2021 21:01:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -228,7 +228,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:31 GMT + date: Wed, 28 Apr 2021 21:01:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -238,33 +238,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog -- 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.0b1 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, 28 Apr 2021 17:39:32 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/exchange - request: body: grant_type: refresh_token @@ -284,11 +257,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:32 GMT + date: Wed, 28 Apr 2021 21:01:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -314,7 +287,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:32 GMT + date: Wed, 28 Apr 2021 21:01:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 886bf4c498dd..0e8a8f2b4637 100644 --- 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 @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:33 GMT + date: Wed, 28 Apr 2021 21:01:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:35 GMT + date: Wed, 28 Apr 2021 21:01:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.933333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:35 GMT + date: Wed, 28 Apr 2021 21:01:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:35 GMT + date: Wed, 28 Apr 2021 21:01:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 new file mode 100644 index 000000000000..74e7639dc24c --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:01:08 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/_catalog +- 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.0b1 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, 28 Apr 2021 21:01:09 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/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:10 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '354' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01: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: 200 + message: OK + url: https://fake_url.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 new file mode 100644 index 000000000000..d3cf6aeb90ec --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names_by_page.yaml @@ -0,0 +1,1036 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:01:10 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/_catalog?n=2 +- 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.0b1 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, 28 Apr 2021 21:01:12 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/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:12 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:01:12 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://fake_url.azurecr.io/acr/v1/_catalog?n=2 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:01:12 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/_catalog?last=library/busybox&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:12 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + response: + body: + string: '{"repositories": ["repo25ce0f5d", "repo27331535"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:12 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://fake_url.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&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: Wed, 28 Apr 2021 21:01:12 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/_catalog?last=repo27331535&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:12 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= + response: + body: + string: '{"repositories": ["repo28471541", "repo2c591564"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:13 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repo2c591564&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:13 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + response: + body: + string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:13 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repo308e19dd&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:13 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + response: + body: + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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: Wed, 28 Apr 2021 21:01:14 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/_catalog?last=repo3c82158b&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + response: + body: + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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: Wed, 28 Apr 2021 21:01:14 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/_catalog?last=repo3e8d15a3&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + response: + body: + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&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: Wed, 28 Apr 2021 21:01:14 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/_catalog?last=repo8b5a11da&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:14 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:15 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repo9cb4121e&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:15 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + response: + body: + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:15 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repob0a917be&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:15 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/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + response: + body: + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:15 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://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repoc1b5131a&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:16 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + response: + body: + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01:16 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&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: Wed, 28 Apr 2021 21:01: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/_catalog?last=repoc7611808&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:16 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + response: + body: + string: '{"repositories": null}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '22' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:01: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/_catalog?last=repoc7611808&n=2&orderby= +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index 7a39fc2e7746..2463754ec14e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:49 GMT + date: Wed, 28 Apr 2021 21:01:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:50 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:50 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:51 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -132,7 +132,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:51 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -142,33 +142,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog -- 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.0b1 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, 28 Apr 2021 17:39:52 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -188,11 +161,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:52 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK @@ -218,7 +191,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:39:53 GMT + date: Wed, 28 Apr 2021 21:01:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index 6433797ba20e..f20282c411ff 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:57:57 GMT + - Wed, 28 Apr 2021 21:01:20 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-43761dc0-a84b-11eb-b896-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e1d99fe9-a864-11eb-bffd-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-43761dc0-a84b-11eb-b896-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e1d99fe9-a864-11eb-bffd-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:10 GMT + - Wed, 28 Apr 2021 21:01:33 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:11 GMT + - Wed, 28 Apr 2021 21:01:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:12 GMT + - Wed, 28 Apr 2021 21:01:35 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.166667' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:13 GMT + - Wed, 28 Apr 2021 21:01:36 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.15' status: code: 200 message: OK @@ -243,7 +243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:13 GMT + - Wed, 28 Apr 2021 21:01:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -289,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:14 GMT + - Wed, 28 Apr 2021 21:01:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -330,7 +330,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:15 GMT + - Wed, 28 Apr 2021 21:01:38 GMT server: - openresty strict-transport-security: @@ -338,7 +338,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' + - '166.616667' status: code: 200 message: OK @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:15 GMT + - Wed, 28 Apr 2021 21:01:38 GMT server: - openresty strict-transport-security: @@ -376,7 +376,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.583333' + - '165.95' status: code: 200 message: OK @@ -421,7 +421,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:17 GMT + - Wed, 28 Apr 2021 21:01:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -467,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:17 GMT + - Wed, 28 Apr 2021 21:01:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -482,44 +482,6 @@ interactions: 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.0b1 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, 28 Apr 2021 17:58:17 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED headers: @@ -546,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:17 GMT + - Wed, 28 Apr 2021 21:01:40 GMT server: - openresty strict-transport-security: @@ -554,7 +516,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.9' + - '166.133333' status: code: 200 message: OK @@ -591,7 +553,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:18 GMT + - Wed, 28 Apr 2021 21:01:41 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index 71031a22ba9b..26c23d43faab 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:18 GMT + - Wed, 28 Apr 2021 21:01:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:20 GMT + - Wed, 28 Apr 2021 21:01:43 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.4' + - '166.15' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:20 GMT + - Wed, 28 Apr 2021 21:01:43 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.383333' + - '165.95' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:20 GMT + - Wed, 28 Apr 2021 21:01:43 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index eeddfa9d869e..4ff48da85a12 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:21 GMT + - Wed, 28 Apr 2021 21:01:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:22 GMT + - Wed, 28 Apr 2021 21:01:45 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '166.25' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:22 GMT + - Wed, 28 Apr 2021 21:01:46 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.233333' status: code: 200 message: OK @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:22 GMT + - Wed, 28 Apr 2021 21:01:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml new file mode 100644 index 000000000000..6ace22bd942b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml @@ -0,0 +1,216 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: + - Wed, 28 Apr 2021 21:01: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: 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.0b1 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, 28 Apr 2021 21:01:48 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:48 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 +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:01:49 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_repository.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml new file mode 100644 index 000000000000..cfaa49ee6fae --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml @@ -0,0 +1,216 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: + - Wed, 28 Apr 2021 21:01: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: 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.0b1 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, 28 Apr 2021 21:01:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:51 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 + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:01:52 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_repository.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml new file mode 100644 index 000000000000..56f285720888 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml @@ -0,0 +1,736 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: + - Wed, 28 Apr 2021 21:01: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.0b1 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, 28 Apr 2021 21:01:54 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:55 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '931' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:01:55 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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: + - Wed, 28 Apr 2021 21:01: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:56 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 + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '927' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:01: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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: + - Wed, 28 Apr 2021 21:01: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:56 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: + - '889' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21:01:57 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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: + - Wed, 28 Apr 2021 21:01: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:57 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "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: + - 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: + - Wed, 28 Apr 2021 21:01:57 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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: + - Wed, 28 Apr 2021 21:01: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:01:57 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '929' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 21: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 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml new file mode 100644 index 000000000000..c687b20249e1 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml @@ -0,0 +1,216 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: + - Wed, 28 Apr 2021 21: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="https://fake_url.azurecr.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.0b1 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, 28 Apr 2021 21:02:00 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:00 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: + - Wed, 28 Apr 2021 21:02: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 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index eeb15f644e21..424a0b9a496b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:38 GMT + - Wed, 28 Apr 2021 21:02:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5b9e2af3-a84b-11eb-b9f8-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf2053c-a864-11eb-854d-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-5b9e2af3-a84b-11eb-b9f8-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf2053c-a864-11eb-854d-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:50 GMT + - Wed, 28 Apr 2021 21:02:15 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:51 GMT + - Wed, 28 Apr 2021 21:02:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:53 GMT + - Wed, 28 Apr 2021 21:02:18 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' + - '166.35' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:53 GMT + - Wed, 28 Apr 2021 21:02:18 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.7' + - '166.333333' status: code: 200 message: OK @@ -243,7 +243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:53 GMT + - Wed, 28 Apr 2021 21:02:18 GMT docker-distribution-api-version: - registry/2.0 server: @@ -292,7 +292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:53 GMT + - Wed, 28 Apr 2021 21:02:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -307,44 +307,6 @@ interactions: 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.0b1 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, 28 Apr 2021 17:58:53 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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED headers: @@ -371,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:54 GMT + - Wed, 28 Apr 2021 21:02:19 GMT server: - openresty strict-transport-security: @@ -379,7 +341,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.666667' + - '166.316667' status: code: 200 message: OK @@ -421,7 +383,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:54 GMT + - Wed, 28 Apr 2021 21:02:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -470,7 +432,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:54 GMT + - Wed, 28 Apr 2021 21:02:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -485,44 +447,6 @@ interactions: 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.0b1 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, 28 Apr 2021 17:58:54 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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED headers: @@ -549,7 +473,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:54 GMT + - Wed, 28 Apr 2021 21:02:19 GMT server: - openresty strict-transport-security: @@ -557,7 +481,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '166.3' status: code: 200 message: OK @@ -599,7 +523,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:58:55 GMT + - Wed, 28 Apr 2021 21:02:20 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index 8f9cd2611529..d95101a618ec 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:55:48 GMT + - Wed, 28 Apr 2021 21:02:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6efc147-a84a-11eb-91ca-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0662a6d0-a865-11eb-a334-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6efc147-a84a-11eb-91ca-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0662a6d0-a865-11eb-a334-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:56:01 GMT + - Wed, 28 Apr 2021 21:02:34 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:02 GMT + date: Wed, 28 Apr 2021 21:02:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:03 GMT + date: Wed, 28 Apr 2021 21:02:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:03 GMT + date: Wed, 28 Apr 2021 21:02:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -193,7 +193,7 @@ interactions: connection: keep-alive content-length: '370' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:04 GMT + date: Wed, 28 Apr 2021 21:02:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,7 +221,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:04 GMT + date: Wed, 28 Apr 2021 21:02:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -249,11 +249,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:05 GMT + date: Wed, 28 Apr 2021 21:02:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -277,11 +277,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:06 GMT + date: Wed, 28 Apr 2021 21:02:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -313,7 +313,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:08 GMT + date: Wed, 28 Apr 2021 21:02:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -342,7 +342,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:08 GMT + date: Wed, 28 Apr 2021 21:02:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -352,33 +352,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/_catalog -- 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.0b1 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, 28 Apr 2021 17:56:08 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -398,11 +371,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:08 GMT + date: Wed, 28 Apr 2021 21:02:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -428,7 +401,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:09 GMT + date: Wed, 28 Apr 2021 21:02:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index 8c5deb8258f8..99a6144e651f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:10 GMT + date: Wed, 28 Apr 2021 21:02:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:11 GMT + date: Wed, 28 Apr 2021 21:02:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:11 GMT + date: Wed, 28 Apr 2021 21:02:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:11 GMT + date: Wed, 28 Apr 2021 21:02:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index f11b3ebd95dd..507fd221d14e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:12 GMT + date: Wed, 28 Apr 2021 21:02:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:13 GMT + date: Wed, 28 Apr 2021 21:02:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.233333' + x-ms-ratelimit-remaining-calls-per-second: '166.466667' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:13 GMT + date: Wed, 28 Apr 2021 21:02:44 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.216667' + x-ms-ratelimit-remaining-calls-per-second: '165.966667' status: code: 200 message: OK @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:13 GMT + date: Wed, 28 Apr 2021 21:02:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml new file mode 100644 index 000000000000..b0a6f7931c35 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml @@ -0,0 +1,162 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:02:44 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/library%2Fbusybox/_manifests +- 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.0b1 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, 28 Apr 2021 21:02:45 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:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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, 28 Apr 2021 21:02:46 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml new file mode 100644 index 000000000000..0eeeb6325138 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml @@ -0,0 +1,162 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:02: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc +- 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.0b1 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, 28 Apr 2021 21:02:47 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02: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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "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, 28 Apr 2021 21:02:48 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml new file mode 100644 index 000000000000..9b7b0ac42b2b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml @@ -0,0 +1,506 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:02: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/library%2Fbusybox/_manifests?n=2 +- 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.0b1 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, 28 Apr 2021 21:02:50 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:50 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "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-length: '931' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:02:50 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&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: Wed, 28 Apr 2021 21:02: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/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:50 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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-length: '927' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:02:50 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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: Wed, 28 Apr 2021 21:02: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/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:51 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: '889' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:02:51 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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: Wed, 28 Apr 2021 21:02: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:51 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "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-length: '936' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:02:51 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&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: Wed, 28 Apr 2021 21:02: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:51 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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-length: '929' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:02: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml new file mode 100644 index 000000000000..1637b44bc03f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml @@ -0,0 +1,162 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:02: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc +- 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.0b1 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, 28 Apr 2021 21:02:53 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:02:54 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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: Wed, 28 Apr 2021 21:02:54 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index edb2b9b8b17f..ed2ae6f76d78 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:56:27 GMT + - Wed, 28 Apr 2021 21:02:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0dd99d1b-a84b-11eb-8580-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1addaa95-a865-11eb-bc9a-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0dd99d1b-a84b-11eb-8580-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1addaa95-a865-11eb-bc9a-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 17:56:39 GMT + - Wed, 28 Apr 2021 21:03:08 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:41 GMT + date: Wed, 28 Apr 2021 21:03:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:42 GMT + date: Wed, 28 Apr 2021 21:03:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:42 GMT + date: Wed, 28 Apr 2021 21:03:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.6' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -193,7 +193,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:42 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -226,7 +226,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:42 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -236,33 +236,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo2c591564 -- 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.0b1 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, 28 Apr 2021 17:56:42 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.583333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -282,11 +255,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:43 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.55' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -317,7 +290,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:43 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -350,7 +323,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:43 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -360,33 +333,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo2c591564 -- 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.0b1 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, 28 Apr 2021 17:56:43 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -406,11 +352,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:43 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -441,7 +387,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 17:56:44 GMT + date: Wed, 28 Apr 2021 21:03:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index 4541b02c0813..d9d65a2e709e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:12 GMT + - Wed, 28 Apr 2021 21:03:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b78745b7-a84b-11eb-91ae-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2546287c-a865-11eb-b247-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b78745b7-a84b-11eb-91ae-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2546287c-a865-11eb-b247-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:24 GMT + - Wed, 28 Apr 2021 21:03:26 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:26 GMT + - Wed, 28 Apr 2021 21:03:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:28 GMT + - Wed, 28 Apr 2021 21:03:28 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '166.283333' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:28 GMT + - Wed, 28 Apr 2021 21:03:28 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.266667' status: code: 200 message: OK @@ -227,8 +227,8 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T18:01:15.6071602Z", "lastUpdateTime": - "2021-04-28T18:01:15.6071602Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T21:03:16.7625955Z", "lastUpdateTime": + "2021-04-28T21:03:16.7625955Z", "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", @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:28 GMT + - Wed, 28 Apr 2021 21:03:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -335,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:29 GMT + - Wed, 28 Apr 2021 21:03:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:29 GMT + - Wed, 28 Apr 2021 21:03:30 GMT server: - openresty strict-transport-security: @@ -384,7 +384,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.433333' status: code: 200 message: OK @@ -414,7 +414,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:30 GMT + - Wed, 28 Apr 2021 21:03:30 GMT server: - openresty strict-transport-security: @@ -422,7 +422,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' + - '166.416667' status: code: 200 message: OK @@ -455,7 +455,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 18:01:30 GMT + - Wed, 28 Apr 2021 21:03:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -501,7 +501,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:40 GMT + - Wed, 28 Apr 2021 21:03:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -516,44 +516,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:01:40 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Ametadata_read&refresh_token=REDACTED headers: @@ -580,7 +542,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:40 GMT + - Wed, 28 Apr 2021 21:03:43 GMT server: - openresty strict-transport-security: @@ -588,7 +550,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' + - '166.4' status: code: 200 message: OK @@ -621,7 +583,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:41 GMT + - Wed, 28 Apr 2021 21:03:43 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index ef9be262e1af..dc3d12752d54 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:41 GMT + - Wed, 28 Apr 2021 21:03:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:43 GMT + - Wed, 28 Apr 2021 21:03:45 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '166.55' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:43 GMT + - Wed, 28 Apr 2021 21:03:46 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '166.266667' status: code: 200 message: OK @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:43 GMT + - Wed, 28 Apr 2021 21:03:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index 5c0cd95021bf..f336f1d79e67 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:44 GMT + - Wed, 28 Apr 2021 21:03:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb679a0a-a84b-11eb-9d88-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39af5569-a865-11eb-b817-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb679a0a-a84b-11eb-9d88-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39af5569-a865-11eb-b817-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:58 GMT + - Wed, 28 Apr 2021 21:04:00 GMT expires: - '-1' pragma: @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:01:58 GMT + - Wed, 28 Apr 2021 21:04:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:00 GMT + - Wed, 28 Apr 2021 21:04:02 GMT server: - openresty strict-transport-security: @@ -171,7 +171,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.066667' + - '166.466667' status: code: 200 message: OK @@ -201,7 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:00 GMT + - Wed, 28 Apr 2021 21:04:03 GMT server: - openresty strict-transport-security: @@ -209,7 +209,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.05' + - '166.35' status: code: 200 message: OK @@ -242,7 +242,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 18:02:00 GMT + - Wed, 28 Apr 2021 21:04:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -290,7 +290,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:00 GMT + - Wed, 28 Apr 2021 21:04:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -305,44 +305,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:02:01 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo34ab0fa1%3Ametadata_read&refresh_token=REDACTED headers: @@ -369,7 +331,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:01 GMT + - Wed, 28 Apr 2021 21:04:03 GMT server: - openresty strict-transport-security: @@ -377,7 +339,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '166.333333' status: code: 200 message: OK @@ -422,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:01 GMT + - Wed, 28 Apr 2021 21:04:04 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 05c89465f526..81965af46258 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:02 GMT + - Wed, 28 Apr 2021 21:04:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:03 GMT + - Wed, 28 Apr 2021 21:04:06 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.6' + - '166.05' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:03 GMT + - Wed, 28 Apr 2021 21:04:06 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.583333' + - '166.033333' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:04 GMT + - Wed, 28 Apr 2021 21:04:06 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml index a8993b46bb8b..aa8d4d403b43 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:05 GMT + - Wed, 28 Apr 2021 21:04:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d79b7f0c-a84b-11eb-93bd-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-460a5f05-a865-11eb-9cd4-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d79b7f0c-a84b-11eb-93bd-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-460a5f05-a865-11eb-9cd4-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:18 GMT + - Wed, 28 Apr 2021 21:04:22 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:19 GMT + - Wed, 28 Apr 2021 21:04:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:20 GMT + - Wed, 28 Apr 2021 21:04:25 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.35' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:20 GMT + - Wed, 28 Apr 2021 21:04:25 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '165.9' status: code: 200 message: OK @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:21 GMT + - Wed, 28 Apr 2021 21:04:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:21 GMT + - Wed, 28 Apr 2021 21:04:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:22 GMT + - Wed, 28 Apr 2021 21:04:26 GMT server: - openresty strict-transport-security: @@ -382,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.283333' status: code: 200 message: OK @@ -412,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:22 GMT + - Wed, 28 Apr 2021 21:04:27 GMT server: - openresty strict-transport-security: @@ -420,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '166.266667' status: code: 200 message: OK @@ -445,8 +445,8 @@ interactions: "2021-04-28T14:19:08.1493156Z", "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\":\"4/28/2021 6:02:10 + true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:04:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -458,11 +458,11 @@ interactions: connection: - keep-alive content-length: - - '816' + - '812' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:22 GMT + - Wed, 28 Apr 2021 21:04:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index e1dd75d8796e..161df3f7d00d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:23 GMT + - Wed, 28 Apr 2021 21:04:28 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index 02d4e9b0802c..6a9e43b9ef1b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:24 GMT + - Wed, 28 Apr 2021 21:04:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e31058cf-a84b-11eb-b72d-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-52ae4f32-a865-11eb-89ed-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e31058cf-a84b-11eb-b72d-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-52ae4f32-a865-11eb-89ed-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:37 GMT + - Wed, 28 Apr 2021 21:04:42 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:38 GMT + - Wed, 28 Apr 2021 21:04:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:39 GMT + - Wed, 28 Apr 2021 21:04:45 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165' + - '165.8' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:40 GMT + - Wed, 28 Apr 2021 21:04:45 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '164.983333' + - '165.783333' status: code: 200 message: OK @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:40 GMT + - Wed, 28 Apr 2021 21:04:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:41 GMT + - Wed, 28 Apr 2021 21:04:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:41 GMT + - Wed, 28 Apr 2021 21:04:47 GMT server: - openresty strict-transport-security: @@ -382,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.233333' + - '166.65' status: code: 200 message: OK @@ -412,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:41 GMT + - Wed, 28 Apr 2021 21:04:47 GMT server: - openresty strict-transport-security: @@ -420,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.216667' + - '166.633333' status: code: 200 message: OK @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:42 GMT + - Wed, 28 Apr 2021 21:04:48 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index 5585f6814daf..301cf89c8680 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:42 GMT + - Wed, 28 Apr 2021 21:04:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:44 GMT + - Wed, 28 Apr 2021 21:04:50 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '166.333333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:44 GMT + - Wed, 28 Apr 2021 21:04:50 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' + - '166.25' status: code: 200 message: OK @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:44 GMT + - Wed, 28 Apr 2021 21:04:51 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index dd7bca9377e8..a40789b7f222 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:45 GMT + - Wed, 28 Apr 2021 21:04:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ef86e155-a84b-11eb-8c4b-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-604cbd4e-a865-11eb-82c7-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-ef86e155-a84b-11eb-8c4b-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-604cbd4e-a865-11eb-82c7-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:58 GMT + - Wed, 28 Apr 2021 21:05:05 GMT expires: - '-1' pragma: @@ -120,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:02:59 GMT + - Wed, 28 Apr 2021 21:05:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:01 GMT + - Wed, 28 Apr 2021 21:05:08 GMT server: - openresty strict-transport-security: @@ -169,7 +169,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.933333' status: code: 200 message: OK @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:01 GMT + - Wed, 28 Apr 2021 21:05:09 GMT server: - openresty strict-transport-security: @@ -207,7 +207,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.816667' status: code: 200 message: OK @@ -289,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:01 GMT + - Wed, 28 Apr 2021 21:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -335,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:02 GMT + - Wed, 28 Apr 2021 21:05:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:03 GMT + - Wed, 28 Apr 2021 21:05:10 GMT server: - openresty strict-transport-security: @@ -384,7 +384,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.2' + - '165.633333' status: code: 200 message: OK @@ -414,7 +414,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:03 GMT + - Wed, 28 Apr 2021 21:05:11 GMT server: - openresty strict-transport-security: @@ -422,7 +422,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '165.5' status: code: 200 message: OK @@ -471,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:03 GMT + - Wed, 28 Apr 2021 21:05:11 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index 990b23bc556a..61c4da710163 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:04 GMT + - Wed, 28 Apr 2021 21:05:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf0199f-a84b-11eb-89a2-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6c688e5b-a865-11eb-a5bc-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf0199f-a84b-11eb-89a2-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6c688e5b-a865-11eb-a5bc-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:17 GMT + - Wed, 28 Apr 2021 21:05:26 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:19 GMT + - Wed, 28 Apr 2021 21:05:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:20 GMT + - Wed, 28 Apr 2021 21:05:28 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.933333' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:20 GMT + - Wed, 28 Apr 2021 21:05:29 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '165.9' status: code: 200 message: OK @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:21 GMT + - Wed, 28 Apr 2021 21:05:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:21 GMT + - Wed, 28 Apr 2021 21:05:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:22 GMT + - Wed, 28 Apr 2021 21:05:30 GMT server: - openresty strict-transport-security: @@ -382,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '166.633333' status: code: 200 message: OK @@ -412,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:22 GMT + - Wed, 28 Apr 2021 21:05:30 GMT server: - openresty strict-transport-security: @@ -420,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.5' + - '166.616667' status: code: 200 message: OK @@ -446,7 +446,7 @@ interactions: "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\":\"4/28/2021 6:03:09 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:05:18 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -462,7 +462,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:22 GMT + - Wed, 28 Apr 2021 21:05:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -511,7 +511,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:23 GMT + - Wed, 28 Apr 2021 21:05:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -526,44 +526,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:03:23 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.483333' - status: - code: 200 - message: OK - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_write&refresh_token=REDACTED headers: @@ -590,7 +552,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:23 GMT + - Wed, 28 Apr 2021 21:05:31 GMT server: - openresty strict-transport-security: @@ -598,7 +560,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.466667' + - '166.6' status: code: 200 message: OK @@ -629,7 +591,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:03:09 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:05:18 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -645,7 +607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:23 GMT + - Wed, 28 Apr 2021 21:05:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -694,7 +656,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:24 GMT + - Wed, 28 Apr 2021 21:05:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -709,44 +671,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:03:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.45' - status: - code: 200 - message: OK - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_write&refresh_token=REDACTED headers: @@ -773,7 +697,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:24 GMT + - Wed, 28 Apr 2021 21:05:32 GMT server: - openresty strict-transport-security: @@ -781,7 +705,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.433333' + - '166.583333' status: code: 200 message: OK @@ -812,7 +736,7 @@ interactions: "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\":\"4/28/2021 6:03:09 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:05:18 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -828,7 +752,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:24 GMT + - Wed, 28 Apr 2021 21:05:32 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index 506749b9f54a..0580dfc01dc4 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:25 GMT + - Wed, 28 Apr 2021 21:05:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-07a1f33a-a84c-11eb-a368-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7900ef1d-a865-11eb-95ac-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-07a1f33a-a84c-11eb-a368-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7900ef1d-a865-11eb-95ac-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:39 GMT + - Wed, 28 Apr 2021 21:05:47 GMT expires: - '-1' pragma: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:40 GMT + - Wed, 28 Apr 2021 21:05:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:42 GMT + - Wed, 28 Apr 2021 21:05:50 GMT server: - openresty strict-transport-security: @@ -168,7 +168,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:42 GMT + - Wed, 28 Apr 2021 21:05:50 GMT server: - openresty strict-transport-security: @@ -206,7 +206,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.716667' status: code: 200 message: OK @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:42 GMT + - Wed, 28 Apr 2021 21:05:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:43 GMT + - Wed, 28 Apr 2021 21:05:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:44 GMT + - Wed, 28 Apr 2021 21:05:51 GMT server: - openresty strict-transport-security: @@ -382,7 +382,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.6' + - '166.216667' status: code: 200 message: OK @@ -412,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:44 GMT + - Wed, 28 Apr 2021 21:05:52 GMT server: - openresty strict-transport-security: @@ -420,7 +420,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.583333' + - '165.733333' status: code: 200 message: OK @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:44 GMT + - Wed, 28 Apr 2021 21:05:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -506,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:44 GMT + - Wed, 28 Apr 2021 21:05:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -521,44 +521,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:03:44 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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED headers: @@ -585,7 +547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:44 GMT + - Wed, 28 Apr 2021 21:05:52 GMT server: - openresty strict-transport-security: @@ -593,7 +555,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.55' + - '165.716667' status: code: 200 message: OK @@ -635,7 +597,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:45 GMT + - Wed, 28 Apr 2021 21:05:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -684,7 +646,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:45 GMT + - Wed, 28 Apr 2021 21:05:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -699,44 +661,6 @@ interactions: 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.0b1 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, 28 Apr 2021 18:03:45 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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED headers: @@ -763,7 +687,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:45 GMT + - Wed, 28 Apr 2021 21:05:53 GMT server: - openresty strict-transport-security: @@ -771,7 +695,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.65' + - '165.7' status: code: 200 message: OK @@ -813,7 +737,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:45 GMT + - Wed, 28 Apr 2021 21:05:53 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index 34b4cc82cd5c..791b6e56741c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:03:47 GMT + - Wed, 28 Apr 2021 21:05:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1447b24a-a84c-11eb-acc0-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-857a2dd1-a865-11eb-9eae-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1447b24a-a84c-11eb-acc0-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-857a2dd1-a865-11eb-9eae-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:01 GMT + - Wed, 28 Apr 2021 21:06:08 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:01 GMT + date: Wed, 28 Apr 2021 21:06:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:02 GMT + date: Wed, 28 Apr 2021 21:06:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:02 GMT + date: Wed, 28 Apr 2021 21:06:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '165.4' status: code: 200 message: OK @@ -185,8 +185,8 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T18:03:52.8351082Z", "lastUpdateTime": - "2021-04-28T18:03:52.8351082Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T21:05:59.2845331Z", "lastUpdateTime": + "2021-04-28T21:05:59.2845331Z", "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", @@ -238,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:03 GMT + date: Wed, 28 Apr 2021 21:06:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +267,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:03 GMT + date: Wed, 28 Apr 2021 21:06:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +295,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:04 GMT + date: Wed, 28 Apr 2021 21:06:12 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -323,11 +323,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:04 GMT + date: Wed, 28 Apr 2021 21:06:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' + x-ms-ratelimit-remaining-calls-per-second: '165.55' status: code: 200 message: OK @@ -348,7 +348,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 18:04:05 GMT + date: Wed, 28 Apr 2021 21:06:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -377,7 +377,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:15 GMT + date: Wed, 28 Apr 2021 21:06:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -387,33 +387,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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, 28 Apr 2021 18:04:15 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -433,11 +406,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:15 GMT + date: Wed, 28 Apr 2021 21:06:23 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '165.55' status: code: 200 message: OK @@ -459,7 +432,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:15 GMT + date: Wed, 28 Apr 2021 21:06:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index df58cccd3768..6b14243c4897 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:16 GMT + date: Wed, 28 Apr 2021 21:06:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:17 GMT + date: Wed, 28 Apr 2021 21:06:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:17 GMT + date: Wed, 28 Apr 2021 21:06:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '165.216667' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:17 GMT + date: Wed, 28 Apr 2021 21:06:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index f0dc73760795..0beddce27df6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:18 GMT + - Wed, 28 Apr 2021 21:06:30 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-27461efe-a84c-11eb-8e39-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9af545bb-a865-11eb-8600-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-27461efe-a84c-11eb-8e39-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9af545bb-a865-11eb-8600-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:32 GMT + - Wed, 28 Apr 2021 21:06:44 GMT expires: - '-1' pragma: @@ -108,7 +108,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:33 GMT + date: Wed, 28 Apr 2021 21:06:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,11 +136,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:34 GMT + date: Wed, 28 Apr 2021 21:06:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.216667' status: code: 200 message: OK @@ -164,11 +164,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:34 GMT + date: Wed, 28 Apr 2021 21:06:46 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.2' status: code: 200 message: OK @@ -189,7 +189,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 18:04:35 GMT + date: Wed, 28 Apr 2021 21:06:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -219,7 +219,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:35 GMT + date: Wed, 28 Apr 2021 21:06:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -229,33 +229,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_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.0b1 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, 28 Apr 2021 18:04: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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -275,11 +248,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:35 GMT + date: Wed, 28 Apr 2021 21:06:47 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -313,7 +286,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:35 GMT + date: Wed, 28 Apr 2021 21:06:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index cef0c78f8f0a..6600b49e302c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:36 GMT + date: Wed, 28 Apr 2021 21:06:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:37 GMT + date: Wed, 28 Apr 2021 21:06:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:37 GMT + date: Wed, 28 Apr 2021 21:06:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.766667' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:37 GMT + date: Wed, 28 Apr 2021 21:06:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index 51b9d9183e85..f975818cda49 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:39 GMT + - Wed, 28 Apr 2021 21:06:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3320fe23-a84c-11eb-b424-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a6eb5a38-a865-11eb-8244-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3320fe23-a84c-11eb-b424-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a6eb5a38-a865-11eb-8244-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:52 GMT + - Wed, 28 Apr 2021 21:07:04 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:53 GMT + date: Wed, 28 Apr 2021 21:07:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:54 GMT + date: Wed, 28 Apr 2021 21:07:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:54 GMT + date: Wed, 28 Apr 2021 21:07:07 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK @@ -238,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:54 GMT + date: Wed, 28 Apr 2021 21:07:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +267,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:55 GMT + date: Wed, 28 Apr 2021 21:07:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +295,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:56 GMT + date: Wed, 28 Apr 2021 21:07:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -323,11 +323,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:56 GMT + date: Wed, 28 Apr 2021 21:07:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.416667' status: code: 200 message: OK @@ -350,7 +350,7 @@ interactions: "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\":\"4/28/2021 6:04:47 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:06:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -358,7 +358,7 @@ interactions: connection: keep-alive content-length: '818' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:56 GMT + date: Wed, 28 Apr 2021 21:07:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index 56e7b8a21bb7..b0a17ed7607a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 18:04:56 GMT + date: Wed, 28 Apr 2021 21:07:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index 969d2a04c0cf..b57971c80851 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:04:59 GMT + - Wed, 28 Apr 2021 21:07:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3e940845-a84c-11eb-9937-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b335649d-a865-11eb-b770-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-3e940845-a84c-11eb-9937-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b335649d-a865-11eb-b770-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:05:12 GMT + - Wed, 28 Apr 2021 21:07:25 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:13 GMT + date: Wed, 28 Apr 2021 21:07:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:14 GMT + date: Wed, 28 Apr 2021 21:07:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:14 GMT + date: Wed, 28 Apr 2021 21:07:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -238,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:15 GMT + date: Wed, 28 Apr 2021 21:07:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +267,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:16 GMT + date: Wed, 28 Apr 2021 21:07:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +295,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:16 GMT + date: Wed, 28 Apr 2021 21:07:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '165.583333' status: code: 200 message: OK @@ -323,11 +323,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:16 GMT + date: Wed, 28 Apr 2021 21:07:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.3' + x-ms-ratelimit-remaining-calls-per-second: '165.566667' status: code: 200 message: OK @@ -353,7 +353,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:17 GMT + date: Wed, 28 Apr 2021 21:07:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index ac4a987a03fc..7f7ca824316e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '214' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:17 GMT + date: Wed, 28 Apr 2021 21:07:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:19 GMT + date: Wed, 28 Apr 2021 21:07:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:19 GMT + date: Wed, 28 Apr 2021 21:07:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '165.533333' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:19 GMT + date: Wed, 28 Apr 2021 21:07:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index 701041fcfc04..70a16604910b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -29,11 +29,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:05:21 GMT + - Wed, 28 Apr 2021 21:07:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-4bf7d6fc-a84c-11eb-a33f-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-bffdfa44-a865-11eb-970b-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -59,7 +59,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-4bf7d6fc-a84c-11eb-a33f-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-bffdfa44-a865-11eb-970b-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:05:34 GMT + - Wed, 28 Apr 2021 21:07:46 GMT expires: - '-1' pragma: @@ -108,7 +108,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:35 GMT + date: Wed, 28 Apr 2021 21:07:47 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,11 +136,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:36 GMT + date: Wed, 28 Apr 2021 21:07:48 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' + x-ms-ratelimit-remaining-calls-per-second: '165.933333' status: code: 200 message: OK @@ -164,11 +164,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:37 GMT + date: Wed, 28 Apr 2021 21:07:48 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.65' + x-ms-ratelimit-remaining-calls-per-second: '165.916667' status: code: 200 message: OK @@ -240,7 +240,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:37 GMT + date: Wed, 28 Apr 2021 21:07:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -269,7 +269,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:38 GMT + date: Wed, 28 Apr 2021 21:07:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -297,11 +297,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:38 GMT + date: Wed, 28 Apr 2021 21:07:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -325,11 +325,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:38 GMT + date: Wed, 28 Apr 2021 21:07:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -367,7 +367,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:39 GMT + date: Wed, 28 Apr 2021 21:07:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 861d1699b7e9..656310a187f1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:05:40 GMT + - Wed, 28 Apr 2021 21:07:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-57af6c07-a84c-11eb-851a-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb4b9944-a865-11eb-ac89-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-57af6c07-a84c-11eb-851a-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb4b9944-a865-11eb-ac89-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:05:53 GMT + - Wed, 28 Apr 2021 21:08:04 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:54 GMT + date: Wed, 28 Apr 2021 21:08:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:55 GMT + date: Wed, 28 Apr 2021 21:08:07 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:55 GMT + date: Wed, 28 Apr 2021 21:08:07 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -238,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:56 GMT + date: Wed, 28 Apr 2021 21:08:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +267,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:56 GMT + date: Wed, 28 Apr 2021 21:08:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +295,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:57 GMT + date: Wed, 28 Apr 2021 21:08:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -323,11 +323,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:57 GMT + date: Wed, 28 Apr 2021 21:08:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -350,7 +350,7 @@ interactions: "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\":\"4/28/2021 6:05:48 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:07:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -358,7 +358,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:57 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -391,7 +391,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:57 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -401,33 +401,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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, 28 Apr 2021 18:05:58 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -447,11 +420,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:58 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.3' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -479,7 +452,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 6:05:48 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:07:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -487,7 +460,7 @@ interactions: connection: keep-alive content-length: '820' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:58 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -520,7 +493,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:58 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -530,33 +503,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- 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.0b1 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, 28 Apr 2021 18:05:58 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -576,11 +522,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:59 GMT + date: Wed, 28 Apr 2021 21:08:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -608,7 +554,7 @@ interactions: "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\":\"4/28/2021 6:05:48 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:07:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -616,7 +562,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:05:59 GMT + date: Wed, 28 Apr 2021 21:08:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index ac1ed1bb061f..02b1afb30bf9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -28,11 +28,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:06:01 GMT + - Wed, 28 Apr 2021 21:08:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63e2cb56-a84c-11eb-83d9-002b67128e4c?api-version=2019-05-01 + - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d7076e37-a865-11eb-a5f5-002b67128e4c?api-version=2019-05-01 pragma: - no-cache server: @@ -58,7 +58,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-63e2cb56-a84c-11eb-83d9-002b67128e4c?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d7076e37-a865-11eb-a5f5-002b67128e4c?api-version=2019-05-01 response: body: string: '{"status": "Succeeded"}' @@ -70,7 +70,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 18:06:13 GMT + - Wed, 28 Apr 2021 21:08:24 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:15 GMT + date: Wed, 28 Apr 2021 21:08:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +135,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:16 GMT + date: Wed, 28 Apr 2021 21:08:26 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -163,11 +163,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:16 GMT + date: Wed, 28 Apr 2021 21:08:26 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -238,7 +238,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:17 GMT + date: Wed, 28 Apr 2021 21:08:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +267,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:17 GMT + date: Wed, 28 Apr 2021 21:08:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +295,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:18 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -323,11 +323,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:18 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -353,7 +353,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:18 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -386,7 +386,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:18 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -396,33 +396,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 -- 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.0b1 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, 28 Apr 2021 18:06:18 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -442,11 +415,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:19 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -477,7 +450,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:19 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -510,7 +483,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:19 GMT + date: Wed, 28 Apr 2021 21:08:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -520,33 +493,6 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 -- 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.0b1 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, 28 Apr 2021 18:06:19 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -566,11 +512,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:19 GMT + date: Wed, 28 Apr 2021 21:08:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -601,7 +547,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 18:06:20 GMT + date: Wed, 28 Apr 2021 21:08:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py index f27b141fc90c..b68e4de32a13 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository.py @@ -21,30 +21,6 @@ class TestContainerRepository(ContainerRegistryTestClass): - # @acr_preparer() - # def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - # repo = self.get_resource_name("repo") - # tag = self.get_resource_name("tag") - # self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - - # client = self.create_container_repository(containerregistry_endpoint, repo) - - # tag_props = client.get_tag_properties(tag) - # assert tag_props is not None - - # client.delete_tag(tag) - # self.sleep(5) - # with pytest.raises(ResourceNotFoundError): - # client.get_tag_properties(tag) - - # @acr_preparer() - # def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - - # with pytest.raises(ResourceNotFoundError): - # client.delete_tag(TO_BE_DELETED) - - # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() def test_get_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) @@ -53,9 +29,7 @@ def test_get_properties(self, containerregistry_endpoint): assert isinstance(properties, RepositoryProperties) assert isinstance(properties.writeable_properties, ContentProperties) assert properties.name == u"library/hello-world" - assert properties.registry == containerregistry_endpoint - # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() def test_set_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") @@ -84,37 +58,29 @@ def test_set_properties(self, containerregistry_endpoint): assert c.can_list == new_properties.writeable_properties.can_list assert c.can_write == new_properties.writeable_properties.can_write - # @acr_preparer() - # def test_get_tag(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # tag = client.get_tag_properties("latest") - - # assert tag is not None - # assert isinstance(tag, ArtifactTagProperties) - @acr_preparer() - def test_list_registry_artifacts(self, containerregistry_endpoint): + def test_list_manifests(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") count = 0 - for artifact in client.list_registry_artifacts(): + for artifact in client.list_manifests(): assert artifact is not None assert isinstance(artifact, ArtifactManifestProperties) assert artifact.created_on is not None assert isinstance(artifact.created_on, datetime) assert artifact.last_updated_on is not None assert isinstance(artifact.last_updated_on, datetime) + assert artifact.repository_name == "library/busybox" count += 1 assert count > 0 @acr_preparer() - def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): + def test_list_manifests_by_page(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") results_per_page = 2 - pages = client.list_registry_artifacts(results_per_page=results_per_page) + pages = client.list_manifests(results_per_page=results_per_page) page_count = 0 for page in pages.by_page(): reg_count = 0 @@ -126,12 +92,12 @@ def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): assert page_count >= 1 @acr_preparer() - def test_list_registry_artifacts_descending(self, containerregistry_endpoint): + def test_list_manifests_descending(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 - for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING): + for artifact in client.list_manifests(order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING): if prev_last_updated_on: assert artifact.last_updated_on < prev_last_updated_on prev_last_updated_on = artifact.last_updated_on @@ -140,12 +106,12 @@ def test_list_registry_artifacts_descending(self, containerregistry_endpoint): assert count > 0 @acr_preparer() - def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): + def test_list_manifests_ascending(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 - for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING): + for artifact in client.list_manifests(order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING): if prev_last_updated_on: assert artifact.last_updated_on > prev_last_updated_on prev_last_updated_on = artifact.last_updated_on @@ -153,162 +119,6 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): assert count > 0 - # @acr_preparer() - # def test_get_registry_artifact_properties(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # properties = client.get_registry_artifact_properties("latest") - - # assert isinstance(properties, ArtifactManifestProperties) - # assert isinstance(properties.created_on, datetime) - # assert isinstance(properties.last_updated_on, datetime) - - # @acr_preparer() - # def test_list_tags(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # tags = client.list_tags() - # assert isinstance(tags, ItemPaged) - # count = 0 - # for tag in tags: - # count += 1 - - # assert count > 0 - - # @acr_preparer() - # def test_list_tags_by_page(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # results_per_page = 2 - - # pages = client.list_tags(results_per_page=results_per_page) - # page_count = 0 - # for page in pages.by_page(): - # tag_count = 0 - # for tag in page: - # tag_count += 1 - # assert tag_count <= results_per_page - # page_count += 1 - - # assert page_count >= 1 - - # @acr_preparer() - # def test_list_tags_descending(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # prev_last_updated_on = None - # count = 0 - # for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - # if prev_last_updated_on: - # assert tag.last_updated_on < prev_last_updated_on - # prev_last_updated_on = tag.last_updated_on - # count += 1 - - # assert count > 0 - - # @acr_preparer() - # def test_list_tags_ascending(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # prev_last_updated_on = None - # count = 0 - # for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - # if prev_last_updated_on: - # assert tag.last_updated_on > prev_last_updated_on - # prev_last_updated_on = tag.last_updated_on - # count += 1 - - # assert count > 0 - - # @acr_preparer() - # def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("repo") - # tag_identifier = self.get_resource_name("tag") - # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - # client = self.create_container_repository(containerregistry_endpoint, repository) - - # tag_props = client.get_tag_properties(tag_identifier) - # permissions = tag_props.writeable_properties - - # received = client.set_tag_properties( - # tag_identifier, - # ContentProperties( - # can_delete=False, - # can_list=False, - # can_read=False, - # can_write=False, - # ), - # ) - - # assert not received.writeable_properties.can_write - # assert not received.writeable_properties.can_read - # assert not received.writeable_properties.can_list - # assert not received.writeable_properties.can_delete - - # client.set_tag_properties( - # tag_identifier, - # ContentProperties( - # can_delete=True, - # can_list=True, - # can_read=True, - # can_write=True, - # ), - # ) - - # @acr_preparer() - # def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - - # with pytest.raises(ResourceNotFoundError): - # client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - # @acr_preparer() - # def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("reposetmani") - # tag_identifier = self.get_resource_name("tag") - # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - # client = self.create_container_repository(containerregistry_endpoint, repository) - - # for artifact in client.list_registry_artifacts(): - # permissions = artifact.writeable_properties - - # received_permissions = client.set_manifest_properties( - # artifact.digest, - # ContentProperties( - # can_delete=False, - # can_list=False, - # can_read=False, - # can_write=False, - # ), - # ) - - # assert not received_permissions.writeable_properties.can_delete - # assert not received_permissions.writeable_properties.can_read - # assert not received_permissions.writeable_properties.can_list - # assert not received_permissions.writeable_properties.can_write - - # # Reset and delete - # client.set_manifest_properties( - # artifact.digest, - # ContentProperties( - # can_delete=True, - # can_list=True, - # can_read=True, - # can_write=True, - # ), - # ) - # client.delete() - # break - - # @acr_preparer() - # def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - - # with pytest.raises(ResourceNotFoundError): - # client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - @acr_preparer() def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): self.import_image(HELLO_WORLD, [TO_BE_DELETED]) @@ -331,24 +141,3 @@ def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, DOES_NOT_EXIST) with pytest.raises(ResourceNotFoundError): repo_client.delete() - - # @acr_preparer() - # def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("repo") - # self.import_image(HELLO_WORLD, [repository]) - - # repo_client = self.create_container_repository(containerregistry_endpoint, repository) - - # count = 0 - # for artifact in repo_client.list_registry_artifacts(): - # if count == 0: - # repo_client.delete_registry_artifact(artifact.digest) - # count += 1 - # assert count > 0 - - # artifacts = [] - # for a in repo_client.list_registry_artifacts(): - # artifacts.append(a) - - # assert len(artifacts) > 0 - # assert len(artifacts) == count - 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index f373e2aec905..ff8430afd49f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -24,58 +24,6 @@ class TestContainerRepository(AsyncContainerRegistryTestClass): - - # @acr_preparer() - # async def test_list_tags(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # tags = client.list_tags() - # assert isinstance(tags, AsyncItemPaged) - # count = 0 - # async for tag in tags: - # count += 1 - - # assert count > 0 - - # @acr_preparer() - # async def test_list_tags_by_page(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # results_per_page = 2 - - # pages = client.list_tags(results_per_page=results_per_page) - # page_count = 0 - # async for page in pages.by_page(): - # tag_count = 0 - # async for tag in page: - # tag_count += 1 - # assert tag_count <= results_per_page - # page_count += 1 - - # assert page_count >= 1 - - # @acr_preparer() - # async def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - # self.import_image(HELLO_WORLD, ["{}:{}".format(HELLO_WORLD, TO_BE_DELETED)]) - - # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - - # tag = await client.get_tag_properties(TO_BE_DELETED) - # assert tag is not None - - # await client.delete_tag(TO_BE_DELETED) - # self.sleep(5) - - # with pytest.raises(ResourceNotFoundError): - # await client.get_tag_properties(TO_BE_DELETED) - - # @acr_preparer() - # async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) - - # with pytest.raises(ResourceNotFoundError): - # await client.delete_tag(TO_BE_DELETED) - @acr_preparer() async def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): self.import_image(HELLO_WORLD, [TO_BE_DELETED]) @@ -103,167 +51,29 @@ async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): with pytest.raises(ResourceNotFoundError): await repo_client.delete() - # @acr_preparer() - # async def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("repo") - # self.import_image(HELLO_WORLD, [repository]) - - # repo_client = self.create_container_repository(containerregistry_endpoint, repository) - - # count = 0 - # async for artifact in repo_client.list_registry_artifacts(): - # if count == 0: - # await repo_client.delete_registry_artifact(artifact.digest) - # count += 1 - # assert count > 0 - - # artifacts = [] - # async for a in repo_client.list_registry_artifacts(): - # artifacts.append(a) - - # assert len(artifacts) > 0 - # assert len(artifacts) == count - 1 - - # @acr_preparer() - # async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("repo") - # tag_identifier = self.get_resource_name("tag") - # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - # client = self.create_container_repository(containerregistry_endpoint, repository) - - # tag_props = await client.get_tag_properties(tag_identifier) - # permissions = tag_props.writeable_properties - - # received = await client.set_tag_properties( - # tag_identifier, - # ContentProperties( - # can_delete=False, - # can_list=False, - # can_read=False, - # can_write=False, - # ), - # ) - - # assert not received.writeable_properties.can_write - # assert not received.writeable_properties.can_read - # assert not received.writeable_properties.can_list - # assert not received.writeable_properties.can_delete - - # # Reset them - # await client.set_tag_properties( - # tag_identifier, - # ContentProperties( - # can_delete=True, - # can_list=True, - # can_read=True, - # can_write=True, - # ), - # ) - - # @acr_preparer() - # async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - - # with pytest.raises(ResourceNotFoundError): - # await client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - # @acr_preparer() - # async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - # repository = self.get_resource_name("reposet") - # tag_identifier = self.get_resource_name("tag") - # self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - # client = self.create_container_repository(containerregistry_endpoint, repository) - - # async for artifact in client.list_registry_artifacts(): - # permissions = artifact.writeable_properties - - # received_permissions = await client.set_manifest_properties( - # artifact.digest, - # ContentProperties( - # can_delete=False, - # can_list=False, - # can_read=False, - # can_write=False, - # ), - # ) - # assert not received_permissions.writeable_properties.can_delete - # assert not received_permissions.writeable_properties.can_read - # assert not received_permissions.writeable_properties.can_list - # assert not received_permissions.writeable_properties.can_write - - # # Reset and delete - # await client.set_manifest_properties( - # artifact.digest, - # ContentProperties( - # can_delete=True, - # can_list=True, - # can_read=True, - # can_write=True, - # ), - # ) - # await client.delete() - - # break - - # @acr_preparer() - # async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.get_resource_name("repo")) - - # with pytest.raises(ResourceNotFoundError): - # await client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - - # @acr_preparer() - # async def test_list_tags_descending(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # prev_last_updated_on = None - # count = 0 - # async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - # if prev_last_updated_on: - # assert tag.last_updated_on < prev_last_updated_on - # prev_last_updated_on = tag.last_updated_on - # count += 1 - - # assert count > 0 - - # @acr_preparer() - # async def test_list_tags_ascending(self, containerregistry_endpoint): - # client = self.create_container_repository(containerregistry_endpoint, self.repository) - - # prev_last_updated_on = None - # count = 0 - # async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - # if prev_last_updated_on: - # assert tag.last_updated_on > prev_last_updated_on - # prev_last_updated_on = tag.last_updated_on - # count += 1 - - # assert count > 0 - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): + async def test_list_manifests(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") count = 0 - async for artifact in client.list_registry_artifacts(): + async for artifact in client.list_manifests(): assert artifact is not None assert isinstance(artifact, ArtifactManifestProperties) assert artifact.created_on is not None assert isinstance(artifact.created_on, datetime) assert artifact.last_updated_on is not None assert isinstance(artifact.last_updated_on, datetime) + assert artifact.repository_name == "library/busybox" count += 1 assert count > 0 @acr_preparer() - async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): + async def test_list_manifests_by_page(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") results_per_page = 2 - pages = client.list_registry_artifacts(results_per_page=results_per_page) + pages = client.list_manifests(results_per_page=results_per_page) page_count = 0 async for page in pages.by_page(): reg_count = 0 @@ -275,12 +85,12 @@ async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint) assert page_count >= 1 @acr_preparer() - async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): + async def test_list_manifests_descending(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 - async for artifact in client.list_registry_artifacts( + async for artifact in client.list_manifests( order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING ): if prev_last_updated_on: @@ -291,12 +101,12 @@ async def test_list_registry_artifacts_descending(self, containerregistry_endpoi assert count > 0 @acr_preparer() - async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): + async def test_list_manifests_ascending(self, containerregistry_endpoint): client = self.create_container_repository(containerregistry_endpoint, "library/busybox") prev_last_updated_on = None count = 0 - async for artifact in client.list_registry_artifacts( + async for artifact in client.list_manifests( order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING ): if prev_last_updated_on: @@ -306,7 +116,6 @@ async def test_list_registry_artifacts_ascending(self, containerregistry_endpoin assert count > 0 - # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() async def test_get_properties(self, containerregistry_endpoint): repo_client = self.create_container_repository(containerregistry_endpoint, HELLO_WORLD) @@ -315,9 +124,7 @@ async def test_get_properties(self, containerregistry_endpoint): assert isinstance(properties, RepositoryProperties) assert isinstance(properties.writeable_properties, ContentProperties) assert properties.name == u"library/hello-world" - assert properties.registry == containerregistry_endpoint - # @pytest.mark.live_test_only # This needs to be removed in the future @acr_preparer() async def test_set_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py index 3fc21f66de90..6e12835b30d8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py @@ -21,7 +21,7 @@ class TestContainerRepository(ContainerRegistryTestClass): def set_up(self, endpoint, name): repo_client = self.create_container_repository(endpoint, name) - for artifact in repo_client.list_registry_artifacts(): + for artifact in repo_client.list_manifests(): return repo_client.get_artifact(artifact.digest) @acr_preparer() @@ -36,6 +36,7 @@ def test_get_manifest_properties(self, containerregistry_endpoint): assert isinstance(properties, ArtifactManifestProperties) assert isinstance(properties.writeable_properties, ContentProperties) + assert properties.repository_name == repo @acr_preparer() def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py index 5b2fa18b3358..14d1c49dd71a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py @@ -21,7 +21,7 @@ class TestContainerRepository(AsyncContainerRegistryTestClass): async def set_up(self, endpoint, name): repo_client = self.create_container_repository(endpoint, name) - async for artifact in repo_client.list_registry_artifacts(): + async for artifact in repo_client.list_manifests(): return repo_client.get_artifact(artifact.digest) @acr_preparer() @@ -36,6 +36,7 @@ async def test_get_manifest_properties(self, containerregistry_endpoint): assert isinstance(properties, ArtifactManifestProperties) assert isinstance(properties.writeable_properties, ContentProperties) + assert properties.repository_name == repo @acr_preparer() async def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 3f940a075a8f..481e11d1677d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -202,7 +202,7 @@ def _clean_up(self, endpoint): except: pass - for manifest in repo_client.list_registry_artifacts(): + for manifest in repo_client.list_manifests(): try: p = manifest.writeable_properties p.can_delete = True @@ -222,18 +222,10 @@ def get_credential(self): return FakeTokenCredential() def create_registry_client(self, endpoint, **kwargs): - c = ContainerRegistryClient(endpoint=endpoint, credential=self.get_credential(), **kwargs) - logger = logging.getLogger("azure") - logger.setLevel(logging.WARNING) - logger.propagate = True - return c + return ContainerRegistryClient(endpoint=endpoint, credential=self.get_credential(), **kwargs) def create_container_repository(self, endpoint, name, **kwargs): - c = ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) - logger = logging.getLogger("azure") - logger.setLevel(logging.WARNING) - logger.propagate = True - return c + return ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) def assert_content_permission(self, content_perm, content_perm2): assert isinstance(content_perm, ContentProperties) @@ -271,10 +263,6 @@ def assert_tag( if repository: assert tag.repository == repository - def assert_registry_artifact(self, tag_or_digest, expected_tag_or_digest): - assert isinstance(tag_or_digest, ArtifactManifestProperties) - assert tag_or_digest == expected_tag_or_digest - # Moving this out of testcase so the fixture and individual tests can use it def import_image(repository, tags): From f7caebdd74533a02bf766e370783c21236d31692 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 17:26:10 -0400 Subject: [PATCH 16/42] fixing up more tests again! --- ...egistry_client.test_delete_repository.yaml | 109 ++------------ ...test_delete_repository_does_not_exist.yaml | 12 +- ...try_client.test_list_repository_names.yaml | 12 +- ...nt.test_list_repository_names_by_page.yaml | 100 ++++++------- ...lient.test_transport_closed_only_once.yaml | 20 +-- ...y_client_async.test_delete_repository.yaml | 109 ++------------ ...test_delete_repository_does_not_exist.yaml | 12 +- ...ient_async.test_list_repository_names.yaml | 12 +- ...nc.test_list_repository_names_by_page.yaml | 100 ++++++------- ...async.test_transport_closed_only_once.yaml | 20 +-- ...ner_repository.test_delete_repository.yaml | 121 +++------------- ...y.test_delete_repository_doesnt_exist.yaml | 12 +- ...tainer_repository.test_get_properties.yaml | 12 +- ...tainer_repository.test_list_manifests.yaml | 12 +- ...ository.test_list_manifests_ascending.yaml | 12 +- ...epository.test_list_manifests_by_page.yaml | 44 +++--- ...sitory.test_list_manifests_descending.yaml | 12 +- ...tainer_repository.test_set_properties.yaml | 117 ++------------- ...pository_async.test_delete_repository.yaml | 121 +++------------- ...c.test_delete_repository_doesnt_exist.yaml | 12 +- ..._repository_async.test_get_properties.yaml | 12 +- ..._repository_async.test_list_manifests.yaml | 12 +- ...y_async.test_list_manifests_ascending.yaml | 12 +- ...ory_async.test_list_manifests_by_page.yaml | 44 +++--- ..._async.test_list_manifests_descending.yaml | 12 +- ..._repository_async.test_set_properties.yaml | 117 ++------------- ...rtifact.test_delete_registry_artifact.yaml | 125 +++------------- ...lete_registry_artifact_does_not_exist.yaml | 12 +- ...est_registry_artifact.test_delete_tag.yaml | 110 ++------------ ...tifact.test_delete_tag_does_not_exist.yaml | 12 +- ...artifact.test_get_manifest_properties.yaml | 115 ++------------- ...et_manifest_properties_does_not_exist.yaml | 2 +- ...stry_artifact.test_get_tag_properties.yaml | 113 ++------------- ...est_get_tag_properties_does_not_exist.yaml | 12 +- ...test_registry_artifact.test_list_tags.yaml | 114 ++------------- ...artifact.test_set_manifest_properties.yaml | 135 +++--------------- ...stry_artifact.test_set_tag_properties.yaml | 129 +++-------------- ...t_async.test_delete_registry_artifact.yaml | 125 +++------------- ...lete_registry_artifact_does_not_exist.yaml | 12 +- ...gistry_artifact_async.test_delete_tag.yaml | 110 ++------------ ..._async.test_delete_tag_does_not_exist.yaml | 12 +- ...ct_async.test_get_manifest_properties.yaml | 115 ++------------- ...et_manifest_properties_does_not_exist.yaml | 2 +- ...rtifact_async.test_get_tag_properties.yaml | 113 ++------------- ...est_get_tag_properties_does_not_exist.yaml | 12 +- ...egistry_artifact_async.test_list_tags.yaml | 110 ++------------ ...ct_async.test_set_manifest_properties.yaml | 135 +++--------------- ...rtifact_async.test_set_tag_properties.yaml | 129 +++-------------- .../tests/test_container_registry_client.py | 2 - .../test_container_registry_client_async.py | 2 - .../azure-containerregistry/tests/testcase.py | 11 ++ 51 files changed, 591 insertions(+), 2368 deletions(-) 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 index 0ce46cc41bb3..126f61165eea 100644 --- 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 @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["to_be_deleted"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '142' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:00:12 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b98b8700-a864-11eb-a44f-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b98b8700-a864-11eb-a44f-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:00:25 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -121,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:27 GMT + - Wed, 28 Apr 2021 21:15:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -162,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:28 GMT + - Wed, 28 Apr 2021 21:15:55 GMT server: - openresty strict-transport-security: @@ -170,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.366667' status: code: 200 message: OK @@ -200,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:28 GMT + - Wed, 28 Apr 2021 21:15:55 GMT server: - openresty strict-transport-security: @@ -208,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.35' status: code: 200 message: OK @@ -253,7 +164,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:30 GMT + - Wed, 28 Apr 2021 21:15:58 GMT docker-distribution-api-version: - registry/2.0 server: @@ -299,7 +210,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:31 GMT + - Wed, 28 Apr 2021 21:15:58 GMT docker-distribution-api-version: - registry/2.0 server: @@ -340,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:31 GMT + - Wed, 28 Apr 2021 21:15:59 GMT server: - openresty strict-transport-security: @@ -348,7 +259,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.333333' status: code: 200 message: OK @@ -385,7 +296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:31 GMT + - Wed, 28 Apr 2021 21:15:59 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 56736cf8ea22..721611d97802 100644 --- 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 @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:32 GMT + - Wed, 28 Apr 2021 21:15:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:33 GMT + - Wed, 28 Apr 2021 21:16:01 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.466667' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:33 GMT + - Wed, 28 Apr 2021 21:16:01 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.333333' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:33 GMT + - Wed, 28 Apr 2021 21:16:01 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 8967f35ad5cc..b86fcc582b17 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:34 GMT + - Wed, 28 Apr 2021 21:16:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:35 GMT + - Wed, 28 Apr 2021 21:16:03 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '166.3' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:36 GMT + - Wed, 28 Apr 2021 21:16:04 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' + - '166.133333' status: code: 200 message: OK @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:36 GMT + - Wed, 28 Apr 2021 21:16:04 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 7f16f5ee6e73..7abbeb945f4b 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:37 GMT + - Wed, 28 Apr 2021 21:16:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:38 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:38 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.616667' status: code: 200 message: OK @@ -150,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:38 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 link: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -237,7 +237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -245,7 +245,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.6' status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 link: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -365,7 +365,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -373,7 +373,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '166.583333' status: code: 200 message: OK @@ -406,7 +406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:39 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 link: @@ -452,7 +452,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -493,7 +493,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -501,7 +501,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.566667' status: code: 200 message: OK @@ -534,7 +534,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 link: @@ -580,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -621,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -629,7 +629,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '166.55' status: code: 200 message: OK @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:40 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -708,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -749,7 +749,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:08 GMT server: - openresty strict-transport-security: @@ -757,7 +757,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' + - '166.533333' status: code: 200 message: OK @@ -790,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -836,7 +836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -877,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:08 GMT server: - openresty strict-transport-security: @@ -885,7 +885,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '166.516667' status: code: 200 message: OK @@ -918,7 +918,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -964,7 +964,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:41 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1005,7 +1005,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:09 GMT server: - openresty strict-transport-security: @@ -1013,7 +1013,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.5' status: code: 200 message: OK @@ -1046,7 +1046,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1092,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1133,7 +1133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:09 GMT server: - openresty strict-transport-security: @@ -1141,7 +1141,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.483333' status: code: 200 message: OK @@ -1174,7 +1174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1220,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:42 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1261,7 +1261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:10 GMT server: - openresty strict-transport-security: @@ -1269,7 +1269,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '166.466667' status: code: 200 message: OK @@ -1302,7 +1302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1348,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1389,7 +1389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:10 GMT server: - openresty strict-transport-security: @@ -1397,7 +1397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.45' status: code: 200 message: OK @@ -1430,7 +1430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1476,7 +1476,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:43 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1517,7 +1517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:44 GMT + - Wed, 28 Apr 2021 21:16:11 GMT server: - openresty strict-transport-security: @@ -1525,7 +1525,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.433333' status: code: 200 message: OK @@ -1558,7 +1558,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:44 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index 733ec04cc49c..2b66155d109b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:44 GMT + - Wed, 28 Apr 2021 21:16:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:46 GMT + - Wed, 28 Apr 2021 21:16:13 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.2' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:46 GMT + - Wed, 28 Apr 2021 21:16:13 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.8' status: code: 200 message: OK @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:46 GMT + - Wed, 28 Apr 2021 21:16:14 GMT docker-distribution-api-version: - registry/2.0 server: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:46 GMT + - Wed, 28 Apr 2021 21:16:14 GMT docker-distribution-api-version: - registry/2.0 server: @@ -239,7 +239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:47 GMT + - Wed, 28 Apr 2021 21:16:14 GMT server: - openresty strict-transport-security: @@ -247,7 +247,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '165.783333' status: code: 200 message: OK @@ -284,7 +284,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:00:47 GMT + - Wed, 28 Apr 2021 21:16:14 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 4a840818ef30..6dd66f5dad68 100644 --- 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 @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["to_be_deleted"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '142' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:00:49 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cf08e7fa-a864-11eb-967a-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cf08e7fa-a864-11eb-967a-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:01:01 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:02 GMT + date: Wed, 28 Apr 2021 21:16:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:03 GMT + date: Wed, 28 Apr 2021 21:16:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:03 GMT + date: Wed, 28 Apr 2021 21:16:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -199,7 +110,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:06 GMT + date: Wed, 28 Apr 2021 21:16:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -228,7 +139,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:06 GMT + date: Wed, 28 Apr 2021 21:16:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -257,11 +168,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:06 GMT + date: Wed, 28 Apr 2021 21:16:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -287,7 +198,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:06 GMT + date: Wed, 28 Apr 2021 21:16:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 0e8a8f2b4637..714d7261a712 100644 --- 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 @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:06 GMT + date: Wed, 28 Apr 2021 21:16:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:08 GMT + date: Wed, 28 Apr 2021 21:16:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:08 GMT + date: Wed, 28 Apr 2021 21:16:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.066667' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:08 GMT + date: Wed, 28 Apr 2021 21:16:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 74e7639dc24c..f328ef4fbde4 100644 --- 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 @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:08 GMT + date: Wed, 28 Apr 2021 21:16:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:09 GMT + date: Wed, 28 Apr 2021 21:16:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:10 GMT + date: Wed, 28 Apr 2021 21:16:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:10 GMT + date: Wed, 28 Apr 2021 21:16:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index d3cf6aeb90ec..10a577717d62 100644 --- 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 @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:10 GMT + date: Wed, 28 Apr 2021 21:16:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -100,7 +100,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -129,7 +129,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -158,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -184,7 +184,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -213,7 +213,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -242,11 +242,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:12 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -268,7 +268,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -297,7 +297,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -326,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '165.766667' status: code: 200 message: OK @@ -352,7 +352,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -381,7 +381,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -410,11 +410,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:13 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -436,7 +436,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -465,7 +465,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -494,11 +494,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -520,7 +520,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -549,7 +549,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -578,11 +578,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -604,7 +604,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -633,7 +633,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -662,11 +662,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:14 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' + x-ms-ratelimit-remaining-calls-per-second: '165.7' status: code: 200 message: OK @@ -688,7 +688,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -717,7 +717,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -746,11 +746,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '165.683333' status: code: 200 message: OK @@ -772,7 +772,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -801,7 +801,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -830,11 +830,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -856,7 +856,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:15 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -885,7 +885,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -914,11 +914,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' + x-ms-ratelimit-remaining-calls-per-second: '165.65' status: code: 200 message: OK @@ -940,7 +940,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -969,7 +969,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -998,11 +998,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -1024,7 +1024,7 @@ interactions: connection: keep-alive content-length: '22' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:16 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index 2463754ec14e..ab34dc50d1b0 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:17 GMT + date: Wed, 28 Apr 2021 21:16:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -132,7 +132,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -161,11 +161,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -191,7 +191,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:01:18 GMT + date: Wed, 28 Apr 2021 21:16:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index f20282c411ff..8174a75cfa5e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["to_be_deleted"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '142' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:01:20 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e1d99fe9-a864-11eb-bffd-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e1d99fe9-a864-11eb-bffd-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:01:33 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:34 GMT + - Wed, 28 Apr 2021 21:17:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:35 GMT + - Wed, 28 Apr 2021 21:17:02 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' + - '166.116667' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:36 GMT + - Wed, 28 Apr 2021 21:17:03 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.15' + - '166.1' status: code: 200 message: OK @@ -243,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:36 GMT + - Wed, 28 Apr 2021 21:17:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -289,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:36 GMT + - Wed, 28 Apr 2021 21:17:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -330,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:38 GMT + - Wed, 28 Apr 2021 21:17:05 GMT server: - openresty strict-transport-security: @@ -338,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.566667' status: code: 200 message: OK @@ -368,7 +279,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:38 GMT + - Wed, 28 Apr 2021 21:17:05 GMT server: - openresty strict-transport-security: @@ -376,7 +287,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '166.55' status: code: 200 message: OK @@ -421,7 +332,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:40 GMT + - Wed, 28 Apr 2021 21:17:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -467,7 +378,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:40 GMT + - Wed, 28 Apr 2021 21:17:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -508,7 +419,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:40 GMT + - Wed, 28 Apr 2021 21:17:07 GMT server: - openresty strict-transport-security: @@ -516,7 +427,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.133333' + - '166.05' status: code: 200 message: OK @@ -553,7 +464,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:41 GMT + - Wed, 28 Apr 2021 21:17:07 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index 26c23d43faab..2d3e2d66d469 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:41 GMT + - Wed, 28 Apr 2021 21:17:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:43 GMT + - Wed, 28 Apr 2021 21:17:09 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.15' + - '166.083333' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:43 GMT + - Wed, 28 Apr 2021 21:17:10 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.95' + - '165.7' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:43 GMT + - Wed, 28 Apr 2021 21:17:10 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index 4ff48da85a12..256c1bece8bb 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:44 GMT + - Wed, 28 Apr 2021 21:17:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:45 GMT + - Wed, 28 Apr 2021 21:17:13 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.183333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:46 GMT + - Wed, 28 Apr 2021 21:17:13 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '166.166667' status: code: 200 message: OK @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:46 GMT + - Wed, 28 Apr 2021 21:17:13 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml index 6ace22bd942b..4b1d7c92f09b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:46 GMT + - Wed, 28 Apr 2021 21:17:14 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:48 GMT + - Wed, 28 Apr 2021 21:17:15 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.533333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:48 GMT + - Wed, 28 Apr 2021 21:17:15 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.516667' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:49 GMT + - Wed, 28 Apr 2021 21:17:16 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml index cfaa49ee6fae..3e73feb8d70f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:49 GMT + - Wed, 28 Apr 2021 21:17:16 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:51 GMT + - Wed, 28 Apr 2021 21:17:18 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.433333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:51 GMT + - Wed, 28 Apr 2021 21:17:18 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.333333' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:52 GMT + - Wed, 28 Apr 2021 21:17:18 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml index 56f285720888..8e06b6dcbf49 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:52 GMT + - Wed, 28 Apr 2021 21:17:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:54 GMT + - Wed, 28 Apr 2021 21:17:20 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.216667' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:55 GMT + - Wed, 28 Apr 2021 21:17:21 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '166.1' status: code: 200 message: OK @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:55 GMT + - Wed, 28 Apr 2021 21:17:21 GMT docker-distribution-api-version: - registry/2.0 link: @@ -208,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:56 GMT + - Wed, 28 Apr 2021 21:17:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -249,7 +249,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:56 GMT + - Wed, 28 Apr 2021 21:17:21 GMT server: - openresty strict-transport-security: @@ -257,7 +257,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.083333' status: code: 200 message: OK @@ -301,7 +301,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:56 GMT + - Wed, 28 Apr 2021 21:17:21 GMT docker-distribution-api-version: - registry/2.0 link: @@ -348,7 +348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:56 GMT + - Wed, 28 Apr 2021 21:17:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -389,7 +389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:56 GMT + - Wed, 28 Apr 2021 21:17:22 GMT server: - openresty strict-transport-security: @@ -397,7 +397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.066667' status: code: 200 message: OK @@ -440,7 +440,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:22 GMT docker-distribution-api-version: - registry/2.0 link: @@ -487,7 +487,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -528,7 +528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:22 GMT server: - openresty strict-transport-security: @@ -536,7 +536,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '166.05' status: code: 200 message: OK @@ -580,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:23 GMT docker-distribution-api-version: - registry/2.0 link: @@ -627,7 +627,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -668,7 +668,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:57 GMT + - Wed, 28 Apr 2021 21:17:23 GMT server: - openresty strict-transport-security: @@ -676,7 +676,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.033333' status: code: 200 message: OK @@ -720,7 +720,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:58 GMT + - Wed, 28 Apr 2021 21:17:23 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml index c687b20249e1..f7c60494fb7e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:01:58 GMT + - Wed, 28 Apr 2021 21:17:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:00 GMT + - Wed, 28 Apr 2021 21:17:25 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.616667' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:00 GMT + - Wed, 28 Apr 2021 21:17:25 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.466667' status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:00 GMT + - Wed, 28 Apr 2021 21:17:26 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 424a0b9a496b..55631e228e0a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repob22512e7:tagb22512e7"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:02:03 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf2053c-a864-11eb-854d-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-faf2053c-a864-11eb-854d-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:02:15 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:17 GMT + - Wed, 28 Apr 2021 21:17:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:18 GMT + - Wed, 28 Apr 2021 21:17:42 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.1' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:18 GMT + - Wed, 28 Apr 2021 21:17:43 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.083333' status: code: 200 message: OK @@ -243,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:18 GMT + - Wed, 28 Apr 2021 21:17:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -292,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:19 GMT + - Wed, 28 Apr 2021 21:17:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:19 GMT + - Wed, 28 Apr 2021 21:17:43 GMT server: - openresty strict-transport-security: @@ -341,7 +252,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '166.066667' status: code: 200 message: OK @@ -383,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:19 GMT + - Wed, 28 Apr 2021 21:17:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -432,7 +343,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:19 GMT + - Wed, 28 Apr 2021 21:17:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -473,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:19 GMT + - Wed, 28 Apr 2021 21:17:44 GMT server: - openresty strict-transport-security: @@ -481,7 +392,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.05' status: code: 200 message: OK @@ -523,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:02:20 GMT + - Wed, 28 Apr 2021 21:17:44 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index d95101a618ec..3fa22e0d179d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["to_be_deleted"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '142' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:02:21 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0662a6d0-a865-11eb-a334-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0662a6d0-a865-11eb-a334-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:02:34 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:35 GMT + date: Wed, 28 Apr 2021 21:17:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:36 GMT + date: Wed, 28 Apr 2021 21:18:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '165.983333' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:36 GMT + date: Wed, 28 Apr 2021 21:18:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '165.966667' status: code: 200 message: OK @@ -193,7 +104,7 @@ interactions: connection: keep-alive content-length: '370' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:36 GMT + date: Wed, 28 Apr 2021 21:18:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,7 +132,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:37 GMT + date: Wed, 28 Apr 2021 21:18:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -249,11 +160,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:38 GMT + date: Wed, 28 Apr 2021 21:18:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK @@ -277,11 +188,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:38 GMT + date: Wed, 28 Apr 2021 21:18:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK @@ -313,7 +224,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:40 GMT + date: Wed, 28 Apr 2021 21:18:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -342,7 +253,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:40 GMT + date: Wed, 28 Apr 2021 21:18:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -371,11 +282,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:40 GMT + date: Wed, 28 Apr 2021 21:18:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '165.95' status: code: 200 message: OK @@ -401,7 +312,7 @@ interactions: connection: keep-alive content-length: '354' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:40 GMT + date: Wed, 28 Apr 2021 21:18:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index 99a6144e651f..ee2616754b2e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:41 GMT + date: Wed, 28 Apr 2021 21:18:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:42 GMT + date: Wed, 28 Apr 2021 21:18:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:42 GMT + date: Wed, 28 Apr 2021 21:18:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:42 GMT + date: Wed, 28 Apr 2021 21:18:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index 507fd221d14e..137fee8eab59 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:42 GMT + date: Wed, 28 Apr 2021 21:18:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:43 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:44 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.966667' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:44 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml index b0a6f7931c35..8c7b84423738 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:44 GMT + date: Wed, 28 Apr 2021 21:18:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:45 GMT + date: Wed, 28 Apr 2021 21:18:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:45 GMT + date: Wed, 28 Apr 2021 21:18:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:46 GMT + date: Wed, 28 Apr 2021 21:18:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml index 0eeeb6325138..633f4c9f3b83 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:46 GMT + date: Wed, 28 Apr 2021 21:18:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:47 GMT + date: Wed, 28 Apr 2021 21:18:12 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:48 GMT + date: Wed, 28 Apr 2021 21:18:12 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '165.933333' status: code: 200 message: OK @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:48 GMT + date: Wed, 28 Apr 2021 21:18:12 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml index 9b7b0ac42b2b..13d3b7ee318d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:48 GMT + date: Wed, 28 Apr 2021 21:18:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: connection: keep-alive content-length: '931' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -141,7 +141,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -170,11 +170,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -207,7 +207,7 @@ interactions: connection: keep-alive content-length: '927' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -237,7 +237,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:50 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -266,11 +266,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -302,7 +302,7 @@ interactions: connection: keep-alive content-length: '889' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -332,7 +332,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -361,11 +361,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -398,7 +398,7 @@ interactions: connection: keep-alive content-length: '936' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -428,7 +428,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -457,11 +457,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:51 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -494,7 +494,7 @@ interactions: connection: keep-alive content-length: '929' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:52 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml index 1637b44bc03f..d6eb0a82b091 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:52 GMT + date: Wed, 28 Apr 2021 21:18:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:53 GMT + date: Wed, 28 Apr 2021 21:18:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:54 GMT + date: Wed, 28 Apr 2021 21:18:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:02:54 GMT + date: Wed, 28 Apr 2021 21:18:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index ed2ae6f76d78..05c748513953 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo2c591564:tag2c591564"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:02:56 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1addaa95-a865-11eb-bc9a-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1addaa95-a865-11eb-bc9a-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:03: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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:09 GMT + date: Wed, 28 Apr 2021 21:18:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:10 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:10 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -193,7 +104,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -226,7 +137,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -255,11 +166,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -290,7 +201,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -323,7 +234,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -352,11 +263,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.216667' status: code: 200 message: OK @@ -387,7 +298,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:03:11 GMT + date: Wed, 28 Apr 2021 21:18:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index d9d65a2e709e..a6f7e6e0a66b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo3c82158b:tag3c82158b"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:03:12 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2546287c-a865-11eb-b247-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2546287c-a865-11eb-b247-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:03:26 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:27 GMT + - Wed, 28 Apr 2021 21:18:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:28 GMT + - Wed, 28 Apr 2021 21:18:53 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '165.966667' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:28 GMT + - Wed, 28 Apr 2021 21:18:53 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.933333' status: code: 200 message: OK @@ -227,8 +138,8 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T21:03:16.7625955Z", "lastUpdateTime": - "2021-04-28T21:03:16.7625955Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T21:18:41.8561728Z", "lastUpdateTime": + "2021-04-28T21:18:41.8561728Z", "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", @@ -287,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:29 GMT + - Wed, 28 Apr 2021 21:18:53 GMT docker-distribution-api-version: - registry/2.0 server: @@ -335,7 +246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:29 GMT + - Wed, 28 Apr 2021 21:18:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -376,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:30 GMT + - Wed, 28 Apr 2021 21:18:55 GMT server: - openresty strict-transport-security: @@ -384,7 +295,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '166.333333' status: code: 200 message: OK @@ -414,7 +325,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:30 GMT + - Wed, 28 Apr 2021 21:18:55 GMT server: - openresty strict-transport-security: @@ -422,7 +333,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '165.683333' status: code: 200 message: OK @@ -455,7 +366,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 21:03:32 GMT + - Wed, 28 Apr 2021 21:18:55 GMT docker-distribution-api-version: - registry/2.0 server: @@ -501,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:43 GMT + - Wed, 28 Apr 2021 21:19:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -542,7 +453,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:43 GMT + - Wed, 28 Apr 2021 21:19:05 GMT server: - openresty strict-transport-security: @@ -550,7 +461,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '165.966667' status: code: 200 message: OK @@ -583,7 +494,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:43 GMT + - Wed, 28 Apr 2021 21:19:05 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index dc3d12752d54..c4a7abd1000f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:44 GMT + - Wed, 28 Apr 2021 21:19:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:45 GMT + - Wed, 28 Apr 2021 21:19:07 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '165.95' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:46 GMT + - Wed, 28 Apr 2021 21:19:08 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.9' status: code: 200 message: OK @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:03:46 GMT + - Wed, 28 Apr 2021 21:19:08 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index f336f1d79e67..ffa36e7d3961 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -1,94 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo34ab0fa1:tag34ab0fa10", "repo34ab0fa1:tag34ab0fa11", "repo34ab0fa1:tag34ab0fa12", - "repo34ab0fa1:tag34ab0fa13"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '241' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:03:47 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39af5569-a865-11eb-b817-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39af5569-a865-11eb-b817-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:00 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -122,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:01 GMT + - Wed, 28 Apr 2021 21:19:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -163,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:02 GMT + - Wed, 28 Apr 2021 21:19:24 GMT server: - openresty strict-transport-security: @@ -171,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.133333' status: code: 200 message: OK @@ -201,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:03 GMT + - Wed, 28 Apr 2021 21:19:24 GMT server: - openresty strict-transport-security: @@ -209,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.116667' status: code: 200 message: OK @@ -242,7 +152,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 21:04:03 GMT + - Wed, 28 Apr 2021 21:19:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -290,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:03 GMT + - Wed, 28 Apr 2021 21:19:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -331,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:03 GMT + - Wed, 28 Apr 2021 21:19:25 GMT server: - openresty strict-transport-security: @@ -339,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.1' status: code: 200 message: OK @@ -384,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:04 GMT + - Wed, 28 Apr 2021 21:19:25 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 81965af46258..779da030bd9e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:04 GMT + - Wed, 28 Apr 2021 21:19:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:06 GMT + - Wed, 28 Apr 2021 21:19:27 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.05' + - '166.633333' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:06 GMT + - Wed, 28 Apr 2021 21:19:27 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.033333' + - '165.8' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:06 GMT + - Wed, 28 Apr 2021 21:19:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml index aa8d4d403b43..b8e40750a564 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo27331535:tag27331535"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:09 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-460a5f05-a865-11eb-9cd4-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-460a5f05-a865-11eb-9cd4-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:22 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:23 GMT + - Wed, 28 Apr 2021 21:19:42 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:25 GMT + - Wed, 28 Apr 2021 21:19:43 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '165.45' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:25 GMT + - Wed, 28 Apr 2021 21:19:44 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.9' + - '165.433333' status: code: 200 message: OK @@ -287,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:25 GMT + - Wed, 28 Apr 2021 21:19:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:26 GMT + - Wed, 28 Apr 2021 21:19:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:26 GMT + - Wed, 28 Apr 2021 21:19:45 GMT server: - openresty strict-transport-security: @@ -382,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.633333' status: code: 200 message: OK @@ -412,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:27 GMT + - Wed, 28 Apr 2021 21:19:45 GMT server: - openresty strict-transport-security: @@ -420,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.616667' status: code: 200 message: OK @@ -446,7 +357,7 @@ interactions: "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\":\"4/28/2021 9:04:26 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:19:39 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -462,7 +373,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:27 GMT + - Wed, 28 Apr 2021 21:19:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index 161df3f7d00d..e2cab48c44a5 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:28 GMT + - Wed, 28 Apr 2021 21:19:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index 6a9e43b9ef1b..e91c8988b6da 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repoc1b5131a:tagc1b5131a"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:29 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-52ae4f32-a865-11eb-89ed-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-52ae4f32-a865-11eb-89ed-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:42 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:43 GMT + - Wed, 28 Apr 2021 21:20:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:45 GMT + - Wed, 28 Apr 2021 21:20:03 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.8' + - '165.85' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:45 GMT + - Wed, 28 Apr 2021 21:20:03 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' + - '165.833333' status: code: 200 message: OK @@ -287,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:46 GMT + - Wed, 28 Apr 2021 21:20:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:47 GMT + - Wed, 28 Apr 2021 21:20:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:47 GMT + - Wed, 28 Apr 2021 21:20:05 GMT server: - openresty strict-transport-security: @@ -382,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.966667' status: code: 200 message: OK @@ -412,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:47 GMT + - Wed, 28 Apr 2021 21:20:05 GMT server: - openresty strict-transport-security: @@ -420,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.75' status: code: 200 message: OK @@ -457,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:48 GMT + - Wed, 28 Apr 2021 21:20:05 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index 301cf89c8680..46a54f1e7587 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:48 GMT + - Wed, 28 Apr 2021 21:20:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:50 GMT + - Wed, 28 Apr 2021 21:20:07 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '165.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:50 GMT + - Wed, 28 Apr 2021 21:20:07 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '164.8' status: code: 200 message: OK @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:04:51 GMT + - Wed, 28 Apr 2021 21:20:07 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index a40789b7f222..633693787055 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -1,94 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo25ce0f5d:tag25ce0f5d0", "repo25ce0f5d:tag25ce0f5d1", "repo25ce0f5d:tag25ce0f5d2", - "repo25ce0f5d:tag25ce0f5d3"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '241' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:04:53 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-604cbd4e-a865-11eb-82c7-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-604cbd4e-a865-11eb-82c7-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:05 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -120,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:06 GMT + - Wed, 28 Apr 2021 21:20:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -161,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:08 GMT + - Wed, 28 Apr 2021 21:20:24 GMT server: - openresty strict-transport-security: @@ -169,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.466667' status: code: 200 message: OK @@ -199,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:09 GMT + - Wed, 28 Apr 2021 21:20:24 GMT server: - openresty strict-transport-security: @@ -207,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' + - '165.516667' status: code: 200 message: OK @@ -289,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:09 GMT + - Wed, 28 Apr 2021 21:20:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -335,7 +245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:10 GMT + - Wed, 28 Apr 2021 21:20:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -376,7 +286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:10 GMT + - Wed, 28 Apr 2021 21:20:26 GMT server: - openresty strict-transport-security: @@ -384,7 +294,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '166.633333' status: code: 200 message: OK @@ -414,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:11 GMT + - Wed, 28 Apr 2021 21:20:26 GMT server: - openresty strict-transport-security: @@ -422,7 +332,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.5' + - '165.666667' status: code: 200 message: OK @@ -471,7 +381,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:11 GMT + - Wed, 28 Apr 2021 21:20:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index 61c4da710163..2153a4f9ff8c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo28471541:tag28471541"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:12 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6c688e5b-a865-11eb-a5bc-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-6c688e5b-a865-11eb-a5bc-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:26 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:26 GMT + - Wed, 28 Apr 2021 21:20:42 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:28 GMT + - Wed, 28 Apr 2021 21:20:43 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.6' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:29 GMT + - Wed, 28 Apr 2021 21:20:43 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.9' + - '165.616667' status: code: 200 message: OK @@ -287,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:29 GMT + - Wed, 28 Apr 2021 21:20:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:30 GMT + - Wed, 28 Apr 2021 21:20:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:30 GMT + - Wed, 28 Apr 2021 21:20:45 GMT server: - openresty strict-transport-security: @@ -382,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.2' status: code: 200 message: OK @@ -412,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:30 GMT + - Wed, 28 Apr 2021 21:20:45 GMT server: - openresty strict-transport-security: @@ -420,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.133333' status: code: 200 message: OK @@ -446,7 +357,7 @@ interactions: "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\":\"4/28/2021 9:05:18 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:20:33 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -462,7 +373,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:31 GMT + - Wed, 28 Apr 2021 21:20:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -511,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:31 GMT + - Wed, 28 Apr 2021 21:20:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -552,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:31 GMT + - Wed, 28 Apr 2021 21:20:46 GMT server: - openresty strict-transport-security: @@ -560,7 +471,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.1' status: code: 200 message: OK @@ -591,7 +502,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:05:18 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:20:33 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -607,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:31 GMT + - Wed, 28 Apr 2021 21:20:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -656,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:31 GMT + - Wed, 28 Apr 2021 21:20:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -697,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:32 GMT + - Wed, 28 Apr 2021 21:20:46 GMT server: - openresty strict-transport-security: @@ -705,7 +616,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.083333' status: code: 200 message: OK @@ -736,7 +647,7 @@ interactions: "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\":\"4/28/2021 9:05:18 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:20:33 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -752,7 +663,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:32 GMT + - Wed, 28 Apr 2021 21:20:47 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index 0580dfc01dc4..dd5472f6798e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repoc28d1326:tagc28d1326"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:33 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7900ef1d-a865-11eb-95ac-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7900ef1d-a865-11eb-95ac-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:47 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -119,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:48 GMT + - Wed, 28 Apr 2021 21:21:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -160,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:50 GMT + - Wed, 28 Apr 2021 21:21:03 GMT server: - openresty strict-transport-security: @@ -168,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166' + - '165.983333' status: code: 200 message: OK @@ -198,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:50 GMT + - Wed, 28 Apr 2021 21:21:03 GMT server: - openresty strict-transport-security: @@ -206,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.716667' + - '165.966667' status: code: 200 message: OK @@ -287,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:50 GMT + - Wed, 28 Apr 2021 21:21:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -333,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:51 GMT + - Wed, 28 Apr 2021 21:21:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:51 GMT + - Wed, 28 Apr 2021 21:21:05 GMT server: - openresty strict-transport-security: @@ -382,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '165.416667' status: code: 200 message: OK @@ -412,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:05 GMT server: - openresty strict-transport-security: @@ -420,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.733333' + - '165.166667' status: code: 200 message: OK @@ -457,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -506,7 +417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -547,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:06 GMT server: - openresty strict-transport-security: @@ -555,7 +466,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.716667' + - '165.15' status: code: 200 message: OK @@ -597,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -646,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:52 GMT + - Wed, 28 Apr 2021 21:21:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -687,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:53 GMT + - Wed, 28 Apr 2021 21:21:06 GMT server: - openresty strict-transport-security: @@ -695,7 +606,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.7' + - '165.133333' status: code: 200 message: OK @@ -737,7 +648,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:05:53 GMT + - Wed, 28 Apr 2021 21:21:07 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index 791b6e56741c..482f13f3cc06 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repoc7611808:tagc7611808"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:05:55 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-857a2dd1-a865-11eb-9eae-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-857a2dd1-a865-11eb-9eae-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:06: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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:09 GMT + date: Wed, 28 Apr 2021 21:21:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:10 GMT + date: Wed, 28 Apr 2021 21:21:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:10 GMT + date: Wed, 28 Apr 2021 21:21:23 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.4' + x-ms-ratelimit-remaining-calls-per-second: '165.566667' status: code: 200 message: OK @@ -185,8 +96,8 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T21:05:59.2845331Z", "lastUpdateTime": - "2021-04-28T21:05:59.2845331Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-04-28T21:21:12.3355475Z", "lastUpdateTime": + "2021-04-28T21:21:12.3355475Z", "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", @@ -238,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:11 GMT + date: Wed, 28 Apr 2021 21:21:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +178,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:11 GMT + date: Wed, 28 Apr 2021 21:21:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:12 GMT + date: Wed, 28 Apr 2021 21:21:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '164.866667' status: code: 200 message: OK @@ -323,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:13 GMT + date: Wed, 28 Apr 2021 21:21:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.55' + x-ms-ratelimit-remaining-calls-per-second: '164.633333' status: code: 200 message: OK @@ -348,7 +259,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 21:06:13 GMT + date: Wed, 28 Apr 2021 21:21:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -377,7 +288,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:23 GMT + date: Wed, 28 Apr 2021 21:21:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -406,11 +317,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:23 GMT + date: Wed, 28 Apr 2021 21:21:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.55' + x-ms-ratelimit-remaining-calls-per-second: '165.3' status: code: 200 message: OK @@ -432,7 +343,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:24 GMT + date: Wed, 28 Apr 2021 21:21:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index 6b14243c4897..4332523af68b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:26 GMT + date: Wed, 28 Apr 2021 21:21:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:28 GMT + date: Wed, 28 Apr 2021 21:21:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.15' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:29 GMT + date: Wed, 28 Apr 2021 21:21:37 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.216667' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:29 GMT + date: Wed, 28 Apr 2021 21:21:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index 0beddce27df6..19496a6dee87 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -1,94 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo9cb4121e:tag9cb4121e0", "repo9cb4121e:tag9cb4121e1", "repo9cb4121e:tag9cb4121e2", - "repo9cb4121e:tag9cb4121e3"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '241' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:06:30 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9af545bb-a865-11eb-8600-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9af545bb-a865-11eb-8600-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:06:44 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -108,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:45 GMT + date: Wed, 28 Apr 2021 21:21:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:46 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -164,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:46 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -189,7 +99,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 21:06:47 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -219,7 +129,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:47 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -248,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:47 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -286,7 +196,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:47 GMT + date: Wed, 28 Apr 2021 21:21:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index 6600b49e302c..fce833c73ba3 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:47 GMT + date: Wed, 28 Apr 2021 21:21:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:49 GMT + date: Wed, 28 Apr 2021 21:21:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '165.983333' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:49 GMT + date: Wed, 28 Apr 2021 21:21:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' + x-ms-ratelimit-remaining-calls-per-second: '165.966667' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:06:49 GMT + date: Wed, 28 Apr 2021 21:21:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index f975818cda49..c75d839d577f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repoaf9517b2:tagaf9517b2"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:06:51 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a6eb5a38-a865-11eb-8244-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-a6eb5a38-a865-11eb-8244-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07:04 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:05 GMT + date: Wed, 28 Apr 2021 21:22:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:06 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:07 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -238,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:07 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:08 GMT + date: Wed, 28 Apr 2021 21:22:12 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:08 GMT + date: Wed, 28 Apr 2021 21:22:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -323,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:08 GMT + date: Wed, 28 Apr 2021 21:22:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -350,7 +261,7 @@ interactions: "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\":\"4/28/2021 9:06:58 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:22:02 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -358,7 +269,7 @@ interactions: connection: keep-alive content-length: '818' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:09 GMT + date: Wed, 28 Apr 2021 21:22:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index b0a17ed7607a..994716b9c55d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:10 GMT + date: Wed, 28 Apr 2021 21:22:14 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index b57971c80851..f1343c164b0f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo3db51597:tag3db51597"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07:12 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b335649d-a865-11eb-b770-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-b335649d-a865-11eb-b770-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07:25 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:26 GMT + date: Wed, 28 Apr 2021 21:22:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:27 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:27 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -238,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:28 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:28 GMT + date: Wed, 28 Apr 2021 21:22:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:29 GMT + date: Wed, 28 Apr 2021 21:22:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -323,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:29 GMT + date: Wed, 28 Apr 2021 21:22:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -353,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:29 GMT + date: Wed, 28 Apr 2021 21:22:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index 7f7ca824316e..babbc07f1456 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '214' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:30 GMT + date: Wed, 28 Apr 2021 21:22:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:31 GMT + date: Wed, 28 Apr 2021 21:22:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.766667' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:31 GMT + date: Wed, 28 Apr 2021 21:22:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.533333' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:31 GMT + date: Wed, 28 Apr 2021 21:22:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index 70a16604910b..455968149e78 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -1,94 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo8b5a11da:tag8b5a11da0", "repo8b5a11da:tag8b5a11da1", "repo8b5a11da:tag8b5a11da2", - "repo8b5a11da:tag8b5a11da3"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '241' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07:33 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-bffdfa44-a865-11eb-970b-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-bffdfa44-a865-11eb-970b-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07: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 - status: - code: 200 - message: OK - request: body: null headers: @@ -108,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:47 GMT + date: Wed, 28 Apr 2021 21:22:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -136,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:48 GMT + date: Wed, 28 Apr 2021 21:22:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -164,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:48 GMT + date: Wed, 28 Apr 2021 21:22:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + x-ms-ratelimit-remaining-calls-per-second: '165.283333' status: code: 200 message: OK @@ -240,7 +150,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:49 GMT + date: Wed, 28 Apr 2021 21:22:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -269,7 +179,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:49 GMT + date: Wed, 28 Apr 2021 21:22:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -297,7 +207,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:50 GMT + date: Wed, 28 Apr 2021 21:22:51 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -325,7 +235,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:50 GMT + date: Wed, 28 Apr 2021 21:22:51 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -367,7 +277,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:07:50 GMT + date: Wed, 28 Apr 2021 21:22:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 656310a187f1..9b7239b8eed8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repob0a917be:tagb0a917be"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:07:52 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb4b9944-a865-11eb-ac89-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-cb4b9944-a865-11eb-ac89-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:08:04 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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:06 GMT + date: Wed, 28 Apr 2021 21:23:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:07 GMT + date: Wed, 28 Apr 2021 21:23:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:07 GMT + date: Wed, 28 Apr 2021 21:23:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '165.433333' status: code: 200 message: OK @@ -238,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:07 GMT + date: Wed, 28 Apr 2021 21:23:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:08 GMT + date: Wed, 28 Apr 2021 21:23:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:08 GMT + date: Wed, 28 Apr 2021 21:23:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '165.033333' status: code: 200 message: OK @@ -323,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:08 GMT + date: Wed, 28 Apr 2021 21:23:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '164.6' status: code: 200 message: OK @@ -350,7 +261,7 @@ interactions: "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\":\"4/28/2021 9:07:58 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:22:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -358,7 +269,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -391,7 +302,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -420,11 +331,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '164.583333' status: code: 200 message: OK @@ -452,7 +363,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:07:58 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:22:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -460,7 +371,7 @@ interactions: connection: keep-alive content-length: '820' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -493,7 +404,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -522,11 +433,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:09 GMT + date: Wed, 28 Apr 2021 21:23:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '164.566667' status: code: 200 message: OK @@ -554,7 +465,7 @@ interactions: "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\":\"4/28/2021 9:07:58 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:22:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -562,7 +473,7 @@ interactions: connection: keep-alive content-length: '816' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:10 GMT + date: Wed, 28 Apr 2021 21:23:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index 02b1afb30bf9..294dbdc0717a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -1,93 +1,4 @@ interactions: -- request: - body: '{"source": {"registryUri": "registry.hub.docker.com", "sourceImage": "library/hello-world"}, - "targetTags": ["repo3e8d15a3:tag3e8d15a3"], "mode": "Force"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/rg-seankane/providers/Microsoft.ContainerRegistry/registries/seankane/importImage?api-version=2019-05-01 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:08:11 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d7076e37-a865-11eb-a5f5-002b67128e4c?api-version=2019-05-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-containerregistry/8.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-d7076e37-a865-11eb-a5f5-002b67128e4c?api-version=2019-05-01 - response: - body: - string: '{"status": "Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 21:08: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 - status: - code: 200 - message: OK - request: body: null headers: @@ -107,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:25 GMT + date: Wed, 28 Apr 2021 21:23:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -135,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:26 GMT + date: Wed, 28 Apr 2021 21:23:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.35' status: code: 200 message: OK @@ -163,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:26 GMT + date: Wed, 28 Apr 2021 21:23:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '165.333333' status: code: 200 message: OK @@ -238,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:27 GMT + date: Wed, 28 Apr 2021 21:23:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -267,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:27 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '165.4' status: code: 200 message: OK @@ -323,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.033333' status: code: 200 message: OK @@ -353,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -386,7 +297,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -415,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -450,7 +361,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -483,7 +394,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:28 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -512,11 +423,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:29 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -547,7 +458,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:08:29 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 6a81b67dec8c..e9754e8ff6c4 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py @@ -22,7 +22,6 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): - @pytest.mark.live_test_only @acr_preparer() def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -40,7 +39,6 @@ def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 - @pytest.mark.live_test_only @acr_preparer() def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) 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 16cb64129d5e..fb6bef38e2f7 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 @@ -22,7 +22,6 @@ class TestContainerRegistryClient(AsyncContainerRegistryTestClass): - @pytest.mark.live_test_only @acr_preparer() async def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -39,7 +38,6 @@ async def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 - @pytest.mark.live_test_only @acr_preparer() async def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 481e11d1677d..515a84975e64 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -8,6 +8,7 @@ import json import logging import os +from azure_devtools.scenario_tests.recording_processors import SubscriptionRecordingProcessor import pytest import re import six @@ -53,6 +54,15 @@ def process_request(self, request): return None +class ManagementRequestReplacer(RecordingProcessor): + """Remove oauth authentication requests and responses from recording.""" + + 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""" @@ -169,6 +179,7 @@ def __init__(self, method_name): AuthenticationMetadataFilter(), RequestUrlNormalizer(), AcrBodyReplacer(), + ManagementRequestReplacer(), ], ) self.repository = "library/hello-world" From 6ced986ff9f9bd2ba7da63db0e424aeecb3d9293 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 17:29:30 -0400 Subject: [PATCH 17/42] formatting --- .../azure/containerregistry/_container_repository.py | 7 +++---- .../azure/containerregistry/_models.py | 2 +- .../azure/containerregistry/_registry_artifact.py | 3 ++- .../containerregistry/aio/_async_container_repository.py | 7 +++---- .../containerregistry/aio/_async_registry_artifact.py | 3 ++- .../tests/test_container_repository_async.py | 8 ++------ .../azure-containerregistry/tests/testcase.py | 2 ++ 7 files changed, 15 insertions(+), 17 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py index c14394c8368d..9871a485de4b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository.py @@ -100,7 +100,8 @@ def list_manifests(self, **kwargs): cls = kwargs.pop( "cls", lambda objs: [ - ArtifactManifestProperties._from_generated(x, repository_name=self.repository) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x, repository_name=self.repository) # pylint: disable=protected-access + for x in objs ], ) @@ -205,9 +206,7 @@ def set_properties(self, properties, **kwargs): """ return RepositoryProperties._from_generated( # pylint: disable=protected-access self._client.container_registry.set_properties( - self.repository, - properties._to_generated(), # pylint: disable=protected-access - **kwargs + self.repository, properties._to_generated(), **kwargs # pylint: disable=protected-access ) ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 69150c0c19ac..b9b21344d9e6 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -110,7 +110,7 @@ def _from_generated(cls, generated, **kwargs): size=generated.size, tags=generated.tags, content_permissions=generated.writeable_properties, - repository_name=kwargs.get("repository_name") + repository_name=kwargs.get("repository_name"), ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 5def6f953475..447d3ebea186 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -136,7 +136,8 @@ def list_tags(self, **kwargs): orderby = kwargs.pop("order_by", None) digest = kwargs.pop("digest", None) cls = kwargs.pop( - "cls", lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + "cls", + lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs], # pylint: disable=protected-access ) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py index d464d7b9e975..6bf335272f26 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository.py @@ -99,7 +99,8 @@ def list_manifests(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactMan cls = kwargs.pop( "cls", lambda objs: [ - ArtifactManifestProperties._from_generated(x, repository_name=self.repository) for x in objs # pylint: disable=protected-access + ArtifactManifestProperties._from_generated(x, repository_name=self.repository) # pylint: disable=protected-access + for x in objs ], ) @@ -203,9 +204,7 @@ async def set_properties(self, properties: ContentProperties, **kwargs: Dict[str """ return RepositoryProperties._from_generated( # pylint: disable=protected-access await self._client.container_registry.set_properties( - self.repository, - properties._to_generated(), # pylint: disable=protected-access - **kwargs + self.repository, properties._to_generated(), **kwargs # pylint: disable=protected-access ) ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index 3b0894ca1baf..0d7d2e53a6e1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -136,7 +136,8 @@ def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactTagPrope orderby = kwargs.pop("order_by", None) digest = kwargs.pop("digest", None) cls = kwargs.pop( - "cls", lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access + "cls", + lambda objs: [ArtifactTagProperties._from_generated(o) for o in objs], # pylint: disable=protected-access ) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py index ff8430afd49f..cfd80da5af24 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_async.py @@ -90,9 +90,7 @@ async def test_list_manifests_descending(self, containerregistry_endpoint): prev_last_updated_on = None count = 0 - async for artifact in client.list_manifests( - order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING - ): + async for artifact in client.list_manifests(order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING): if prev_last_updated_on: assert artifact.last_updated_on < prev_last_updated_on prev_last_updated_on = artifact.last_updated_on @@ -106,9 +104,7 @@ async def test_list_manifests_ascending(self, containerregistry_endpoint): prev_last_updated_on = None count = 0 - async for artifact in client.list_manifests( - order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING - ): + async for artifact in client.list_manifests(order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING): if prev_last_updated_on: assert artifact.last_updated_on > prev_last_updated_on prev_last_updated_on = artifact.last_updated_on diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 515a84975e64..30e44c3a3bb1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -57,6 +57,8 @@ def process_request(self, request): 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 From 83c0d908f0081b134177e54daf8db3903ef9af69 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Mon, 3 May 2021 12:17:43 -0400 Subject: [PATCH 18/42] fixing up merge issues --- .../_container_repository_client.py | 408 ------------------ .../aio/_async_container_repository_client.py | 405 ----------------- ...tainer_repository.test_list_manifests.yaml | 70 +-- ...epository.test_list_manifests_by_page.yaml | 279 +++++++----- ...tainer_repository.test_set_properties.yaml | 314 +++++++++++++- ..._repository_async.test_set_properties.yaml | 230 +++++++++- ...rtifact.test_delete_registry_artifact.yaml | 134 ++++-- ...est_registry_artifact.test_delete_tag.yaml | 89 ++-- ...tifact.test_delete_tag_does_not_exist.yaml | 144 ++++++- ...artifact.test_set_manifest_properties.yaml | 244 ++++++----- ...stry_artifact.test_set_tag_properties.yaml | 270 ++++++++++-- ..._async.test_delete_tag_does_not_exist.yaml | 101 ++++- ...ct_async.test_set_manifest_properties.yaml | 176 ++++---- .../tests/test_container_repository_client.py | 328 -------------- .../test_container_repository_client_async.py | 322 -------------- 15 files changed, 1566 insertions(+), 1948 deletions(-) delete mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py delete mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py deleted file mode 100644 index 2ebccb49a9b3..000000000000 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py +++ /dev/null @@ -1,408 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from typing import TYPE_CHECKING - -from azure.core.exceptions import ( - ClientAuthenticationError, - ResourceNotFoundError, - ResourceExistsError, - HttpResponseError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.tracing.decorator import distributed_trace - -from ._base_client import ContainerRegistryBaseClient -from ._generated.models import AcrErrors -from ._helpers import _is_tag, _parse_next_link -from ._models import ( - DeletedRepositoryResult, - RegistryArtifactProperties, - RepositoryProperties, - TagProperties, -) - -if TYPE_CHECKING: - from typing import Any, Dict - from azure.core.credentials import TokenCredential - from ._models import ContentProperties - - -class ContainerRepositoryClient(ContainerRegistryBaseClient): - def __init__(self, endpoint, repository, credential, **kwargs): - # type: (str, str, TokenCredential, Dict[str, Any]) -> None - """Create a ContainerRepositoryClient from an endpoint, repository name, and credential - - :param endpoint: An ACR endpoint - :type endpoint: str - :param repository: The name of a repository - :type repository: str - :param credential: The credential with which to authenticate - :type credential: :class:`~azure.core.credentials.TokenCredential` - :returns: None - :raises: None - """ - if not endpoint.startswith("https://") and not endpoint.startswith("http://"): - endpoint = "https://" + endpoint - self._endpoint = endpoint - self.repository = repository - super(ContainerRepositoryClient, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - - def _get_digest_from_tag(self, tag): - # type: (str) -> str - tag_props = self.get_tag_properties(tag) - return tag_props.digest - - @distributed_trace - def delete(self, **kwargs): - # type: (Dict[str, Any]) -> None - """Delete a repository - - :returns: Object containing information about the deleted repository - :rtype: :class:`~azure.containerregistry.DeletedRepositoryResult` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return DeletedRepositoryResult._from_generated( # pylint: disable=protected-access - self._client.container_registry.delete_repository(self.repository, **kwargs) - ) - - @distributed_trace - def delete_registry_artifact(self, digest, **kwargs): - # type: (str, Dict[str, Any]) -> None - """Delete a registry artifact - - :param digest: The digest of the artifact to be deleted - :type digest: str - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - @distributed_trace - def delete_tag(self, tag, **kwargs): - # type: (str, Dict[str, Any]) -> None - """Delete a tag from a repository - - :param str tag: The tag to be deleted - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - self._client.container_registry.delete_tag(self.repository, tag, **kwargs) - - @distributed_trace - def get_properties(self, **kwargs): - # type: (Dict[str, Any]) -> RepositoryProperties - """Get the properties of a repository - - :returns: :class:`~azure.containerregistry.RepositoryProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RepositoryProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_properties(self.repository, **kwargs) - ) - - @distributed_trace - def get_registry_artifact_properties(self, tag_or_digest, **kwargs): - # type: (str, Dict[str, Any]) -> RegistryArtifactProperties - """Get the properties of a registry artifact - - :param tag_or_digest: The tag/digest of a registry artifact - :type tag_or_digest: str - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - if _is_tag(tag_or_digest): - tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_manifest_properties(self.repository, tag_or_digest, **kwargs) - ) - - @distributed_trace - def get_tag_properties(self, tag, **kwargs): - # type: (str, Dict[str, Any]) -> TagProperties - """Get the properties for a tag - - :param tag: The tag to get properties for - :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - ) - - @distributed_trace - def list_registry_artifacts(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[RegistryArtifactProperties] - """List the artifacts for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`RegistryArtifactProperties`] - :rtype: :class:`~azure.core.paging.ItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - cls = kwargs.pop( - "cls", - lambda objs: [ - RegistryArtifactProperties._from_generated(x) for x in objs # pylint: disable=protected-access - ], - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_manifests" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - def extract_data(pipeline_response): - deserialized = self._client._deserialize( # pylint: disable=protected-access - "AcrManifests", pipeline_response - ) - list_of_elem = deserialized.manifests - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_tags(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[TagProperties] - """List the tags for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - :rtype: :class:`~azure.core.paging.ItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - digest = kwargs.pop("digest", None) - cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_tags" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - if digest is not None: - query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - "digest", digest, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - def extract_data(pipeline_response): - deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - list_of_elem = deserialized.tag_attribute_bases - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def set_manifest_properties(self, digest, permissions, **kwargs): - # type: (str, ContentProperties, Dict[str, Any]) -> RegistryArtifactProperties - """Set the properties for a manifest - - :param digest: Digest of a manifest - :type digest: str - :param permissions: The property's values to be set - :type permissions: ContentProperties - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.update_manifest_properties( - self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) - - @distributed_trace - def set_tag_properties(self, tag, permissions, **kwargs): - # type: (str, ContentProperties, Dict[str, Any]) -> TagProperties - """Set the properties for a tag - - :param tag: Tag to set properties for - :type tag: str - :param permissions: The property's values to be set - :type permissions: ContentProperties - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - self._client.container_registry.update_tag_attributes( - self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py deleted file mode 100644 index abfdb95c1b93..000000000000 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_repository_client.py +++ /dev/null @@ -1,405 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from typing import TYPE_CHECKING, Dict, Any - -from azure.core.exceptions import ( - ClientAuthenticationError, - ResourceNotFoundError, - ResourceExistsError, - HttpResponseError, - map_error, -) -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async - -from ._async_base_client import ContainerRegistryBaseClient -from .._generated.models import AcrErrors -from .._helpers import _is_tag, _parse_next_link -from .._models import ( - ContentProperties, - DeletedRepositoryResult, - RegistryArtifactProperties, - RepositoryProperties, - TagProperties, -) - -if TYPE_CHECKING: - from azure.core.credentials_async import AsyncTokenCredential - - -class ContainerRepositoryClient(ContainerRegistryBaseClient): - def __init__( - self, endpoint: str, repository: str, credential: "AsyncTokenCredential", **kwargs: Dict[str, Any] - ) -> None: - """Create a ContainerRepositoryClient from an endpoint, repository name, and credential - - :param endpoint: An ACR endpoint - :type endpoint: str - :param repository: The name of a repository - :type repository: str - :param credential: The credential with which to authenticate - :type credential: :class:`~azure.core.credentials_async.AsyncTokenCredential` - :returns: None - :raises: None - """ - if not endpoint.startswith("https://") and not endpoint.startswith("http://"): - endpoint = "https://" + endpoint - self._endpoint = endpoint - self._credential = credential - self.repository = repository - super(ContainerRepositoryClient, self).__init__(endpoint=self._endpoint, credential=credential, **kwargs) - - async def _get_digest_from_tag(self, tag: str) -> None: - tag_props = await self.get_tag_properties(tag) - return tag_props.digest - - @distributed_trace_async - async def delete(self, **kwargs: Dict[str, Any]) -> DeletedRepositoryResult: - """Delete a repository - - :returns: Object containing information about the deleted repository - :rtype: :class:`~azure.containerregistry.DeletedRepositoryResult` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return DeletedRepositoryResult._from_generated( # pylint: disable=protected-access - await self._client.container_registry.delete_repository(self.repository, **kwargs) - ) - - @distributed_trace_async - async def delete_registry_artifact(self, digest: str, **kwargs: Dict[str, Any]) -> None: - """Delete a registry artifact - - :param digest: The digest of the artifact to be deleted - :type digest: str - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - await self._client.container_registry.delete_manifest(self.repository, digest, **kwargs) - - @distributed_trace_async - async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: - """Delete a tag from a repository - - :param str tag: The tag to be deleted - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - await self._client.container_registry.delete_tag(self.repository, tag, **kwargs) - - @distributed_trace_async - async def get_properties(self, **kwargs: Dict[str, Any]) -> RepositoryProperties: - """Get the properties of a repository - - :returns: :class:`~azure.containerregistry.RepositoryProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RepositoryProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_properties(self.repository, **kwargs) - ) - - @distributed_trace_async - async def get_registry_artifact_properties( - self, tag_or_digest: str, **kwargs: Dict[str, Any] - ) -> RegistryArtifactProperties: - """Get the properties of a registry artifact - - :param tag_or_digest: The tag/digest of a registry artifact - :type tag_or_digest: str - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - if _is_tag(tag_or_digest): - tag_or_digest = self._get_digest_from_tag(tag_or_digest) - - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_manifest_properties(self.repository, tag_or_digest, **kwargs) - ) - - @distributed_trace_async - async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> TagProperties: - """Get the properties for a tag - - :param tag: The tag to get properties for - :type tag: str - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.get_tag_properties(self.repository, tag, **kwargs) - ) - - @distributed_trace - def list_registry_artifacts(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[RegistryArtifactProperties]: - """List the artifacts for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.RegistryArtifactOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.RegistryArtifactProperties`] - :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - cls = kwargs.pop( - "cls", - lambda objs: [ - RegistryArtifactProperties._from_generated(x) for x in objs # pylint: disable=protected-access - ], - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_manifests" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - async def extract_data(pipeline_response): - deserialized = self._client._deserialize( # pylint: disable=protected-access - "AcrManifests", pipeline_response - ) - list_of_elem = deserialized.manifests - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[TagProperties]: - """List the tags for a repository - - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword order_by: Query parameter for ordering by time ascending or descending - :paramtype order_by: :class:`~azure.containerregistry.TagOrderBy` - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[:class:`~azure.containerregistry.TagProperties`] - :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - name = self.repository - last = kwargs.pop("last", None) - n = kwargs.pop("results_per_page", None) - orderby = kwargs.pop("order_by", None) - digest = kwargs.pop("digest", None) - cls = kwargs.pop( - "cls", lambda objs: [TagProperties._from_generated(o) for o in objs] # pylint: disable=protected-access - ) - - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/{name}/_tags" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - if orderby is not None: - query_parameters["orderby"] = self._client._serialize.query( # pylint: disable=protected-access - "orderby", orderby, "str" - ) - if digest is not None: - query_parameters["digest"] = self._client._serialize.query( # pylint: disable=protected-access - "digest", digest, "str" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._client._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - "name": self._client._serialize.url("name", name, "str"), # pylint: disable=protected-access - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - async def extract_data(pipeline_response): - deserialized = self._client._deserialize("TagList", pipeline_response) # pylint: disable=protected-access - list_of_elem = deserialized.tag_attribute_bases - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - return link, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def set_manifest_properties( - self, digest: str, permissions: ContentProperties, **kwargs: Dict[str, Any] - ) -> None: - """Set the properties for a manifest - - :param digest: Digest of a manifest - :type digest: str - :param permissions: The property's values to be set - :type permissions: ContentProperties - :returns: :class:`~azure.containerregistry.RegistryArtifactProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return RegistryArtifactProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.update_manifest_properties( - self.repository, digest, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) - - @distributed_trace_async - async def set_tag_properties( - self, tag: str, permissions: ContentProperties, **kwargs: Dict[str, Any] - ) -> TagProperties: - """Set the properties for a tag - - :param tag: Tag to set properties for - :type tag: str - :param permissions: The property's values to be set - :type permissions: ContentProperties - :returns: :class:`~azure.containerregistry.TagProperties` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - return TagProperties._from_generated( # pylint: disable=protected-access - await self._client.container_registry.update_tag_attributes( - self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access - ) - ) diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml index c22f3315d43c..93d125378fff 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:47 GMT + - Mon, 03 May 2021 16:04:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:48 GMT + - Mon, 03 May 2021 16:04:20 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.4' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:48 GMT + - Mon, 03 May 2021 16:04:20 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '166.183333' status: code: 200 message: OK @@ -133,18 +133,13 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": - "2021-04-13T15:11:16.8778338Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": - "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", @@ -152,14 +147,9 @@ interactions: "2021-04-13T15:11:16.3563152Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": - "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": - "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", @@ -167,26 +157,36 @@ interactions: "2021-04-13T15:11:15.9893517Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": - "2021-04-13T15:11:15.9220954Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": - "2021-04-13T15:11:15.6976923Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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: - Docker-Content-Digest @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:49 GMT + - Mon, 03 May 2021 16:04:21 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml index 7156f74b409c..293bf9f570ea 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml @@ -16,7 +16,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetmani160e197b", "Action": "metadata_read"}]}]}' + "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:13 GMT + - Mon, 03 May 2021 16:05:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:14 GMT + - Mon, 03 May 2021 16:05:08 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.533333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:15 GMT + - Mon, 03 May 2021 16:05:08 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '166.516667' status: code: 200 message: OK @@ -136,57 +136,18 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:06:03.4695677Z", "lastUpdateTime": - "2021-04-28T22:06:03.4695677Z", "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-04-28T22:06:03.5155339Z", "lastUpdateTime": - "2021-04-28T22:06:03.5155339Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-04-28T22:06:03.7255222Z", "lastUpdateTime": - "2021-04-28T22:06:03.7255222Z", "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-04-28T22:06:05.1517704Z", "lastUpdateTime": - "2021-04-28T22:06:05.1517704Z", "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-04-28T22:06:03.9476604Z", "lastUpdateTime": - "2021-04-28T22:06:03.9476604Z", "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-04-28T22:06:06.2083312Z", "lastUpdateTime": - "2021-04-28T22:06:06.2083312Z", "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-04-28T22:06:04.1372935Z", "lastUpdateTime": - "2021-04-28T22:06:04.1372935Z", "architecture": "s390x", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 525, "createdTime": "2021-04-28T22:06:03.8332164Z", "lastUpdateTime": - "2021-04-28T22:06:03.8332164Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", - "imageSize": 1125, "createdTime": "2021-04-28T22:06:04.0284064Z", "lastUpdateTime": - "2021-04-28T22:06:04.0284064Z", "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-04-28T22:06:02.9323049Z", "lastUpdateTime": - "2021-04-28T22:06:02.9323049Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag160e197b"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -200,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:15 GMT + - Mon, 03 May 2021 16:05:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -233,7 +194,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetmani160e197b", "Action": "metadata_write"}]}]}' + "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -247,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:15 GMT + - Mon, 03 May 2021 16:05:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -263,7 +224,45 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Ametadata_write&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:05:08 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 @@ -302,15 +301,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:15 GMT + - Mon, 03 May 2021 16:05:08 GMT + docker-distribution-api-version: + - registry/2.0 + link: + - ; + rel="next" server: - openresty strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -329,16 +332,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:06:03.4695677Z", "lastUpdateTime": - "2021-04-28T22:06:03.4695677Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": - false, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 10:06:07 - PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}}' + 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 @@ -348,11 +344,11 @@ interactions: connection: - keep-alive content-length: - - '826' + - '218' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:16 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -393,7 +389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:17:22 GMT + - Mon, 03 May 2021 16:05:09 GMT server: - openresty strict-transport-security: @@ -401,7 +397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.066667' + - '166.483333' status: code: 200 message: OK @@ -420,9 +416,17 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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": "reposetmani160e197b", "Action": "metadata_write"}]}]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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 @@ -436,7 +440,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:16 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -447,15 +451,59 @@ interactions: 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: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Ametadata_write&refresh_token=REDACTED + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&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: + - Mon, 03 May 2021 16:05: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -480,7 +528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:16 GMT + - Mon, 03 May 2021 16:05:09 GMT server: - openresty strict-transport-security: @@ -488,7 +536,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.466667' status: code: 200 message: OK @@ -507,16 +555,18 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetmani160e197b", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:06:03.4695677Z", "lastUpdateTime": - "2021-04-28T22:06:03.4695677Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": + "2021-04-13T15:11:16.1965873Z", "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\":\"4/28/2021 10:06:07 - PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}}' + true, "quarantineState": "Passed"}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -526,11 +576,11 @@ interactions: connection: - keep-alive content-length: - - '822' + - '936' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:16 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -563,7 +613,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetmani160e197b", "Action": "delete"}]}]}' + "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -577,7 +627,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:16 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -593,7 +643,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Areposetmani160e197b%3Adelete&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -602,7 +652,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1080' + - '1085' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -618,7 +668,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:17 GMT + - Mon, 03 May 2021 16:05:10 GMT server: - openresty strict-transport-security: @@ -626,7 +676,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.45' status: code: 200 message: OK @@ -645,17 +695,18 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: - string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", - "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], - "tagsDeleted": ["tag160e197b"]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": + "2021-04-13T15:11:16.6907072Z", "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: - Docker-Content-Digest @@ -669,7 +720,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:18 GMT + - Mon, 03 May 2021 16:05:10 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 1ecc15e3c0cd..690957dd134a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -11,12 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 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"}]}]}' + "repository", "Name": "repob22512e7", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -26,11 +26,11 @@ interactions: connection: - keep-alive content-length: - - '218' + - '215' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:54 GMT + - Mon, 03 May 2021 16:06:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:55 GMT + - Mon, 03 May 2021 16:06:46 GMT server: - openresty strict-transport-security: @@ -79,12 +79,12 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.65' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -93,7 +93,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1085' + - '1080' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:55 GMT + - Mon, 03 May 2021 16:06:46 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.633333' status: code: 200 message: OK @@ -133,14 +133,294 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", + "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: + - Mon, 03 May 2021 16:06: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: '{"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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob22512e7", "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: + - Mon, 03 May 2021 16:06: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:06:47 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", + "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: + - Mon, 03 May 2021 16:06: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 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repob22512e7", "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: + - Mon, 03 May 2021 16:06: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob22512e7%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:06:47 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob22512e7", "createdTime": + "2021-04-28T16:00:11.7859645Z", "lastUpdateTime": "2021-04-28T16:00:10.3137046Z", + "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": + true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": + false}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -154,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:55 GMT + - Mon, 03 May 2021 16:06:48 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index 1a9008ea5013..fa2ab96cee3c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -7,18 +7,18 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 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"}]}]}' + "repository", "Name": "repo2c591564", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '218' + content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:53 GMT + date: Mon, 03 May 2021 16:09:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -27,7 +27,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 - request: body: access_token: REDACTED @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:54 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -59,7 +59,7 @@ interactions: body: grant_type: refresh_token refresh_token: REDACTED - scope: repository:library/busybox:metadata_read + scope: repository:repo2c591564:metadata_read service: fake_url.azurecr.io headers: Accept: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:54 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -91,20 +91,214 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '315' + content-type: application/json; charset=utf-8 + date: Mon, 03 May 2021 16:09:09 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/repo2c591564 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo2c591564", "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: Mon, 03 May 2021 16:09: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://fake_url.azurecr.io/acr/v1/repo2c591564 +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo2c591564:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: Mon, 03 May 2021 16:09:09 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '319' + content-type: application/json; charset=utf-8 + date: Mon, 03 May 2021 16:09:09 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/repo2c591564 +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo2c591564", "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: Mon, 03 May 2021 16:09: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://fake_url.azurecr.io/acr/v1/repo2c591564 +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo2c591564:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: Mon, 03 May 2021 16:09:10 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2c591564", "createdTime": + "2021-04-27T22:06:04.0103059Z", "lastUpdateTime": "2021-04-27T22:06:02.4505321Z", + "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: '315' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:54 GMT + date: Mon, 03 May 2021 16:09:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -112,5 +306,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?n=2 + url: https://fake_url.azurecr.io/acr/v1/repo2c591564 version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index efad524e1d41..a5f881ed2197 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -16,7 +16,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoeb7113db", "Action": "metadata_read"}]}]}' + "repository", "Name": "repo3c82158b", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:48 GMT + - Mon, 03 May 2021 16:10:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:49 GMT + - Mon, 03 May 2021 16:10:04 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:49 GMT + - Mon, 03 May 2021 16:10:04 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.616667' status: code: 200 message: OK @@ -136,11 +136,57 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoeb7113db", "tag": - {"name": "tageb7113db", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T22:13:37.9038522Z", "lastUpdateTime": "2021-04-28T22:13:37.9038522Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:09:54.1266717Z", "lastUpdateTime": + "2021-05-03T16:09:54.1266717Z", "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": 0, "createdTime": "2021-04-28T15:25:27.320821Z", "lastUpdateTime": + "2021-04-28T15:25:27.320821Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.6536514Z", "lastUpdateTime": + "2021-04-28T15:25:27.6536514Z", "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": 0, "createdTime": "2021-04-28T15:25:29.223197Z", "lastUpdateTime": + "2021-04-28T15:25:29.223197Z", "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": 0, "createdTime": "2021-04-28T15:25:27.8694422Z", "lastUpdateTime": + "2021-04-28T15:25:27.8694422Z", "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": 0, "createdTime": "2021-04-28T15:25:27.2462505Z", "lastUpdateTime": + "2021-04-28T15:25:27.2462505Z", "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": 0, "createdTime": "2021-04-28T15:25:26.8210861Z", "lastUpdateTime": + "2021-04-28T15:25:26.8210861Z", "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": 0, "createdTime": "2021-04-28T15:25:27.1316373Z", "lastUpdateTime": + "2021-04-28T15:25:27.1316373Z", "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": 0, "createdTime": "2021-04-28T15:25:26.9759284Z", "lastUpdateTime": + "2021-04-28T15:25:26.9759284Z", "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": 0, "createdTime": "2021-04-28T15:25:27.0302186Z", "lastUpdateTime": + "2021-04-28T15:25:27.0302186Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag3c82158b"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -152,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:50 GMT + - Mon, 03 May 2021 16:10:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -186,7 +232,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoeb7113db", "Action": "delete"}]}]}' + "repository", "Name": "repo3c82158b", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -200,7 +246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:50 GMT + - Mon, 03 May 2021 16:10:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -216,7 +262,45 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoeb7113db%3Adelete&refresh_token=REDACTED + 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.0b1 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: + - Mon, 03 May 2021 16:10:06 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Adelete&refresh_token=REDACTED headers: Accept: - application/json @@ -241,7 +325,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:50 GMT + - Mon, 03 May 2021 16:10:06 GMT server: - openresty strict-transport-security: @@ -249,7 +333,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.216667' status: code: 200 message: OK @@ -282,7 +366,7 @@ interactions: content-length: - '0' date: - - Wed, 28 Apr 2021 22:13:50 GMT + - Mon, 03 May 2021 16:10:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -292,8 +376,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-int-docker-content-digest: - - sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519 x-ms-ratelimit-remaining-calls-per-second: - '8.000000' status: @@ -316,7 +398,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoeb7113db", "Action": "metadata_read"}]}]}' + "repository", "Name": "repo3c82158b", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -330,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:55 GMT + - Mon, 03 May 2021 16:10:17 GMT docker-distribution-api-version: - registry/2.0 server: @@ -346,7 +428,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoeb7113db%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -371,7 +453,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:55 GMT + - Mon, 03 May 2021 16:10:17 GMT server: - openresty strict-transport-security: @@ -379,7 +461,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.266667' status: code: 200 message: OK @@ -412,7 +494,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:56 GMT + - Mon, 03 May 2021 16:10:17 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index ce622dd6f519..8bb36829f2d7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -12,13 +12,13 @@ interactions: - '0' User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 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"}]}]}' + "repository", "Name": "repo34ab0fa1", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -28,11 +28,11 @@ interactions: connection: - keep-alive content-length: - - '218' + - '208' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:33 GMT + - Mon, 03 May 2021 16:11:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:34 GMT + - Mon, 03 May 2021 16:11:11 GMT server: - openresty strict-transport-security: @@ -81,12 +81,12 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.583333' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo34ab0fa1%3Adelete&refresh_token=REDACTED headers: Accept: - application/json @@ -95,7 +95,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1085' + - '1073' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:34 GMT + - Mon, 03 May 2021 16:11:12 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '166.1' status: code: 200 message: OK @@ -136,15 +136,11 @@ interactions: - '0' User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tag": {"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' + string: '' headers: access-control-expose-headers: - Docker-Content-Digest @@ -154,11 +150,9 @@ interactions: connection: - keep-alive content-length: - - '384' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Wed, 28 Apr 2021 22:05:34 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -187,12 +181,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests/sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7 + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags 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"}]}]}' + "repository", "Name": "repo34ab0fa1", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -202,11 +196,11 @@ interactions: connection: - keep-alive content-length: - - '218' + - '215' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:34 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -222,7 +216,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo34ab0fa1%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -231,7 +225,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1085' + - '1080' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -247,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:35 GMT + - Mon, 03 May 2021 16:11:12 GMT server: - openresty strict-transport-security: @@ -255,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.083333' status: code: 200 message: OK @@ -271,25 +265,22 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests/sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7 + uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifest": {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": - "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", - "architecture": "386", "os": "linux"}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", - "architecture": "s390x", "os": "linux"}]}}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo34ab0fa1", "tags": + [{"name": "tag34ab0fa11", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.4424555Z", "lastUpdateTime": "2021-04-28T15:12:32.4424555Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag34ab0fa12", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.8815612Z", "lastUpdateTime": "2021-04-28T15:12:32.8815612Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "tag34ab0fa13", + "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:12:32.6269622Z", "lastUpdateTime": "2021-04-28T15:12:32.6269622Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -299,11 +290,11 @@ interactions: connection: - keep-alive content-length: - - '1563' + - '1028' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:35 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index fb76741509cc..4bdba15ba8f6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -13,21 +13,26 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/DOES_NOT_EXIST123/_tags/DOESNOTEXIST123 + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: body: - string: '404 page not found - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo506215e7", "Action": "delete"}]}]}' headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id connection: - keep-alive content-length: - - '19' + - '208' content-type: - - text/plain; charset=utf-8 + - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:13:56 GMT + - Mon, 03 May 2021 16:11:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -35,8 +40,133 @@ interactions: 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.0b1 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: + - Mon, 03 May 2021 16:11:52 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo506215e7%3Adelete&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:11:52 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 + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist + 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: + - Mon, 03 May 2021 16:11: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-ratelimit-remaining-calls-per-second: + - '8.000000' status: code: 404 message: Not Found diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index 0911ae1d928c..39698ccefca2 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -16,7 +16,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2e8319c5", "Action": "metadata_read"}]}]}' + "repository", "Name": "repo28471541", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:36 GMT + - Mon, 03 May 2021 16:12:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:37 GMT + - Mon, 03 May 2021 16:12:47 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.516667' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:38 GMT + - Mon, 03 May 2021 16:12:47 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '166.5' status: code: 200 message: OK @@ -138,58 +138,54 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:04:25.8920478Z", "lastUpdateTime": - "2021-04-28T22:04:25.8920478Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.394401Z", "lastUpdateTime": + "2021-05-03T16:12:35.394401Z", "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:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:21:39.6157682Z", "lastUpdateTime": - "2021-04-13T15:21:39.6157682Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.1170415Z", "lastUpdateTime": - "2021-04-13T15:21:40.1170415Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.8925848Z", "lastUpdateTime": + "2021-05-03T16:12:35.8925848Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-04-28T14:59:58.8894131Z", "lastUpdateTime": - "2021-04-28T14:59:58.8894131Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-03T16:12:36.2337358Z", "lastUpdateTime": + "2021-05-03T16:12:36.2337358Z", "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-04-28T14:59:58.675623Z", "lastUpdateTime": - "2021-04-28T14:59:58.675623Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.9585906Z", "lastUpdateTime": + "2021-05-03T16:12:35.9585906Z", "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-04-28T15:00:01.3711855Z", "lastUpdateTime": - "2021-04-28T15:00:01.3711855Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-03T16:12:36.1970464Z", "lastUpdateTime": + "2021-05-03T16:12:36.1970464Z", "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-04-28T14:59:58.3951148Z", "lastUpdateTime": - "2021-04-28T14:59:58.3951148Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:36.1483051Z", "lastUpdateTime": + "2021-05-03T16:12:36.1483051Z", "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-04-28T14:59:58.9904185Z", "lastUpdateTime": - "2021-04-28T14:59:58.9904185Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:36.3854241Z", "lastUpdateTime": + "2021-05-03T16:12:36.3854241Z", "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-04-28T14:59:58.5397883Z", "lastUpdateTime": - "2021-04-28T14:59:58.5397883Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.7153543Z", "lastUpdateTime": + "2021-05-03T16:12:35.7153543Z", "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": 0, "createdTime": "2021-04-15T18:51:48.2255875Z", "lastUpdateTime": - "2021-04-15T18:51:48.2255875Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-03T16:12:36.4691663Z", "lastUpdateTime": + "2021-05-03T16:12:36.4691663Z", "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": 0, "createdTime": "2021-04-15T18:51:47.3624329Z", "lastUpdateTime": - "2021-04-15T18:51:47.3624329Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + "imageSize": 5325, "createdTime": "2021-05-03T16:12:35.2310813Z", "lastUpdateTime": + "2021-05-03T16:12:35.2310813Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tag28471541"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: access-control-expose-headers: @@ -202,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:38 GMT + - Mon, 03 May 2021 16:12:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -234,7 +230,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2e8319c5", "Action": "delete"}]}]}' + "repository", "Name": "repo28471541", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -248,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:38 GMT + - Mon, 03 May 2021 16:12:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -264,7 +260,45 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2e8319c5%3Adelete&refresh_token=REDACTED + 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.0b1 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: + - Mon, 03 May 2021 16: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 +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_read&refresh_token=REDACTED headers: Accept: - application/json @@ -289,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:38 GMT + - Mon, 03 May 2021 16:12:49 GMT server: - openresty strict-transport-security: @@ -318,12 +352,12 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": - "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.394401Z", "lastUpdateTime": + "2021-05-03T16:12:35.394401Z", "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\":\"4/28/2021 9:20:33 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -335,11 +369,11 @@ interactions: connection: - keep-alive content-length: - - '818' + - '815' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:39 GMT + - Mon, 03 May 2021 16:12:49 GMT docker-distribution-api-version: - registry/2.0 server: @@ -374,7 +408,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2e8319c5", "Action": "metadata_read"}]}]}' + "repository", "Name": "repo28471541", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -388,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:39 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -404,7 +438,46 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo2e8319c5%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_write&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1081' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:12:50 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 @@ -424,12 +497,12 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T14:59:58.6083453Z", "lastUpdateTime": - "2021-04-28T14:59:58.6083453Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.394401Z", "lastUpdateTime": + "2021-05-03T16:12:35.394401Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:20:33 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -441,11 +514,11 @@ interactions: connection: - keep-alive content-length: - - '822' + - '819' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:46 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -494,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:46 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -535,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:39 GMT + - Mon, 03 May 2021 16:12:50 GMT server: - openresty strict-transport-security: @@ -543,7 +616,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '166.383333' status: code: 200 message: OK @@ -567,61 +640,16 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2e8319c5", "manifests": - [{"digest": "sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24", - "imageSize": 0, "createdTime": "2021-04-13T15:21:39.6157682Z", "lastUpdateTime": - "2021-04-13T15:21:39.6157682Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.1170415Z", "lastUpdateTime": - "2021-04-13T15:21:40.1170415Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.5270603Z", "lastUpdateTime": - "2021-04-13T15:21:40.5270603Z", "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": 0, "createdTime": "2021-04-13T15:21:40.454173Z", "lastUpdateTime": - "2021-04-13T15:21:40.454173Z", "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:b0408a0f1d74eced127a2658429f336ed8fa48e36d59878f155b19865e5dbd70", - "imageSize": 0, "createdTime": "2021-04-13T15:21:40.7670881Z", "lastUpdateTime": - "2021-04-13T15:21:40.7670881Z", "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:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 0, "createdTime": "2021-04-13T15:21:41.2075665Z", "lastUpdateTime": - "2021-04-13T15:21:41.2075665Z", "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": 0, "createdTime": "2021-04-13T15:21:40.6661892Z", "lastUpdateTime": - "2021-04-13T15:21:40.6661892Z", "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": 0, "createdTime": "2021-04-13T15:21:40.8867036Z", "lastUpdateTime": - "2021-04-13T15:21:40.8867036Z", "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": 0, "createdTime": "2021-04-13T15:21:40.2946843Z", "lastUpdateTime": - "2021-04-13T15:21:40.2946843Z", "architecture": "arm", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo28471541", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:12:35.394401Z", "lastUpdateTime": + "2021-05-03T16:12:35.394401Z", "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:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", - "imageSize": 0, "createdTime": "2021-04-15T18:51:48.2255875Z", "lastUpdateTime": - "2021-04-15T18:51:48.2255875Z", "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": 0, "createdTime": "2021-04-15T18:51:47.3624329Z", "lastUpdateTime": - "2021-04-15T18:51:47.3624329Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 + PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", + "quarantineState": "Passed"}}}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -631,11 +659,11 @@ interactions: connection: - keep-alive content-length: - - '818' + - '815' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:40 GMT + - Mon, 03 May 2021 16:12:51 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index 0e981d0b5981..c62fdb8311d8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -11,12 +11,12 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9b321760", "Action": "metadata_read"}]}]}' + "repository", "Name": "repoc28d1326", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:36 GMT + - Mon, 03 May 2021 16:13:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:37 GMT + - Mon, 03 May 2021 16:13:45 GMT server: - openresty strict-transport-security: @@ -109,7 +109,221 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:37 GMT + - Mon, 03 May 2021 16:13:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 0, "createdTime": "2021-04-28T15:02:29.8734878Z", "lastUpdateTime": + "2021-04-28T15:02:29.8734878Z", "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": 0, "createdTime": "2021-04-28T15:02:29.439862Z", "lastUpdateTime": + "2021-04-28T15:02:29.439862Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 0, "createdTime": "2021-04-28T15:02:29.196474Z", "lastUpdateTime": + "2021-04-28T15:02:29.196474Z", "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": 0, "createdTime": "2021-04-28T15:02:29.314296Z", "lastUpdateTime": + "2021-04-28T15:02:29.314296Z", "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": 0, "createdTime": "2021-04-28T15:02:29.247207Z", "lastUpdateTime": + "2021-04-28T15:02:29.247207Z", "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": 0, "createdTime": "2021-04-28T15:02:29.9524376Z", "lastUpdateTime": + "2021-04-28T15:02:29.9524376Z", "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": 0, "createdTime": "2021-04-28T15:02:29.6299853Z", "lastUpdateTime": + "2021-04-28T15:02:29.6299853Z", "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": 0, "createdTime": "2021-04-28T15:02:29.125237Z", "lastUpdateTime": + "2021-04-28T15:02:29.125237Z", "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": 0, "createdTime": "2021-04-28T15:02:30.1569299Z", "lastUpdateTime": + "2021-04-28T15:02:30.1569299Z", "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": 0, "createdTime": "2021-04-28T15:02:28.6053947Z", "lastUpdateTime": + "2021-04-28T15:02:28.6053947Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagc28d1326"], "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: + - Mon, 03 May 2021 16:13:45 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoc28d1326", "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: + - Mon, 03 May 2021 16:13: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: 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.0b1 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: + - Mon, 03 May 2021 16:13:46 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1080' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: + - Mon, 03 May 2021 16:13:47 GMT server: - openresty strict-transport-security: @@ -117,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '166.633333' status: code: 200 message: OK @@ -136,9 +350,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-15T18:52:57.9105866Z", + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}}' headers: @@ -154,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:38 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -189,7 +403,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9b321760", "Action": "metadata_write"}]}]}' + "repository", "Name": "repoc28d1326", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -203,7 +417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:38 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -219,7 +433,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo9b321760%3Ametadata_write&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED headers: Accept: - application/json @@ -244,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:38 GMT + - Mon, 03 May 2021 16:13:47 GMT server: - openresty strict-transport-security: @@ -252,7 +466,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.616667' + - '166.616667' status: code: 200 message: OK @@ -276,9 +490,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-15T18:52:57.9105866Z", + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false}}}' headers: @@ -294,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:38 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -329,7 +543,7 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9b321760", "Action": "metadata_write"}]}]}' + "repository", "Name": "repoc28d1326", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -343,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:38 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -359,7 +573,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo9b321760%3Ametadata_write&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_write&refresh_token=REDACTED headers: Accept: - application/json @@ -384,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:39 GMT + - Mon, 03 May 2021 16:13:48 GMT server: - openresty strict-transport-security: @@ -392,7 +606,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.6' + - '166.6' status: code: 200 message: OK @@ -416,9 +630,9 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo9b321760", "tag": - {"name": "tag9b321760", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:25:07.1063989Z", "lastUpdateTime": "2021-04-15T18:52:57.9105866Z", + string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc28d1326", "tag": + {"name": "tagc28d1326", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T15:02:28.711079Z", "lastUpdateTime": "2021-04-28T15:02:28.711079Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}}' headers: @@ -434,7 +648,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:39 GMT + - Mon, 03 May 2021 16:13:48 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index f84ec8c883a5..bf90284d86bc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -7,23 +7,108 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/DOES_NOT_EXIST123/_tags/DOESNOTEXIST123 + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: body: - string: '404 page not found - - ' + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repoddbe1864", "Action": "delete"}]}]}' headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '19' - content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 22:22:58 GMT + content-length: '208' + content-type: application/json; charset=utf-8 + date: Mon, 03 May 2021 16:14: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://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist +- 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.0b1 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: Mon, 03 May 2021 16:14:27 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repoddbe1864:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: Mon, 03 May 2021 16:14: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 + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist + 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: Mon, 03 May 2021 16:14:27 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://fake_url.azurecr.io/acr/v1/DOES_NOT_EXIST123/_tags/DOESNOTEXIST123 + url: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index f6203aaa911f..074c2243baf6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -12,13 +12,13 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetb7cc1bf8", "Action": "metadata_read"}]}]}' + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 22:08:11 GMT + date: Mon, 03 May 2021 16:15:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:12 GMT + date: Mon, 03 May 2021 16:15:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:12 GMT + date: Mon, 03 May 2021 16:15:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -94,62 +94,62 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:08:01.3894846Z", "lastUpdateTime": - "2021-04-28T22:08:01.3894846Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:15:12.0093551Z", "lastUpdateTime": + "2021-05-03T16:15:12.0093551Z", "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-04-28T22:08:01.4686287Z", "lastUpdateTime": - "2021-04-28T22:08:01.4686287Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:15:12.1495384Z", "lastUpdateTime": + "2021-05-03T16:15:12.1495384Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-04-28T22:08:01.8692554Z", "lastUpdateTime": - "2021-04-28T22:08:01.8692554Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.854002Z", "lastUpdateTime": + "2021-05-03T16:15:11.854002Z", "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-04-28T22:08:01.7547492Z", "lastUpdateTime": - "2021-04-28T22:08:01.7547492Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.3031204Z", "lastUpdateTime": + "2021-05-03T16:15:11.3031204Z", "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-04-28T22:08:02.2011859Z", "lastUpdateTime": - "2021-04-28T22:08:02.2011859Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.6004506Z", "lastUpdateTime": + "2021-05-03T16:15:11.6004506Z", "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-04-28T22:08:01.9216636Z", "lastUpdateTime": - "2021-04-28T22:08:01.9216636Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.3804449Z", "lastUpdateTime": + "2021-05-03T16:15:11.3804449Z", "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-04-28T22:08:02.2643519Z", "lastUpdateTime": - "2021-04-28T22:08:02.2643519Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.6434675Z", "lastUpdateTime": + "2021-05-03T16:15:11.6434675Z", "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-04-28T22:08:01.5677874Z", "lastUpdateTime": - "2021-04-28T22:08:01.5677874Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T16:15:11.8953692Z", "lastUpdateTime": + "2021-05-03T16:15:11.8953692Z", "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-04-28T22:08:02.7377961Z", "lastUpdateTime": - "2021-04-28T22:08:02.7377961Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-03T16:15:12.0625408Z", "lastUpdateTime": + "2021-05-03T16:15:12.0625408Z", "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-04-28T22:08:01.2695721Z", "lastUpdateTime": - "2021-04-28T22:08:01.2695721Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagb7cc1bf8"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + "imageSize": 5325, "createdTime": "2021-05-03T16:15:10.5855101Z", "lastUpdateTime": + "2021-05-03T16:15:10.5855101Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["tagb0a917be"], "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: Wed, 28 Apr 2021 22:08:13 GMT + date: Mon, 03 May 2021 16:15:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -172,13 +172,13 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetb7cc1bf8", "Action": "metadata_write"}]}]}' + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 22:08:13 GMT + date: Mon, 03 May 2021 16:15:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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: Mon, 03 May 2021 16:15:23 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:13 GMT + date: Mon, 03 May 2021 16:15:23 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -227,22 +254,22 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:08:01.3894846Z", "lastUpdateTime": - "2021-04-28T22:08:01.3894846Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:15:12.0093551Z", "lastUpdateTime": + "2021-05-03T16:15:12.0093551Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": - false, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 10:08:13 + {"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\":\"5/3/2021 4:15:13 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: '822' + content-length: '817' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:13 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -269,13 +296,13 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetb7cc1bf8", "Action": "metadata_write"}]}]}' + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 22:08:14 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -284,7 +311,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - request: body: grant_type: refresh_token @@ -304,11 +331,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:14 GMT + date: Mon, 03 May 2021 16:15:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -329,22 +356,22 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "reposetb7cc1bf8", - "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:08:01.3894846Z", "lastUpdateTime": - "2021-04-28T22:08:01.3894846Z", "architecture": "amd64", "os": "linux", "mediaType": + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:15:12.0093551Z", "lastUpdateTime": + "2021-05-03T16:15:12.0093551Z", "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\":\"4/28/2021 10:08:13 + {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": + false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:15:13 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: '818' + content-length: '821' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:14 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -371,13 +398,13 @@ interactions: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "reposetb7cc1bf8", "Action": "delete"}]}]}' + "repository", "Name": "repob0a917be", "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, 28 Apr 2021 22:08:14 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -386,7 +413,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/reposetb7cc1bf8 + url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - request: body: grant_type: refresh_token @@ -406,11 +433,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:14 GMT + date: Mon, 03 May 2021 16:15:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -431,23 +458,22 @@ interactions: uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: - string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", - "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], - "tagsDeleted": ["tagb7cc1bf8"]}' + string: '{"registry": "fake_url.azurecr.io", "imageName": "repob0a917be", "manifest": + {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-03T16:15:12.0093551Z", "lastUpdateTime": + "2021-05-03T16:15:12.0093551Z", "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\":\"5/3/2021 4:15:13 + 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: '816' + content-length: '817' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:16 GMT + date: Mon, 03 May 2021 16:15:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py deleted file mode 100644 index 55d50b709aa8..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py +++ /dev/null @@ -1,328 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from datetime import datetime -import pytest - -from devtools_testutils import AzureTestCase - -from azure.containerregistry import ( - ContainerRepositoryClient, - ContainerRegistryClient, - ContentProperties, - DeletedRepositoryResult, - RepositoryProperties, - RegistryArtifactOrderBy, - RegistryArtifactProperties, - TagProperties, - TagOrderBy, -) -from azure.core.exceptions import ResourceNotFoundError -from azure.core.paging import ItemPaged - -from testcase import ContainerRegistryTestClass, AcrBodyReplacer, FakeTokenCredential -from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD -from preparer import acr_preparer - - -class TestContainerRepositoryClient(ContainerRegistryTestClass): - @acr_preparer() - def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - repo = self.get_resource_name("repo") - tag = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - - client = self.create_repository_client(containerregistry_endpoint, repo) - - tag_props = client.get_tag_properties(tag) - assert tag_props is not None - - client.delete_tag(tag) - self.sleep(5) - with pytest.raises(ResourceNotFoundError): - client.get_tag_properties(tag) - - @acr_preparer() - def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, "DOES_NOT_EXIST123") - - with pytest.raises(ResourceNotFoundError): - client.delete_tag("DOESNOTEXIST123") - - @acr_preparer() - def test_get_properties(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) - - properties = repo_client.get_properties() - assert isinstance(properties.writeable_properties, ContentProperties) - - @acr_preparer() - def test_get_tag(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tag = client.get_tag_properties("latest") - - assert tag is not None - assert isinstance(tag, TagProperties) - - @acr_preparer() - def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - count = 0 - for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - results_per_page = 2 - - pages = client.list_registry_artifacts(results_per_page=results_per_page) - page_count = 0 - for page in pages.by_page(): - reg_count = 0 - for tag in page: - reg_count += 1 - assert reg_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for artifact in client.list_registry_artifacts(order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert artifact.last_updated_on < prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for artifact in client.list_registry_artifacts(order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert artifact.last_updated_on > prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_get_registry_artifact_properties(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - properties = client.get_registry_artifact_properties("latest") - - assert isinstance(properties, RegistryArtifactProperties) - assert isinstance(properties.created_on, datetime) - assert isinstance(properties.last_updated_on, datetime) - - @acr_preparer() - def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tags = client.list_tags() - assert isinstance(tags, ItemPaged) - count = 0 - for tag in tags: - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - results_per_page = 2 - - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - for page in pages.by_page(): - tag_count = 0 - for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - tag_props = client.get_tag_properties(tag_identifier) - permissions = tag_props.writeable_properties - - received = client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.writeable_properties.can_write - assert not received.writeable_properties.can_read - assert not received.writeable_properties.can_list - assert not received.writeable_properties.can_delete - - client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - @acr_preparer() - def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposetmani") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - for artifact in client.list_registry_artifacts(): - permissions = artifact.writeable_properties - - received_permissions = client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received_permissions.writeable_properties.can_delete - assert not received_permissions.writeable_properties.can_read - assert not received_permissions.writeable_properties.can_list - assert not received_permissions.writeable_properties.can_write - - # Reset and delete - client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - client.delete() - break - - @acr_preparer() - def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - - @acr_preparer() - def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, [TO_BE_DELETED]) - - reg_client = self.create_registry_client(containerregistry_endpoint) - existing_repos = list(reg_client.list_repositories()) - assert TO_BE_DELETED in existing_repos - - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) - result = repo_client.delete() - assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None - assert result.deleted_tags is not None - - existing_repos = list(reg_client.list_repositories()) - assert TO_BE_DELETED not in existing_repos - - @acr_preparer() - def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) - with pytest.raises(ResourceNotFoundError): - repo_client.delete() - - @acr_preparer() - def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) - - repo_client = self.create_repository_client(containerregistry_endpoint, repository) - - count = 0 - for artifact in repo_client.list_registry_artifacts(): - if count == 0: - repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 - - artifacts = [] - for a in repo_client.list_registry_artifacts(): - artifacts.append(a) - - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py deleted file mode 100644 index 25d7e68c4f22..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py +++ /dev/null @@ -1,322 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from datetime import datetime -import pytest - -from devtools_testutils import AzureTestCase - -from azure.containerregistry import ( - DeletedRepositoryResult, - RepositoryProperties, - ContentProperties, - RegistryArtifactOrderBy, - RegistryArtifactProperties, - TagOrderBy, -) -from azure.containerregistry.aio import ContainerRegistryClient, ContainerRepositoryClient -from azure.core.exceptions import ResourceNotFoundError -from azure.core.async_paging import AsyncItemPaged - -from asynctestcase import AsyncContainerRegistryTestClass -from preparer import acr_preparer -from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD - - -class TestContainerRepositoryClient(AsyncContainerRegistryTestClass): - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - async for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - - @acr_preparer() - async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - results_per_page = 2 - - pages = client.list_registry_artifacts(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - reg_count = 0 - async for tag in page: - reg_count += 1 - assert reg_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - async def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tags = client.list_tags() - assert isinstance(tags, AsyncItemPaged) - count = 0 - async for tag in tags: - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - results_per_page = 2 - - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - tag_count = 0 - async for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - async def test_delete_tag(self, containerregistry_endpoint): - repo = self.get_resource_name("repos") - tag = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - - client = self.create_repository_client(containerregistry_endpoint, repo) - - tag_props = await client.get_tag_properties(tag) - assert tag_props is not None - - await client.delete_tag(tag) - self.sleep(5) - - with pytest.raises(ResourceNotFoundError): - await client.get_tag_properties(tag) - - @acr_preparer() - async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, "DOES_NOT_EXIST123") - - with pytest.raises(ResourceNotFoundError): - await client.delete_tag("DOESNOTEXIST123") - - @acr_preparer() - async def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, [TO_BE_DELETED]) - - reg_client = self.create_registry_client(containerregistry_endpoint) - existing_repos = [] - async for repo in reg_client.list_repositories(): - existing_repos.append(repo) - assert TO_BE_DELETED in existing_repos - - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) - result = await repo_client.delete() - assert isinstance(result, DeletedRepositoryResult) - assert result.deleted_registry_artifact_digests is not None - assert result.deleted_tags is not None - - existing_repos = [] - async for repo in reg_client.list_repositories(): - existing_repos.append(repo) - assert TO_BE_DELETED not in existing_repos - - @acr_preparer() - async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) - with pytest.raises(ResourceNotFoundError): - await repo_client.delete() - - @acr_preparer() - async def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) - - repo_client = self.create_repository_client(containerregistry_endpoint, repository) - - count = 0 - async for artifact in repo_client.list_registry_artifacts(): - if count == 0: - await repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 - - artifacts = [] - async for a in repo_client.list_registry_artifacts(): - artifacts.append(a) - - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 - - @acr_preparer() - async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - tag_props = await client.get_tag_properties(tag_identifier) - permissions = tag_props.writeable_properties - - received = await client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.writeable_properties.can_write - assert not received.writeable_properties.can_read - assert not received.writeable_properties.can_list - assert not received.writeable_properties.can_delete - - # Reset them - await client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - await client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - @acr_preparer() - async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposet") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - async for artifact in client.list_registry_artifacts(): - permissions = artifact.writeable_properties - - received_permissions = await client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - assert not received_permissions.writeable_properties.can_delete - assert not received_permissions.writeable_properties.can_read - assert not received_permissions.writeable_properties.can_list - assert not received_permissions.writeable_properties.can_write - - # Reset and delete - await client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - await client.delete() - - break - - @acr_preparer() - async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - await client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - - @acr_preparer() - async def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - count = 0 - async for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, RegistryArtifactProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for artifact in client.list_registry_artifacts( - order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_DESCENDING - ): - if prev_last_updated_on: - assert artifact.last_updated_on < prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for artifact in client.list_registry_artifacts( - order_by=RegistryArtifactOrderBy.LAST_UPDATE_TIME_ASCENDING - ): - if prev_last_updated_on: - assert artifact.last_updated_on > prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 From ccec23b7edc008b2c8cdbd2f2addc4eeb3dbd2a1 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Mon, 3 May 2021 16:23:17 -0400 Subject: [PATCH 19/42] undoing changes to gen code --- .../_container_registry_operations.py | 20 +++++++++---------- .../_generated/models/__init__.py | 6 +++--- .../_generated/models/_models.py | 4 ++-- .../_generated/models/_models_py3.py | 4 ++-- .../_container_registry_operations.py | 20 +++++++++---------- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py index cc90eeadfa4f..6ceada0afc4a 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py @@ -623,7 +623,7 @@ async def get_tag_properties( name: str, reference: str, **kwargs - ) -> "_models.ArtifactArtifactTagProperties": + ) -> "_models.ArtifactTagProperties": """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -631,11 +631,11 @@ async def get_tag_properties( :param reference: Tag name. :type reference: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactArtifactTagProperties + :return: ArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -667,7 +667,7 @@ async def get_tag_properties( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -681,7 +681,7 @@ async def update_tag_attributes( reference: str, value: Optional["_models.ContentProperties"] = None, **kwargs - ) -> "_models.ArtifactArtifactTagProperties": + ) -> "_models.ArtifactTagProperties": """Update tag attributes. :param name: Name of the image (including the namespace). @@ -691,11 +691,11 @@ async def update_tag_attributes( :param value: Repository attribute value. :type value: ~container_registry.models.ContentProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactArtifactTagProperties + :return: ArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -735,7 +735,7 @@ async def update_tag_attributes( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 179c289ad856..47f70aa24044 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -12,7 +12,7 @@ from ._models_py3 import AcrRefreshToken from ._models_py3 import Annotations from ._models_py3 import ArtifactManifestProperties - from ._models_py3 import ArtifactArtifactTagProperties + from ._models_py3 import ArtifactTagProperties from ._models_py3 import ContentProperties from ._models_py3 import DeleteRepositoryResult from ._models_py3 import Descriptor @@ -50,7 +50,7 @@ from ._models import AcrRefreshToken # type: ignore from ._models import Annotations # type: ignore from ._models import ArtifactManifestProperties # type: ignore - from ._models import ArtifactArtifactTagProperties # type: ignore + from ._models import ArtifactTagProperties # type: ignore from ._models import ContentProperties # type: ignore from ._models import DeleteRepositoryResult # type: ignore from ._models import Descriptor # type: ignore @@ -96,7 +96,7 @@ 'AcrRefreshToken', 'Annotations', 'ArtifactManifestProperties', - 'ArtifactArtifactTagProperties', + 'ArtifactTagProperties', 'ContentProperties', 'DeleteRepositoryResult', 'Descriptor', diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index 4b3b2ca83b70..4ff78817dcfc 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -249,7 +249,7 @@ def __init__( self.writeable_properties = kwargs.get('writeable_properties', None) -class ArtifactArtifactTagProperties(msrest.serialization.Model): +class ArtifactTagProperties(msrest.serialization.Model): """Tag attributes. All required parameters must be populated in order to send to Azure. @@ -290,7 +290,7 @@ def __init__( self, **kwargs ): - super(ArtifactArtifactTagProperties, self).__init__(**kwargs) + super(ArtifactTagProperties, self).__init__(**kwargs) self.repository = kwargs['repository'] self.name = kwargs['name'] self.digest = kwargs['digest'] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index dcbc7ab3de90..7d3ccf0d68cf 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -293,7 +293,7 @@ def __init__( self.writeable_properties = writeable_properties -class ArtifactArtifactTagProperties(msrest.serialization.Model): +class ArtifactTagProperties(msrest.serialization.Model): """Tag attributes. All required parameters must be populated in order to send to Azure. @@ -341,7 +341,7 @@ def __init__( writeable_properties: "ContentProperties", **kwargs ): - super(ArtifactArtifactTagProperties, self).__init__(**kwargs) + super(ArtifactTagProperties, self).__init__(**kwargs) self.repository = repository self.name = name self.digest = digest diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py index 9d008b9d50e4..6e0d378e0489 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py @@ -637,7 +637,7 @@ def get_tag_properties( reference, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactArtifactTagProperties" + # type: (...) -> "_models.ArtifactTagProperties" """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -645,11 +645,11 @@ def get_tag_properties( :param reference: Tag name. :type reference: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactArtifactTagProperties + :return: ArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -681,7 +681,7 @@ def get_tag_properties( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -696,7 +696,7 @@ def update_tag_attributes( value=None, # type: Optional["_models.ContentProperties"] **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactArtifactTagProperties" + # type: (...) -> "_models.ArtifactTagProperties" """Update tag attributes. :param name: Name of the image (including the namespace). @@ -706,11 +706,11 @@ def update_tag_attributes( :param value: Repository attribute value. :type value: ~container_registry.models.ContentProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArtifactArtifactTagProperties, or the result of cls(response) - :rtype: ~container_registry.models.ArtifactArtifactTagProperties + :return: ArtifactTagProperties, or the result of cls(response) + :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactArtifactTagProperties"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -750,7 +750,7 @@ def update_tag_attributes( error = self._deserialize.failsafe_deserialize(_models.AcrErrors, response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize('ArtifactArtifactTagProperties', pipeline_response) + deserialized = self._deserialize('ArtifactTagProperties', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) From afa0c1bf9567d478ea20d79226c83d275b124d3a Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 4 May 2021 11:21:27 -0400 Subject: [PATCH 20/42] pylint issues --- .../azure/containerregistry/_models.py | 2 +- .../containerregistry/aio/_async_registry_artifact.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index dc2fa8520b98..71cb5d7fb39f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -11,7 +11,7 @@ if TYPE_CHECKING: from ._generated.models import ManifestAttributesBase - from ._generated.models import ArtifactArtifactTagProperties as GeneratedArtifactTagProperties + from ._generated.models import ArtifactTagProperties as GeneratedArtifactTagProperties class ContentProperties(object): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index 35774d9ae86c..fe3edb2ed040 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -79,17 +79,6 @@ async def delete(self, **kwargs: Dict[str, Any]) -> DeleteRepositoryResult: await self._client.container_registry.delete_repository(self.repository, **kwargs) ) - @distributed_trace_async - async def delete_registry_artifact(self, digest: str, **kwargs: Dict[str, Any]) -> None: - """Delete a registry artifact - - :returns: None - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - if not self._digest: - self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() - await self._client.container_registry.delete_manifest(self.repository, self._digest, **kwargs) - @distributed_trace_async async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: """Delete a tag from a repository From 0e2e33551058ca0766e523cf74e38d5a6b4bbec4 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 4 May 2021 11:23:42 -0400 Subject: [PATCH 21/42] consistent naming --- .../azure/containerregistry/_container_registry_client.py | 6 +++--- .../aio/_async_container_registry_client.py | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index 1f3306aac486..b0c6fb7ec4ec 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -45,17 +45,17 @@ def __init__(self, endpoint, credential, **kwargs): super(ContainerRegistryClient, self).__init__(endpoint=endpoint, credential=credential, **kwargs) @distributed_trace - def delete_repository(self, repository, **kwargs): + def delete_repository(self, repository_name, **kwargs): # type: (str, Dict[str, Any]) -> DeleteRepositoryResult """Delete a repository - :param str repository: The repository to delete + :param str repository_name: The repository to delete :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ return DeleteRepositoryResult._from_generated( # pylint: disable=protected-access - self._client.container_registry.delete_repository(repository, **kwargs) + self._client.container_registry.delete_repository(repository_name, **kwargs) ) @distributed_trace diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 8ffcda04887e..32acaf9c941d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -46,16 +46,15 @@ def __init__(self, endpoint: str, credential: "AsyncTokenCredential", **kwargs: super(ContainerRegistryClient, self).__init__(endpoint=endpoint, credential=credential, **kwargs) @distributed_trace_async - async def delete_repository(self, repository: str, **kwargs: Dict[str, Any]) -> DeleteRepositoryResult: + async def delete_repository(self, repository_name: str, **kwargs: Dict[str, Any]) -> DeleteRepositoryResult: """Delete a repository - :param repository: The repository to delete - :type repository: str + :param str repository_name: The repository to delete :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` """ - result = await self._client.container_registry.delete_repository(repository, **kwargs) + result = await self._client.container_registry.delete_repository(repository_name, **kwargs) return DeleteRepositoryResult._from_generated(result) # pylint: disable=protected-access @distributed_trace From 24cb3a06fc2a7a912806c8292a9a374f701195d7 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 4 May 2021 12:49:30 -0400 Subject: [PATCH 22/42] changes --- .../azure/containerregistry/_anon_client.py | 192 ++++++++++++++++++ .../_anonymous_exchange_client.py | 94 +++++++++ .../azure/containerregistry/_base_client.py | 5 +- .../aio/_anon_auth_policy_async.py | 0 .../aio/_anon_client_async.py | 0 .../azure-containerregistry/swagger/README.md | 32 +-- 6 files changed, 308 insertions(+), 15 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py new file mode 100644 index 000000000000..9bdfeef91282 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py @@ -0,0 +1,192 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from typing import TYPE_CHECKING +from azure.core.exceptions import ( + ClientAuthenticationError, + ResourceNotFoundError, + ResourceExistsError, + HttpResponseError, + map_error, +) +from azure.core.paging import ItemPaged +from azure.core.pipeline import Pipeline +from azure.core.tracing.decorator import distributed_trace + +from ._base_client import ContainerRegistryBaseClient, TransportWrapper +from ._container_repository import ContainerRepository +from ._generated.models import AcrErrors +from ._helpers import _parse_next_link +from ._registry_artifact import RegistryArtifact +from ._models import DeleteRepositoryResult + +if TYPE_CHECKING: + from typing import Any, Dict + from azure.core.credentials import TokenCredential + + +class ContainerRegistryClient(ContainerRegistryBaseClient): + def __init__(self, endpoint, **kwargs): + # type: (str, TokenCredential, Dict[str, Any]) -> None + """Create a ContainerRegistryClient from an ACR endpoint and a credential + + :param str endpoint: An ACR endpoint + :returns: None + :raises: None + """ + if not endpoint.startswith("https://") and not endpoint.startswith("http://"): + endpoint = "https://" + endpoint + self._endpoint = endpoint + super(ContainerRegistryClient, self).__init__(endpoint=endpoint, **kwargs) + + # @distributed_trace + # def delete_repository(self, repository_name, **kwargs): + # # type: (str, Dict[str, Any]) -> DeleteRepositoryResult + # """Delete a repository + + # :param str repository_name: The repository to delete + # :returns: Object containing information about the deleted repository + # :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` + # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + # """ + # return DeleteRepositoryResult._from_generated( # pylint: disable=protected-access + # self._client.container_registry.delete_repository(repository_name, **kwargs) + # ) + + @distributed_trace + def list_repository_names(self, **kwargs): + # type: (Dict[str, Any]) -> ItemPaged[str] + """List all repositories + + :keyword max: Maximum number of repositories to return + :paramtype max: int + :keyword last: Query parameter for the last item in the previous call. Ensuing + call will return values after last lexically + :paramtype last: str + :keyword results_per_page: Number of repositories to return per page + :paramtype results_per_page: int + :return: ItemPaged[str] + :rtype: :class:`~azure.core.paging.ItemPaged` + :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + """ + n = kwargs.pop("results_per_page", None) + last = kwargs.pop("last", None) + + cls = kwargs.pop("cls", None) # type: ClsType["_models.Repositories"] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access + "accept", accept, "str" + ) + + if not next_link: + # Construct URL + url = "/acr/v1/_catalog" + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if last is not None: + query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access + "last", last, "str" + ) + if n is not None: + query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access + "n", n, "int" + ) + + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + "url": self._client._serialize.url( # pylint: disable=protected-access + "self._config.url", + self._client._config.url, # pylint: disable=protected-access + "str", + skip_quote=True, + ), + } + url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access + request = self._client._client.get( # pylint: disable=protected-access + url, query_parameters, header_parameters + ) + return request + + def extract_data(pipeline_response): + deserialized = self._client._deserialize( # pylint: disable=protected-access + "Repositories", pipeline_response + ) + list_of_elem = deserialized.repositories or [] + if cls: + list_of_elem = cls(list_of_elem) + link = None + if "Link" in pipeline_response.http_response.headers.keys(): + link = _parse_next_link(pipeline_response.http_response.headers["Link"]) + elif "link" in pipeline_response.http_response.headers.keys(): # python 2.7 turns this into lowercase + link = _parse_next_link(pipeline_response.http_response.headers["link"]) + return link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access + request, stream=False, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access + AcrErrors, response + ) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_repository(self, repository, **kwargs): + # type: (str, Dict[str, Any]) -> ContainerRepository + """Get a Container Repository object + + :param str repository: The repository to create a client for + :returns: :class:`~azure.containerregistry.ContainerRepository` + :raises: None + """ + _pipeline = Pipeline( + transport=TransportWrapper(self._client._client._pipeline._transport), # pylint: disable=protected-access + policies=self._client._client._pipeline._impl_policies, # pylint: disable=protected-access + ) + return ContainerRepository( + self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs + ) + + @distributed_trace + def get_artifact(self, repository_name, tag_or_digest, **kwargs): + # type: (str, str, Dict[str, Any]) -> RegistryArtifact + """Get a Registry Artifact object + + :param str repository_name: Name of the repository + :param str tag_or_digest: The tag or digest of the artifact + :returns: :class:`~azure.containerregistry.RegistryArtifact` + :raises: None + """ + return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py new file mode 100644 index 000000000000..0c8af490cc8e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import re +import time +from typing import TYPE_CHECKING, Dict, Any + +from azure.core.pipeline.policies import SansIOHTTPPolicy + +from ._exchange_client import ExchangeClientAuthenticationPolicy +from ._generated import ContainerRegistry +from ._helpers import _parse_challenge +from ._user_agent import USER_AGENT + +if TYPE_CHECKING: + from azure.core.credentials import TokenCredential + + +class ACRExchangeClient(object): + """Class for handling oauth authentication requests + + :param endpoint: Azure Container Registry endpoint + :type endpoint: str + :param credential: Credential which provides tokens to authenticate requests + :type credential: :class:`~azure.core.credentials.TokenCredential` + """ + + BEARER = "Bearer" + AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') + + def __init__(self, endpoint, credential, **kwargs): + # type: (str, TokenCredential, Dict[str, Any]) -> None + if not endpoint.startswith("https://") and not endpoint.startswith("http://"): + endpoint = "https://" + endpoint + self._endpoint = endpoint + self.credential_scope = "https://management.core.windows.net/.default" + self._client = ContainerRegistry( + credential=credential, + url=endpoint, + sdk_moniker=USER_AGENT, + authentication_policy=ExchangeClientAuthenticationPolicy(), + credential_scopes=kwargs.pop("credential_scopes", self.credential_scope), + **kwargs + ) + self._credential = credential + self._refresh_token = None + self._last_refresh_time = 0 + + def get_acr_access_token(self, challenge, **kwargs): + # type: (str, Dict[str, Any]) -> str + parsed_challenge = _parse_challenge(challenge) + parsed_challenge["grant_type"] = u"password" + return self.exchange_refresh_token_for_access_token(**parsed_challenge) + # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) + # return self.exchange_refresh_token_for_access_token( + # refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs + # ) + + def get_refresh_token(self, service, **kwargs): + # type: (str, Dict[str, Any]) -> str + if not self._refresh_token or time.time() - self._last_refresh_time > 300: + self._refresh_token = self.exchange_aad_token_for_refresh_token(service, **kwargs) + self._last_refresh_time = time.time() + return self._refresh_token + + def exchange_aad_token_for_refresh_token(self, service=None, **kwargs): + # type: (str, Dict[str, Any]) -> str + refresh_token = self._client.authentication.exchange_aad_access_token_for_acr_refresh_token( + service=service, access_token=self._credential.get_token(self.credential_scope).token, **kwargs + ) + return refresh_token.refresh_token + + def exchange_refresh_token_for_access_token(self, refresh_token, service=None, scope=None, **kwargs): + # type: (str, str, str, Dict[str, Any]) -> str + access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( + service=service, scope=scope, refresh_token=refresh_token, **kwargs + ) + return access_token.access_token + + def __enter__(self): + self._client.__enter__() + return self + + def __exit__(self, *args): + self._client.__exit__(*args) + + def close(self): + # type: () -> None + """Close sockets opened by the client. + Calling this method is unnecessary when using the client as a context manager. + """ + self._client.close() diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py index 9f6aa5554ea0..1e4e8f040ae9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py @@ -4,10 +4,11 @@ # Licensed under the MIT License. # ------------------------------------ from enum import Enum -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Dict, Any from azure.core.pipeline.transport import HttpTransport +from ._anon_auth_policy import AnonymousContainerRegistryChallengePolicy from ._authentication_policy import ContainerRegistryChallengePolicy from ._generated import ContainerRegistry from ._user_agent import USER_AGENT @@ -33,6 +34,8 @@ class ContainerRegistryBaseClient(object): def __init__(self, endpoint, credential, **kwargs): # type: (str, TokenCredential, Dict[str, Any]) -> None auth_policy = ContainerRegistryChallengePolicy(credential, endpoint) + if not credential: + auth_policy = AnonymousContainerRegistryChallengePolicy(endpoint) self._client = ContainerRegistry( credential=credential, url=endpoint, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/containerregistry/azure-containerregistry/swagger/README.md b/sdk/containerregistry/azure-containerregistry/swagger/README.md index f18caff4f23c..b0ad620cf64e 100644 --- a/sdk/containerregistry/azure-containerregistry/swagger/README.md +++ b/sdk/containerregistry/azure-containerregistry/swagger/README.md @@ -2,23 +2,27 @@ ### Settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/96bdb14b80d5542ea6982cd766be19e7c8c58c86/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json +input-file: https://github.com/Azure/azure-rest-api-specs/raw/40e8bf1504ed672e86027b240dddd9ca94a15d4c/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json output-folder: "../azure/containerregistry/_generated" no-namespace-folders: true python: true clear-output-folder: true ``` - + +### Correct Security to be separately defined + +``` yaml +directive: + from: swagger-document + where: $ + transform: > + $.security = [ + { + "registry_oauth2": [] + }, + { + "registry_auth": [] + } + ] +``` From 0dcd6cd28fb5e565d5f133ee0fd7ecdcd4d616a5 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 4 May 2021 14:37:31 -0400 Subject: [PATCH 23/42] anon test --- .../tests/test_anon_access.py | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py new file mode 100644 index 000000000000..ef0293170c4f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import pytest +import six + +from azure.containerregistry import ( + DeleteRepositoryResult, +) +from azure.core.exceptions import ResourceNotFoundError +from azure.core.paging import ItemPaged +from azure.core.pipeline.transport import RequestsTransport + +from testcase import ContainerRegistryTestClass +from constants import TO_BE_DELETED, HELLO_WORLD +from preparer import acr_preparer + + +class TestContainerRegistryClient(ContainerRegistryTestClass): + @acr_preparer() + def test_list_repository_names(self, containerregistry_endpoint): + client = self.create_registry_client(containerregistry_endpoint) + + repositories = client.list_repository_names() + assert isinstance(repositories, ItemPaged) + + count = 0 + prev = None + for repo in repositories: + count += 1 + assert isinstance(repo, six.string_types) + assert prev != repo + prev = repo + + assert count > 0 + + @acr_preparer() + def test_list_repository_names_by_page(self, containerregistry_endpoint): + client = self.create_registry_client(containerregistry_endpoint) + results_per_page = 2 + total_pages = 0 + + repository_pages = client.list_repository_names(results_per_page=results_per_page) + + prev = None + for page in repository_pages.by_page(): + page_count = 0 + for repo in page: + assert isinstance(repo, six.string_types) + assert prev != repo + prev = repo + page_count += 1 + assert page_count <= results_per_page + total_pages += 1 + + assert total_pages > 1 + + @acr_preparer() + def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): + self.import_image(HELLO_WORLD, [TO_BE_DELETED]) + client = self.create_registry_client(containerregistry_endpoint) + + result = client.delete_repository(TO_BE_DELETED) + assert isinstance(result, DeleteRepositoryResult) + assert result.deleted_manifests is not None + assert result.deleted_tags is not None + + for repo in client.list_repository_names(): + if repo == TO_BE_DELETED: + raise ValueError("Repository not deleted") + + @acr_preparer() + def test_delete_repository_does_not_exist(self, containerregistry_endpoint): + client = self.create_registry_client(containerregistry_endpoint) + + with pytest.raises(ResourceNotFoundError): + deleted_result = client.delete_repository("not_real_repo") + + @acr_preparer() + def test_transport_closed_only_once(self, containerregistry_endpoint): + transport = RequestsTransport() + client = self.create_registry_client(containerregistry_endpoint, transport=transport) + with client: + for r in client.list_repository_names(): + pass + assert transport.session is not None + + with client.get_repository(HELLO_WORLD) as repo_client: + assert transport.session is not None + + for r in client.list_repository_names(): + pass + assert transport.session is not None From 62964e813bfb8283bae0e49b7e9749407b84daa4 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 5 May 2021 10:04:16 -0400 Subject: [PATCH 24/42] small changes to generated, eventually will be reflected in the swagger --- .../_generated/aio/operations/_authentication_operations.py | 3 ++- .../_generated/operations/_authentication_operations.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py index 805273e78312..bd714365185e 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py @@ -119,6 +119,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( :type scope: str :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str + :keyword str grant_type: grant_type for the request :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken @@ -130,7 +131,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/x-www-form-urlencoded") - grant_type = "refresh_token" + grant_type = kwargs.pop("grant_type", "refresh_token") accept = "application/json" # Construct URL diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py index b088d0cffcf2..d5312d44344a 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py @@ -125,6 +125,7 @@ def exchange_acr_refresh_token_for_acr_access_token( :type scope: str :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str + :keyword str grant_type: grant_type for the request :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken @@ -136,7 +137,7 @@ def exchange_acr_refresh_token_for_acr_access_token( } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/x-www-form-urlencoded") - grant_type = "refresh_token" + grant_type = kwargs.pop("grant_type", "refresh_token") accept = "application/json" # Construct URL From 64937b847bc938e247673e74a18ff18f9b215e40 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 5 May 2021 10:20:02 -0400 Subject: [PATCH 25/42] adding basics for anon --- .../azure/containerregistry/__init__.py | 2 ++ .../azure/containerregistry/_anon_client.py | 20 +++------------ .../_anonymous_exchange_client.py | 4 +-- .../_authentication_policy.py | 6 ++++- .../azure/containerregistry/_base_client.py | 3 --- .../azure-containerregistry/tests/preparer.py | 1 + .../tests/test_anon_access.py | 25 +++---------------- .../azure-containerregistry/tests/testcase.py | 13 +++++++--- 8 files changed, 24 insertions(+), 50 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index 292ac24485c7..a86683264d4a 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from ._anon_client import AnonymousContainerRegistryClient from ._container_registry_client import ContainerRegistryClient from ._container_repository import ContainerRepository from ._models import ( @@ -23,6 +24,7 @@ __version__ = VERSION __all__ = [ + "AnonymousContainerRegistryClient", "ContainerRegistryClient", "ContainerRepository", "ContentProperties", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py index 9bdfeef91282..3cdd9fd72426 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py @@ -27,10 +27,10 @@ from azure.core.credentials import TokenCredential -class ContainerRegistryClient(ContainerRegistryBaseClient): +class AnonymousContainerRegistryClient(ContainerRegistryBaseClient): def __init__(self, endpoint, **kwargs): # type: (str, TokenCredential, Dict[str, Any]) -> None - """Create a ContainerRegistryClient from an ACR endpoint and a credential + """Create a AnonymousContainerRegistryClient from an ACR endpoint and a credential :param str endpoint: An ACR endpoint :returns: None @@ -39,21 +39,7 @@ def __init__(self, endpoint, **kwargs): if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint - super(ContainerRegistryClient, self).__init__(endpoint=endpoint, **kwargs) - - # @distributed_trace - # def delete_repository(self, repository_name, **kwargs): - # # type: (str, Dict[str, Any]) -> DeleteRepositoryResult - # """Delete a repository - - # :param str repository_name: The repository to delete - # :returns: Object containing information about the deleted repository - # :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` - # :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - # """ - # return DeleteRepositoryResult._from_generated( # pylint: disable=protected-access - # self._client.container_registry.delete_repository(repository_name, **kwargs) - # ) + super(AnonymousContainerRegistryClient, self).__init__(endpoint=endpoint, credential=None, **kwargs) @distributed_trace def list_repository_names(self, **kwargs): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py index 0c8af490cc8e..a46db4783e90 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -7,8 +7,6 @@ import time from typing import TYPE_CHECKING, Dict, Any -from azure.core.pipeline.policies import SansIOHTTPPolicy - from ._exchange_client import ExchangeClientAuthenticationPolicy from ._generated import ContainerRegistry from ._helpers import _parse_challenge @@ -18,7 +16,7 @@ from azure.core.credentials import TokenCredential -class ACRExchangeClient(object): +class AnonymousACRExchangeClient(object): """Class for handling oauth authentication requests :param endpoint: Azure Container Registry endpoint diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py index 327f610e7885..7ff3d75e91ad 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py @@ -8,6 +8,7 @@ from azure.core.pipeline.policies import HTTPPolicy +from ._anonymous_exchange_client import AnonymousACRExchangeClient from ._exchange_client import ACRExchangeClient from ._helpers import _enforce_https @@ -24,7 +25,10 @@ def __init__(self, credential, endpoint): # type: (TokenCredential, str) -> None super(ContainerRegistryChallengePolicy, self).__init__() self._credential = credential - self._exchange_client = ACRExchangeClient(endpoint, self._credential) + if not self._credential: + self._exchange_client = AnonymousACRExchangeClient(endpoint) + else: + self._exchange_client = ACRExchangeClient(endpoint, self._credential) def on_request(self, request): # type: (PipelineRequest) -> None diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py index 1e4e8f040ae9..4cfeff6132e7 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py @@ -8,7 +8,6 @@ from azure.core.pipeline.transport import HttpTransport -from ._anon_auth_policy import AnonymousContainerRegistryChallengePolicy from ._authentication_policy import ContainerRegistryChallengePolicy from ._generated import ContainerRegistry from ._user_agent import USER_AGENT @@ -34,8 +33,6 @@ class ContainerRegistryBaseClient(object): def __init__(self, endpoint, credential, **kwargs): # type: (str, TokenCredential, Dict[str, Any]) -> None auth_policy = ContainerRegistryChallengePolicy(credential, endpoint) - if not credential: - auth_policy = AnonymousContainerRegistryChallengePolicy(endpoint) self._client = ContainerRegistry( credential=credential, url=endpoint, diff --git a/sdk/containerregistry/azure-containerregistry/tests/preparer.py b/sdk/containerregistry/azure-containerregistry/tests/preparer.py index 3e1252124671..7595126817f9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/preparer.py +++ b/sdk/containerregistry/azure-containerregistry/tests/preparer.py @@ -12,4 +12,5 @@ "containerregistry", containerregistry_endpoint="fake_url.azurecr.io", containerregistry_resource_group="fake_rg", + containerregistry_anon_endpoint="fake_url.azurecr.io", ) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index ef0293170c4f..f5e9d64b25db 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -21,7 +21,7 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() def test_list_repository_names(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) + client = self.create_anon_client(containerregistry_endpoint) repositories = client.list_repository_names() assert isinstance(repositories, ItemPaged) @@ -36,6 +36,7 @@ def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 + @pytest.mark.skip("pending") @acr_preparer() def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -57,27 +58,7 @@ def test_list_repository_names_by_page(self, containerregistry_endpoint): assert total_pages > 1 - @acr_preparer() - def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, [TO_BE_DELETED]) - client = self.create_registry_client(containerregistry_endpoint) - - result = client.delete_repository(TO_BE_DELETED) - assert isinstance(result, DeleteRepositoryResult) - assert result.deleted_manifests is not None - assert result.deleted_tags is not None - - for repo in client.list_repository_names(): - if repo == TO_BE_DELETED: - raise ValueError("Repository not deleted") - - @acr_preparer() - def test_delete_repository_does_not_exist(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) - - with pytest.raises(ResourceNotFoundError): - deleted_result = client.delete_repository("not_real_repo") - + @pytest.mark.skip("pending") @acr_preparer() def test_transport_closed_only_once(self, containerregistry_endpoint): transport = RequestsTransport() diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 134af9882399..4d9b5d2e59b1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -6,9 +6,7 @@ import copy from datetime import datetime import json -import logging import os -from azure_devtools.scenario_tests.recording_processors import SubscriptionRecordingProcessor import pytest import re import six @@ -19,12 +17,16 @@ ContainerRegistryClient, ArtifactTagProperties, ContentProperties, - ArtifactManifestProperties, + AnonymousContainerRegistryClient ) from azure.core.credentials import AccessToken from azure.mgmt.containerregistry import ContainerRegistryManagementClient -from azure.mgmt.containerregistry.models import ImportImageParameters, ImportSource, ImportMode +from azure.mgmt.containerregistry.models import ( + ImportImageParameters, + ImportSource, + ImportMode +) from azure.identity import DefaultAzureCredential from devtools_testutils import AzureTestCase @@ -240,6 +242,9 @@ def create_registry_client(self, endpoint, **kwargs): def create_container_repository(self, endpoint, name, **kwargs): return ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) + def create_anon_client(self, endpoint, **kwargs): + return AnonymousContainerRegistryClient(endpoint=endpoint, **kwargs) + def assert_content_permission(self, content_perm, content_perm2): assert isinstance(content_perm, ContentProperties) assert isinstance(content_perm2, ContentProperties) From 315c9f8401b0c5c95fad60e896007079eefef269 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 5 May 2021 10:49:31 -0400 Subject: [PATCH 26/42] adding test infra --- .../tests/test_anon_access.py | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index f5e9d64b25db..3f962a56bc63 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -21,20 +21,21 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() def test_list_repository_names(self, containerregistry_endpoint): - client = self.create_anon_client(containerregistry_endpoint) + self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) + # client = self.create_anon_client(containerregistry_endpoint) - repositories = client.list_repository_names() - assert isinstance(repositories, ItemPaged) + # repositories = client.list_repository_names() + # assert isinstance(repositories, ItemPaged) - count = 0 - prev = None - for repo in repositories: - count += 1 - assert isinstance(repo, six.string_types) - assert prev != repo - prev = repo + # count = 0 + # prev = None + # for repo in repositories: + # count += 1 + # assert isinstance(repo, six.string_types) + # assert prev != repo + # prev = repo - assert count > 0 + # assert count > 0 @pytest.mark.skip("pending") @acr_preparer() From abd4e4ec851cfac93cd51ed03dcce113c060f2c1 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 5 May 2021 15:23:31 -0400 Subject: [PATCH 27/42] adding async tests --- .../azure/containerregistry/__init__.py | 2 - .../azure/containerregistry/_anon_client.py | 178 ---- .../_anonymous_exchange_client.py | 39 +- .../aio/_anon_auth_policy_async.py | 0 .../aio/_anon_client_async.py | 0 .../aio/_async_anonymous_exchange_client.py | 95 ++ .../tests/asynctestcase.py | 3 + ...non_access.test_list_repository_names.yaml | 126 +++ ...ss.test_list_repository_names_by_page.yaml | 288 ++++++ ...ccess.test_transport_closed_only_once.yaml | 286 ++++++ ...cess_async.test_list_repository_names.yaml | 116 +++ ...nc.test_list_repository_names_by_page.yaml | 868 ++++++++++++++++++ ...async.test_transport_closed_only_once.yaml | 203 ++++ .../tests/test_anon_access.py | 42 +- .../tests/test_anon_access_async.py | 68 ++ .../azure-containerregistry/tests/testcase.py | 3 +- 16 files changed, 2085 insertions(+), 232 deletions(-) delete mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py delete mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py delete mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py create mode 100644 sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names_by_page.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index a86683264d4a..292ac24485c7 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._anon_client import AnonymousContainerRegistryClient from ._container_registry_client import ContainerRegistryClient from ._container_repository import ContainerRepository from ._models import ( @@ -24,7 +23,6 @@ __version__ = VERSION __all__ = [ - "AnonymousContainerRegistryClient", "ContainerRegistryClient", "ContainerRepository", "ContentProperties", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py deleted file mode 100644 index 3cdd9fd72426..000000000000 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anon_client.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from typing import TYPE_CHECKING -from azure.core.exceptions import ( - ClientAuthenticationError, - ResourceNotFoundError, - ResourceExistsError, - HttpResponseError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import Pipeline -from azure.core.tracing.decorator import distributed_trace - -from ._base_client import ContainerRegistryBaseClient, TransportWrapper -from ._container_repository import ContainerRepository -from ._generated.models import AcrErrors -from ._helpers import _parse_next_link -from ._registry_artifact import RegistryArtifact -from ._models import DeleteRepositoryResult - -if TYPE_CHECKING: - from typing import Any, Dict - from azure.core.credentials import TokenCredential - - -class AnonymousContainerRegistryClient(ContainerRegistryBaseClient): - def __init__(self, endpoint, **kwargs): - # type: (str, TokenCredential, Dict[str, Any]) -> None - """Create a AnonymousContainerRegistryClient from an ACR endpoint and a credential - - :param str endpoint: An ACR endpoint - :returns: None - :raises: None - """ - if not endpoint.startswith("https://") and not endpoint.startswith("http://"): - endpoint = "https://" + endpoint - self._endpoint = endpoint - super(AnonymousContainerRegistryClient, self).__init__(endpoint=endpoint, credential=None, **kwargs) - - @distributed_trace - def list_repository_names(self, **kwargs): - # type: (Dict[str, Any]) -> ItemPaged[str] - """List all repositories - - :keyword max: Maximum number of repositories to return - :paramtype max: int - :keyword last: Query parameter for the last item in the previous call. Ensuing - call will return values after last lexically - :paramtype last: str - :keyword results_per_page: Number of repositories to return per page - :paramtype results_per_page: int - :return: ItemPaged[str] - :rtype: :class:`~azure.core.paging.ItemPaged` - :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` - """ - n = kwargs.pop("results_per_page", None) - last = kwargs.pop("last", None) - - cls = kwargs.pop("cls", None) # type: ClsType["_models.Repositories"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters["Accept"] = self._client._serialize.header( # pylint: disable=protected-access - "accept", accept, "str" - ) - - if not next_link: - # Construct URL - url = "/acr/v1/_catalog" - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if last is not None: - query_parameters["last"] = self._client._serialize.query( # pylint: disable=protected-access - "last", last, "str" - ) - if n is not None: - query_parameters["n"] = self._client._serialize.query( # pylint: disable=protected-access - "n", n, "int" - ) - - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - "url": self._client._serialize.url( # pylint: disable=protected-access - "self._config.url", - self._client._config.url, # pylint: disable=protected-access - "str", - skip_quote=True, - ), - } - url = self._client._client.format_url(url, **path_format_arguments) # pylint: disable=protected-access - request = self._client._client.get( # pylint: disable=protected-access - url, query_parameters, header_parameters - ) - return request - - def extract_data(pipeline_response): - deserialized = self._client._deserialize( # pylint: disable=protected-access - "Repositories", pipeline_response - ) - list_of_elem = deserialized.repositories or [] - if cls: - list_of_elem = cls(list_of_elem) - link = None - if "Link" in pipeline_response.http_response.headers.keys(): - link = _parse_next_link(pipeline_response.http_response.headers["Link"]) - elif "link" in pipeline_response.http_response.headers.keys(): # python 2.7 turns this into lowercase - link = _parse_next_link(pipeline_response.http_response.headers["link"]) - return link, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._client._deserialize.failsafe_deserialize( # pylint: disable=protected-access - AcrErrors, response - ) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_repository(self, repository, **kwargs): - # type: (str, Dict[str, Any]) -> ContainerRepository - """Get a Container Repository object - - :param str repository: The repository to create a client for - :returns: :class:`~azure.containerregistry.ContainerRepository` - :raises: None - """ - _pipeline = Pipeline( - transport=TransportWrapper(self._client._client._pipeline._transport), # pylint: disable=protected-access - policies=self._client._client._pipeline._impl_policies, # pylint: disable=protected-access - ) - return ContainerRepository( - self._endpoint, repository, credential=self._credential, pipeline=_pipeline, **kwargs - ) - - @distributed_trace - def get_artifact(self, repository_name, tag_or_digest, **kwargs): - # type: (str, str, Dict[str, Any]) -> RegistryArtifact - """Get a Registry Artifact object - - :param str repository_name: Name of the repository - :param str tag_or_digest: The tag or digest of the artifact - :returns: :class:`~azure.containerregistry.RegistryArtifact` - :raises: None - """ - return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py index a46db4783e90..1a3fde505e2b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -16,6 +16,9 @@ from azure.core.credentials import TokenCredential +PASSWORD = u"password" + + class AnonymousACRExchangeClient(object): """Class for handling oauth authentication requests @@ -28,7 +31,7 @@ class AnonymousACRExchangeClient(object): BEARER = "Bearer" AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - def __init__(self, endpoint, credential, **kwargs): + def __init__(self, endpoint, credential=None, **kwargs): # type: (str, TokenCredential, Dict[str, Any]) -> None if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint @@ -43,37 +46,23 @@ def __init__(self, endpoint, credential, **kwargs): **kwargs ) self._credential = credential - self._refresh_token = None - self._last_refresh_time = 0 def get_acr_access_token(self, challenge, **kwargs): # type: (str, Dict[str, Any]) -> str parsed_challenge = _parse_challenge(challenge) - parsed_challenge["grant_type"] = u"password" - return self.exchange_refresh_token_for_access_token(**parsed_challenge) - # refresh_token = self.get_refresh_token(parsed_challenge["service"], **kwargs) - # return self.exchange_refresh_token_for_access_token( - # refresh_token, service=parsed_challenge["service"], scope=parsed_challenge["scope"], **kwargs - # ) - - def get_refresh_token(self, service, **kwargs): - # type: (str, Dict[str, Any]) -> str - if not self._refresh_token or time.time() - self._last_refresh_time > 300: - self._refresh_token = self.exchange_aad_token_for_refresh_token(service, **kwargs) - self._last_refresh_time = time.time() - return self._refresh_token - - def exchange_aad_token_for_refresh_token(self, service=None, **kwargs): - # type: (str, Dict[str, Any]) -> str - refresh_token = self._client.authentication.exchange_aad_access_token_for_acr_refresh_token( - service=service, access_token=self._credential.get_token(self.credential_scope).token, **kwargs + parsed_challenge["grant_type"] = PASSWORD + return self.exchange_refresh_token_for_access_token( + None, + service=parsed_challenge["service"], + scope=parsed_challenge["scope"], + grant_type=PASSWORD, + **kwargs ) - return refresh_token.refresh_token - def exchange_refresh_token_for_access_token(self, refresh_token, service=None, scope=None, **kwargs): - # type: (str, str, str, Dict[str, Any]) -> str + def exchange_refresh_token_for_access_token(self, refresh_token=None, service=None, scope=None, grant_type=PASSWORD, **kwargs): + # type: (str, str, str, str, Dict[str, Any]) -> str access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( - service=service, scope=scope, refresh_token=refresh_token, **kwargs + service=service, scope=scope, refresh_token=refresh_token, grant_type=grant_type, **kwargs ) return access_token.access_token diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_auth_policy_async.py deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_anon_client_async.py deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py new file mode 100644 index 000000000000..020cff120718 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import re +import time +from typing import TYPE_CHECKING, Dict, List, Any + +from azure.core.pipeline import PipelineRequest, PipelineResponse +from azure.core.pipeline.policies import SansIOHTTPPolicy + +from .._generated.aio import ContainerRegistry +from .._helpers import _parse_challenge +from .._user_agent import USER_AGENT + +if TYPE_CHECKING: + from azure.core.credentials_async import AsyncTokenCredential + + +PASSWORD = u"password" + + +class ExchangeClientAuthenticationPolicy(SansIOHTTPPolicy): + """Authentication policy for exchange client that does not modify the request""" + + def on_request(self, request: PipelineRequest) -> None: + pass + + def on_response(self, request: PipelineRequest, response: PipelineResponse) -> None: + pass + + +class ACRExchangeClient(object): + """Class for handling oauth authentication requests + + :param endpoint: Azure Container Registry endpoint + :type endpoint: str + :param credential: Credential which provides tokens to authenticate requests + :type credential: :class:`azure.core.credentials.TokenCredential` + """ + + BEARER = "Bearer" + AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') + + def __init__(self, endpoint: str, credential: "AsyncTokencredential"=None, **kwargs: Dict[str, Any]) -> None: + if not endpoint.startswith("https://") and not endpoint.startswith("http://"): + endpoint = "https://" + endpoint + self._endpoint = endpoint + self._credential_scope = "https://management.core.windows.net/.default" + self._client = ContainerRegistry( + credential=credential, + url=endpoint, + sdk_moniker=USER_AGENT, + authentication_policy=ExchangeClientAuthenticationPolicy(), + credential_scopes=kwargs.pop("credential_scopes", self._credential_scope), + **kwargs + ) + self._credential = credential + async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: + parsed_challenge = _parse_challenge(challenge) + parsed_challenge["grant_type"] = PASSWORD + return await self.exchange_refresh_token_for_access_token( + None, + service=parsed_challenge["service"], + scope=parsed_challenge["scope"], + grant_type=PASSWORD, + **kwargs + ) + + def exchange_refresh_token_for_access_token( + self, + refresh_token: str = None, + service: str = None, + scope: str = None, + grant_type: str = PASSWORD, + **kwargs: Any + ) -> str: + access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( + service=service, scope=scope, refresh_token=refresh_token, grant_type=grant_type, **kwargs + ) + return access_token.access_token + + async def __aenter__(self): + self._client.__aenter__() + return self + + async def __aexit__(self, *args): + self._client.__aexit__(*args) + + async def close(self) -> None: + """Close sockets opened by the client. + Calling this method is unnecessary when using the client as a context manager. + """ + await self._client.close() diff --git a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py index a2dce2fb7f66..21e997b3193a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py @@ -49,3 +49,6 @@ def create_container_repository(self, endpoint, name, **kwargs): credential=self.get_credential(), **kwargs, ) + + def create_anon_client(self, endpoint, **kwargs): + return ContainerRegistryClient(endpoint=endpoint, credential=None, **kwargs) \ No newline at end of file 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 new file mode 100644 index 000000000000..a5813feabf53 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names.yaml @@ -0,0 +1,126 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18:21: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=password&service=seankaneanon.azurecr.io&scope=registry%3Acatalog%3A%2A + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '82' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:52 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '76' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21: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_repository_names_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml new file mode 100644 index 000000000000..3d9655ab21eb --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml @@ -0,0 +1,288 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18:21: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: + - '1347' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:54 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1072' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:54 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18:21:54 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18:21: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1072' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:55 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + response: + body: + string: '{"repositories": ["library/hello-world"]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '41' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21: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_anon_access.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml new file mode 100644 index 000000000000..7cac7d02d4f9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml @@ -0,0 +1,286 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18:21: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: 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: + - '1347' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/exchange + response: + body: + string: '{"refresh_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:57 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1072' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:57 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '76' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 18: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=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1072' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18:21:57 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '76' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 18: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_anon_access_async.test_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml new file mode 100644 index 000000000000..9c45c25c8128 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:22: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://fake_url.azurecr.io/acr/v1/_catalog +- 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.0b1 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, 05 May 2021 19:22: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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:22: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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", + "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", + "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", + "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", + "repos6ce51658"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '310' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:22: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://fake_url.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 new file mode 100644 index 000000000000..0eefaf9cf6d3 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names_by_page.yaml @@ -0,0 +1,868 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:23:00 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/_catalog?n=2 +- 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.0b1 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, 05 May 2021 19:23:01 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/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:01 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:23:01 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://fake_url.azurecr.io/acr/v1/_catalog?n=2 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23: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 + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + response: + body: + string: '{"repositories": ["repo28471541", "repo2c591564"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:02 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://fake_url.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo2c591564&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:02 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= + response: + body: + string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:02 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo308e19dd&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:02 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= + response: + body: + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:02 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo3c82158b&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + response: + body: + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:03 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + response: + body: + string: '{"repositories": ["repo84e316ff", "repo9b321760"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:03 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + response: + body: + string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&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: Wed, 05 May 2021 19:23:04 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/_catalog?last=repoaf9517b2&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23: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 + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + response: + body: + string: '{"repositories": ["repob0a917be", "repob22512e7"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&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: Wed, 05 May 2021 19:23:04 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/_catalog?last=repob22512e7&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:04 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + response: + body: + string: '{"repositories": ["repoc28d1326", "repod2be1c42"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '49' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:05 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&n=2&orderby= + response: + body: + string: '{"repositories": ["repos6ce51658"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '35' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23:05 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/_catalog?last=repod2be1c42&n=2&orderby= +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml new file mode 100644 index 000000000000..3b8e92caed08 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml @@ -0,0 +1,203 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog +- 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.0b1 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, 05 May 2021 19:23: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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:07 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", + "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", + "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", + "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", + "repos6ce51658"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '310' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:07 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", + "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", + "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", + "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", + "repos6ce51658"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '310' + content-type: application/json; charset=utf-8 + date: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog +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 3f962a56bc63..5b2f50e65db6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -3,44 +3,37 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import pytest import six -from azure.containerregistry import ( - DeleteRepositoryResult, -) -from azure.core.exceptions import ResourceNotFoundError from azure.core.paging import ItemPaged from azure.core.pipeline.transport import RequestsTransport from testcase import ContainerRegistryTestClass -from constants import TO_BE_DELETED, HELLO_WORLD +from constants import HELLO_WORLD from preparer import acr_preparer class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() - def test_list_repository_names(self, containerregistry_endpoint): - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - # client = self.create_anon_client(containerregistry_endpoint) + def test_list_repository_names(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) - # repositories = client.list_repository_names() - # assert isinstance(repositories, ItemPaged) + repositories = client.list_repository_names() + assert isinstance(repositories, ItemPaged) - # count = 0 - # prev = None - # for repo in repositories: - # count += 1 - # assert isinstance(repo, six.string_types) - # assert prev != repo - # prev = repo + count = 0 + prev = None + for repo in repositories: + count += 1 + assert isinstance(repo, six.string_types) + assert prev != repo + prev = repo - # assert count > 0 + assert count > 0 - @pytest.mark.skip("pending") @acr_preparer() - def test_list_repository_names_by_page(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) + def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): + client = self.create_registry_client(containerregistry_anon_endpoint) results_per_page = 2 total_pages = 0 @@ -59,11 +52,10 @@ def test_list_repository_names_by_page(self, containerregistry_endpoint): assert total_pages > 1 - @pytest.mark.skip("pending") @acr_preparer() - def test_transport_closed_only_once(self, containerregistry_endpoint): + def test_transport_closed_only_once(self, containerregistry_anon_endpoint): transport = RequestsTransport() - client = self.create_registry_client(containerregistry_endpoint, transport=transport) + client = self.create_registry_client(containerregistry_anon_endpoint, transport=transport) with client: for r in client.list_repository_names(): pass diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py new file mode 100644 index 000000000000..c82973c4cf9f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import six + +from azure.core.pipeline.transport import AioHttpTransport + +from asynctestcase import AsyncContainerRegistryTestClass +from constants import HELLO_WORLD +from preparer import acr_preparer + + +class TestContainerRegistryClient(AsyncContainerRegistryTestClass): + @acr_preparer() + async def test_list_repository_names(self, containerregistry_endpoint): + client = self.create_registry_client(containerregistry_endpoint) + + repositories = client.list_repository_names() + + count = 0 + prev = None + async for repo in client.list_repository_names(): + count += 1 + assert isinstance(repo, six.string_types) + assert prev != repo + prev = repo + + assert count > 0 + + @acr_preparer() + async def test_list_repository_names_by_page(self, containerregistry_endpoint): + client = self.create_registry_client(containerregistry_endpoint) + results_per_page = 2 + total_pages = 0 + + repository_pages = client.list_repository_names(results_per_page=results_per_page) + + prev = None + async for page in repository_pages.by_page(): + page_count = 0 + async for repo in page: + assert isinstance(repo, six.string_types) + assert prev != repo + prev = repo + page_count += 1 + assert page_count <= results_per_page + total_pages += 1 + + assert total_pages >= 1 + + @acr_preparer() + async def test_transport_closed_only_once(self, containerregistry_endpoint): + transport = AioHttpTransport() + client = self.create_registry_client(containerregistry_endpoint, transport=transport) + async with client: + async for r in client.list_repository_names(): + pass + assert transport.session is not None + + repo_client = client.get_repository(HELLO_WORLD) + async with repo_client: + assert transport.session is not None + + async for r in client.list_repository_names(): + pass + assert transport.session is not None diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 4d9b5d2e59b1..dbb24a2858e8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -17,7 +17,6 @@ ContainerRegistryClient, ArtifactTagProperties, ContentProperties, - AnonymousContainerRegistryClient ) from azure.core.credentials import AccessToken @@ -243,7 +242,7 @@ def create_container_repository(self, endpoint, name, **kwargs): return ContainerRepository(endpoint=endpoint, repository=name, credential=self.get_credential(), **kwargs) def create_anon_client(self, endpoint, **kwargs): - return AnonymousContainerRegistryClient(endpoint=endpoint, **kwargs) + return ContainerRegistryClient(endpoint=endpoint, credential=None, **kwargs) def assert_content_permission(self, content_perm, content_perm2): assert isinstance(content_perm, ContentProperties) From 119575e4129cc1f21e79617a1904edd99fd6b4d2 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 5 May 2021 16:42:31 -0400 Subject: [PATCH 28/42] adding more tests for anon container repo and reg artifact --- .../test_anon_access.test_get_properties.yaml | 130 +++++++++++++ .../test_anon_access.test_list_manifests.yaml | 176 ++++++++++++++++++ ...non_access.test_list_repository_names.yaml | 6 +- ...ss.test_list_repository_names_by_page.yaml | 56 +----- .../test_anon_access.test_list_tags.yaml | 146 +++++++++++++++ ...ccess.test_transport_closed_only_once.yaml | 56 +----- .../tests/test_anon_access.py | 58 +++++- 7 files changed, 531 insertions(+), 97 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tags.yaml diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml new file mode 100644 index 000000000000..eef14307ee6a --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml @@ -0,0 +1,130 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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: + - Wed, 05 May 2021 20:30: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=password&service=seankaneanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 20:30:54 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "createdTime": "2021-05-05T18:00:19.7101132Z", "lastUpdateTime": "2021-05-05T18:00:17.5345755Z", + "manifestCount": 10, "tagCount": 5, "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: + - '326' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 20:30: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_anon_access.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml new file mode 100644 index 000000000000..33321ed8b077 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml @@ -0,0 +1,176 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 20:30: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=password&service=seankaneanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 20:30:55 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-05T18:00:19.9237969Z", "lastUpdateTime": + "2021-05-05T18:00:19.9237969Z", "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-05T18:00:20.0894003Z", "lastUpdateTime": + "2021-05-05T18:00:20.0894003Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-05-05T18:00:20.9702265Z", "lastUpdateTime": + "2021-05-05T18:00:20.9702265Z", "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-05T18:00:20.7515462Z", "lastUpdateTime": + "2021-05-05T18:00:20.7515462Z", "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-05T18:00:21.9872183Z", "lastUpdateTime": + "2021-05-05T18:00:21.9872183Z", "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-05T18:00:20.5796932Z", "lastUpdateTime": + "2021-05-05T18:00:20.5796932Z", "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-05T18:00:19.8200236Z", "lastUpdateTime": + "2021-05-05T18:00:19.8200236Z", "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-05T18:00:20.0067665Z", "lastUpdateTime": + "2021-05-05T18:00:20.0067665Z", "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-05T18:00:28.6381496Z", "lastUpdateTime": + "2021-05-05T18:00:28.6381496Z", "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-05T18:00:19.8821305Z", "lastUpdateTime": + "2021-05-05T18:00:19.8821305Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest", "v1", "v2", "v3", "v4"], "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, 05 May 2021 20:30:55 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 index a5813feabf53..e43981049811 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:52 GMT + - Wed, 05 May 2021 20:30:56 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:52 GMT + - Wed, 05 May 2021 20:30:56 GMT server: - openresty strict-transport-security: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:52 GMT + - Wed, 05 May 2021 20:30:56 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 3d9655ab21eb..5b21af30086a 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:53 GMT + - Wed, 05 May 2021 20:30:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,7 +46,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED + body: grant_type=password&service=seankaneanon.azurecr.io&scope=registry%3Acatalog%3A%2A headers: Accept: - application/json @@ -55,43 +55,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1347' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://seankaneanon.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 05 May 2021 18:21:54 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1072' + - '82' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -107,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:54 GMT + - Wed, 05 May 2021 20:30:57 GMT server: - openresty strict-transport-security: @@ -146,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:54 GMT + - Wed, 05 May 2021 20:30:57 GMT docker-distribution-api-version: - registry/2.0 link: @@ -192,7 +156,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:55 GMT + - Wed, 05 May 2021 20:30:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -208,7 +172,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + body: grant_type=password&service=seankaneanon.azurecr.io&scope=registry%3Acatalog%3A%2A headers: Accept: - application/json @@ -217,7 +181,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1072' + - '82' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -233,7 +197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:55 GMT + - Wed, 05 May 2021 20:30:57 GMT server: - openresty strict-transport-security: @@ -272,7 +236,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:55 GMT + - Wed, 05 May 2021 20:30:58 GMT docker-distribution-api-version: - registry/2.0 server: 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 new file mode 100644 index 000000000000..4ee219de29ed --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tags.yaml @@ -0,0 +1,146 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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, 05 May 2021 20:30: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: grant_type=password&service=seankaneanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: + - keep-alive + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 20:30:58 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "tags": [{"name": "latest", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.8799521Z", "lastUpdateTime": "2021-05-05T18:00:20.8799521Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:24.1188128Z", "lastUpdateTime": "2021-05-05T18:00:24.1188128Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:21.3154368Z", "lastUpdateTime": "2021-05-05T18:00:21.3154368Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.4944944Z", "lastUpdateTime": "2021-05-05T18:00:20.4944944Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.3500586Z", "lastUpdateTime": "2021-05-05T18:00:20.3500586Z", + "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: + - '1631' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 May 2021 20:30: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml index 7cac7d02d4f9..302f4b77f852 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:55 GMT + - Wed, 05 May 2021 20:30:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -46,7 +46,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED + body: grant_type=password&service=seankaneanon.azurecr.io&scope=registry%3Acatalog%3A%2A headers: Accept: - application/json @@ -55,43 +55,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1347' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://seankaneanon.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 05 May 2021 18:21:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1072' + - '82' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -107,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:57 GMT + - Wed, 05 May 2021 20:30:59 GMT server: - openresty strict-transport-security: @@ -146,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:57 GMT + - Wed, 05 May 2021 20:30:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -190,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:57 GMT + - Wed, 05 May 2021 20:30:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -206,7 +170,7 @@ interactions: code: 401 message: Unauthorized - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED + body: grant_type=password&service=seankaneanon.azurecr.io&scope=registry%3Acatalog%3A%2A headers: Accept: - application/json @@ -215,7 +179,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1072' + - '82' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -231,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:57 GMT + - Wed, 05 May 2021 20:31:00 GMT server: - openresty strict-transport-security: @@ -270,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 18:21:57 GMT + - Wed, 05 May 2021 20:31:00 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index 5b2f50e65db6..b919a5998d04 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -5,6 +5,13 @@ # ------------------------------------ import six +from azure.containerregistry import ( + ArtifactTagProperties, + RepositoryProperties, + ArtifactManifestProperties, + RegistryArtifact, +) + from azure.core.paging import ItemPaged from azure.core.pipeline.transport import RequestsTransport @@ -33,7 +40,7 @@ def test_list_repository_names(self, containerregistry_anon_endpoint): @acr_preparer() def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): - client = self.create_registry_client(containerregistry_anon_endpoint) + client = self.create_anon_client(containerregistry_anon_endpoint) results_per_page = 2 total_pages = 0 @@ -55,7 +62,7 @@ def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): @acr_preparer() def test_transport_closed_only_once(self, containerregistry_anon_endpoint): transport = RequestsTransport() - client = self.create_registry_client(containerregistry_anon_endpoint, transport=transport) + client = self.create_anon_client(containerregistry_anon_endpoint, transport=transport) with client: for r in client.list_repository_names(): pass @@ -67,3 +74,50 @@ def test_transport_closed_only_once(self, containerregistry_anon_endpoint): for r in client.list_repository_names(): pass assert transport.session is not None + + @acr_preparer() + def test_get_properties(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + + container_repository = client.get_repository(HELLO_WORLD) + + properties = container_repository.get_properties() + + assert isinstance(properties, RepositoryProperties) + assert properties.name == HELLO_WORLD + + @acr_preparer() + def test_list_manifests(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + + container_repository = client.get_repository(HELLO_WORLD) + + count = 0 + for manifest in container_repository.list_manifests(): + assert isinstance(manifest, ArtifactManifestProperties) + count += 1 + assert count > 0 + + @acr_preparer() + def test_get_artifact(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + + container_repository = client.get_repository(HELLO_WORLD) + + registry_artifact = container_repository.get_artifact("latest") + + assert isinstance(registry_artifact, RegistryArtifact) + + @acr_preparer() + def test_list_tags(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + + container_repository = client.get_repository(HELLO_WORLD) + + registry_artifact = container_repository.get_artifact("latest") + + count = 0 + for tag in registry_artifact.list_tags(): + count += 1 + assert isinstance(tag, ArtifactTagProperties) + assert count > 0 From 7c316937348113b38320b5cb7cc629f6043f9bfe Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 14:26:30 -0400 Subject: [PATCH 29/42] added async anon client --- .../aio/_async_anonymous_exchange_client.py | 20 +- .../aio/_async_authentication_policy.py | 6 +- .../test_anon_access.test_get_properties.yaml | 6 +- .../test_anon_access.test_list_manifests.yaml | 6 +- ...non_access.test_list_repository_names.yaml | 6 +- ...ss.test_list_repository_names_by_page.yaml | 12 +- .../test_anon_access.test_list_tags.yaml | 6 +- ...ccess.test_transport_closed_only_once.yaml | 12 +- ...anon_access_async.test_get_properties.yaml | 87 +++ ...anon_access_async.test_list_manifests.yaml | 133 ++++ ...cess_async.test_list_repository_names.yaml | 51 +- ...nc.test_list_repository_names_by_page.yaml | 735 +----------------- ...test_anon_access_async.test_list_tags.yaml | 103 +++ ...async.test_transport_closed_only_once.yaml | 75 +- .../tests/test_anon_access_async.py | 83 +- 15 files changed, 475 insertions(+), 866 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifests.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tags.yaml diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py index 020cff120718..5f4f045e35e6 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py @@ -7,9 +7,7 @@ import time from typing import TYPE_CHECKING, Dict, List, Any -from azure.core.pipeline import PipelineRequest, PipelineResponse -from azure.core.pipeline.policies import SansIOHTTPPolicy - +from ._async_exchange_client import ExchangeClientAuthenticationPolicy from .._generated.aio import ContainerRegistry from .._helpers import _parse_challenge from .._user_agent import USER_AGENT @@ -21,17 +19,8 @@ PASSWORD = u"password" -class ExchangeClientAuthenticationPolicy(SansIOHTTPPolicy): - """Authentication policy for exchange client that does not modify the request""" - - def on_request(self, request: PipelineRequest) -> None: - pass - - def on_response(self, request: PipelineRequest, response: PipelineResponse) -> None: - pass - -class ACRExchangeClient(object): +class AnonymousACRExchangeClient(object): """Class for handling oauth authentication requests :param endpoint: Azure Container Registry endpoint @@ -57,6 +46,7 @@ def __init__(self, endpoint: str, credential: "AsyncTokencredential"=None, **kwa **kwargs ) self._credential = credential + async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: parsed_challenge = _parse_challenge(challenge) parsed_challenge["grant_type"] = PASSWORD @@ -68,7 +58,7 @@ async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) - **kwargs ) - def exchange_refresh_token_for_access_token( + async def exchange_refresh_token_for_access_token( self, refresh_token: str = None, service: str = None, @@ -76,7 +66,7 @@ def exchange_refresh_token_for_access_token( grant_type: str = PASSWORD, **kwargs: Any ) -> str: - access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( + access_token = await self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( service=service, scope=scope, refresh_token=refresh_token, grant_type=grant_type, **kwargs ) return access_token.access_token diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py index cb54e3a895b0..cc670c6b1630 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py @@ -6,6 +6,7 @@ from azure.core.pipeline.policies import AsyncHTTPPolicy +from ._async_anonymous_exchange_client import AnonymousACRExchangeClient from ._async_exchange_client import ACRExchangeClient from .._helpers import _enforce_https @@ -21,7 +22,10 @@ class ContainerRegistryChallengePolicy(AsyncHTTPPolicy): def __init__(self, credential: "AsyncTokenCredential", endpoint: str) -> None: super().__init__() self._credential = credential - self._exchange_client = ACRExchangeClient(endpoint, self._credential) + if not self._credential: + self._exchange_client = AnonymousACRExchangeClient(endpoint) + else: + self._exchange_client = ACRExchangeClient(endpoint, self._credential) async def on_request(self, request): # type: (PipelineRequest) -> None diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml index eef14307ee6a..1efa847ece81 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:53 GMT + - Thu, 06 May 2021 18:11:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:54 GMT + - Thu, 06 May 2021 18:11:26 GMT server: - openresty strict-transport-security: @@ -114,7 +114,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:54 GMT + - Thu, 06 May 2021 18:11:26 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 33321ed8b077..3178f2e6e28f 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:54 GMT + - Thu, 06 May 2021 18:11:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:55 GMT + - Thu, 06 May 2021 18:11:29 GMT server: - openresty strict-transport-security: @@ -158,7 +158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:55 GMT + - Thu, 06 May 2021 18:11:29 GMT docker-distribution-api-version: - registry/2.0 server: 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 index e43981049811..f212366f6e8b 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:56 GMT + - Thu, 06 May 2021 18:11:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:56 GMT + - Thu, 06 May 2021 18:11:32 GMT server: - openresty strict-transport-security: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:56 GMT + - Thu, 06 May 2021 18:11:33 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 5b21af30086a..02794bd4ce01 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:57 GMT + - Thu, 06 May 2021 18:11:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:57 GMT + - Thu, 06 May 2021 18:11:35 GMT server: - openresty strict-transport-security: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:57 GMT + - Thu, 06 May 2021 18:11:36 GMT docker-distribution-api-version: - registry/2.0 link: @@ -156,7 +156,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:57 GMT + - Thu, 06 May 2021 18:11:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -197,7 +197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:57 GMT + - Thu, 06 May 2021 18:11:36 GMT server: - openresty strict-transport-security: @@ -236,7 +236,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:58 GMT + - Thu, 06 May 2021 18:11:37 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 4ee219de29ed..40b30ca9470f 100644 --- 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 @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:58 GMT + - Thu, 06 May 2021 18:11:38 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:58 GMT + - Thu, 06 May 2021 18:11:39 GMT server: - openresty strict-transport-security: @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:58 GMT + - Thu, 06 May 2021 18:11:40 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml index 302f4b77f852..ded9029c9295 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:59 GMT + - Thu, 06 May 2021 18:11:41 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:59 GMT + - Thu, 06 May 2021 18:11:42 GMT server: - openresty strict-transport-security: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:59 GMT + - Thu, 06 May 2021 18:11:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:30:59 GMT + - Thu, 06 May 2021 18:11:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -195,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:31:00 GMT + - Thu, 06 May 2021 18:11:44 GMT server: - openresty strict-transport-security: @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 05 May 2021 20:31:00 GMT + - Thu, 06 May 2021 18:11:44 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml new file mode 100644 index 000000000000..256e6bc4c12d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml @@ -0,0 +1,87 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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: Thu, 06 May 2021 18:24: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://fake_url.azurecr.io/acr/v1/library%2Fhello-world +- request: + body: + grant_type: password + scope: repository:library/hello-world:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24:20 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "createdTime": "2021-05-05T18:00:19.7101132Z", "lastUpdateTime": "2021-05-05T18:00:17.5345755Z", + "manifestCount": 10, "tagCount": 5, "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: '326' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24: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://fake_url.azurecr.io/acr/v1/library%2Fhello-world +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 new file mode 100644 index 000000000000..88422d708065 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifests.yaml @@ -0,0 +1,133 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '222' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24: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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests +- request: + body: + grant_type: password + scope: repository:library/hello-world:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24:21 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-05-05T18:00:19.9237969Z", "lastUpdateTime": + "2021-05-05T18:00:19.9237969Z", "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-05T18:00:20.0894003Z", "lastUpdateTime": + "2021-05-05T18:00:20.0894003Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-05-05T18:00:20.9702265Z", "lastUpdateTime": + "2021-05-05T18:00:20.9702265Z", "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-05T18:00:20.7515462Z", "lastUpdateTime": + "2021-05-05T18:00:20.7515462Z", "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-05T18:00:21.9872183Z", "lastUpdateTime": + "2021-05-05T18:00:21.9872183Z", "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-05T18:00:20.5796932Z", "lastUpdateTime": + "2021-05-05T18:00:20.5796932Z", "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-05T18:00:19.8200236Z", "lastUpdateTime": + "2021-05-05T18:00:19.8200236Z", "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-05T18:00:20.0067665Z", "lastUpdateTime": + "2021-05-05T18:00:20.0067665Z", "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-05T18:00:28.6381496Z", "lastUpdateTime": + "2021-05-05T18:00:28.6381496Z", "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-05T18:00:19.8821305Z", "lastUpdateTime": + "2021-05-05T18:00:19.8821305Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest", "v1", "v2", "v3", "v4"], "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, 06 May 2021 18:24:21 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://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_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 index 9c45c25c8128..e27ec21b80dc 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:22:58 GMT + date: Thu, 06 May 2021 18:24:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -30,35 +30,7 @@ interactions: url: https://fake_url.azurecr.io/acr/v1/_catalog - 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.0b1 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, 05 May 2021 19:22: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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED + grant_type: password scope: registry:catalog:* service: fake_url.azurecr.io headers: @@ -67,18 +39,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://seankaneanon.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:22:59 GMT + date: Thu, 06 May 2021 18:24:22 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 @@ -91,20 +62,16 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", - "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", - "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", - "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", - "repos6ce51658"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '310' + content-length: '76' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:22:59 GMT + date: Thu, 06 May 2021 18:24:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 0eefaf9cf6d3..cd84eb9a5f54 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:00 GMT + date: Thu, 06 May 2021 18:24:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -30,35 +30,7 @@ interactions: url: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - 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.0b1 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, 05 May 2021 19:23:01 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/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED + grant_type: password scope: registry:catalog:* service: fake_url.azurecr.io headers: @@ -67,18 +39,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://seankaneanon.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:01 GMT + date: Thu, 06 May 2021 18:24:23 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 @@ -91,7 +62,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -100,7 +71,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:01 GMT + date: Thu, 06 May 2021 18:24:23 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -118,7 +89,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -129,7 +100,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:01 GMT + date: Thu, 06 May 2021 18:24:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -141,8 +112,7 @@ interactions: url: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= - request: body: - grant_type: refresh_token - refresh_token: REDACTED + grant_type: password scope: registry:catalog:* service: fake_url.azurecr.io headers: @@ -151,18 +121,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://seankaneanon.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:01 GMT + date: Thu, 06 May 2021 18:24: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 @@ -175,18 +144,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: - string: '{"repositories": ["repo28471541", "repo2c591564"]}' + string: '{"repositories": ["library/hello-world"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '49' + content-length: '41' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:02 GMT + date: Thu, 06 May 2021 18:24:23 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 @@ -194,675 +162,4 @@ interactions: code: 200 message: OK url: https://fake_url.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo2c591564&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:02 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= - response: - body: - string: '{"repositories": ["repo2e8319c5", "repo308e19dd"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:02 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo308e19dd&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:02 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: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= - response: - body: - string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:02 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&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: Wed, 05 May 2021 19:23:02 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/_catalog?last=repo3c82158b&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= - response: - body: - string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:03 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= - response: - body: - string: '{"repositories": ["repo84e316ff", "repo9b321760"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:03 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:03 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= - response: - body: - string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&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: Wed, 05 May 2021 19:23:04 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/_catalog?last=repoaf9517b2&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23: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 - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= - response: - body: - string: '{"repositories": ["repob0a917be", "repob22512e7"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&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: Wed, 05 May 2021 19:23:04 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/_catalog?last=repob22512e7&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:04 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= - response: - body: - string: '{"repositories": ["repoc28d1326", "repod2be1c42"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:04 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://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&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: Wed, 05 May 2021 19:23: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://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 05 May 2021 19:23:05 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&n=2&orderby= - response: - body: - string: '{"repositories": ["repos6ce51658"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '35' - content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:05 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/_catalog?last=repod2be1c42&n=2&orderby= 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 new file mode 100644 index 000000000000..10c20a14fdfc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tags.yaml @@ -0,0 +1,103 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.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: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '222' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24: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/library%2Fhello-world/_tags +- request: + body: + grant_type: password + scope: repository:library/hello-world:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://seankaneanon.azurecr.io/oauth2/token + response: + body: + string: '{"access_token": "REDACTED"}' + headers: + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24:24 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + response: + body: + string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + "tags": [{"name": "latest", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.8799521Z", "lastUpdateTime": "2021-05-05T18:00:20.8799521Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:24.1188128Z", "lastUpdateTime": "2021-05-05T18:00:24.1188128Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:21.3154368Z", "lastUpdateTime": "2021-05-05T18:00:21.3154368Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.4944944Z", "lastUpdateTime": "2021-05-05T18:00:20.4944944Z", + "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-05-05T18:00:20.3500586Z", "lastUpdateTime": "2021-05-05T18:00:20.3500586Z", + "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: '1631' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 18:24: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/library%2Fhello-world/_tags +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml index 3b8e92caed08..46080657748b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:06 GMT + date: Thu, 06 May 2021 18:24:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -30,35 +30,7 @@ interactions: url: https://fake_url.azurecr.io/acr/v1/_catalog - 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.0b1 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, 05 May 2021 19:23: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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED + grant_type: password scope: registry:catalog:* service: fake_url.azurecr.io headers: @@ -67,18 +39,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://seankaneanon.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:07 GMT + date: Thu, 06 May 2021 18:24:25 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 @@ -91,20 +62,16 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", - "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", - "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", - "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", - "repos6ce51658"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '310' + content-length: '76' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:07 GMT + date: Thu, 06 May 2021 18:24:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -121,7 +88,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -132,7 +99,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:07 GMT + date: Thu, 06 May 2021 18:24:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -144,8 +111,7 @@ interactions: url: https://fake_url.azurecr.io/acr/v1/_catalog - request: body: - grant_type: refresh_token - refresh_token: REDACTED + grant_type: password scope: registry:catalog:* service: fake_url.azurecr.io headers: @@ -154,18 +120,17 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://fake_url.azurecr.io/oauth2/token + uri: https://seankaneanon.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:07 GMT + date: Thu, 06 May 2021 18:24:25 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 @@ -178,20 +143,16 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog + uri: https://seankaneanon.azurecr.io/acr/v1/_catalog response: body: - string: '{"repositories": ["library/alpine", "library/busybox", "repo28471541", - "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", - "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", - "repoaf9517b2", "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", - "repos6ce51658"]}' + string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '310' + content-length: '76' content-type: application/json; charset=utf-8 - date: Wed, 05 May 2021 19:23:07 GMT + date: Thu, 06 May 2021 18:24:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 c82973c4cf9f..8a3da9e8fe24 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py @@ -5,6 +5,13 @@ # ------------------------------------ import six +from azure.containerregistry import ( + RepositoryProperties, + ArtifactManifestProperties, + ArtifactTagProperties, +) +from azure.containerregistry.aio import RegistryArtifact + from azure.core.pipeline.transport import AioHttpTransport from asynctestcase import AsyncContainerRegistryTestClass @@ -14,10 +21,9 @@ class TestContainerRegistryClient(AsyncContainerRegistryTestClass): @acr_preparer() - async def test_list_repository_names(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) - - repositories = client.list_repository_names() + async def test_list_repository_names(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None count = 0 prev = None @@ -30,8 +36,10 @@ async def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 @acr_preparer() - async def test_list_repository_names_by_page(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) + async def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + results_per_page = 2 total_pages = 0 @@ -51,9 +59,11 @@ async def test_list_repository_names_by_page(self, containerregistry_endpoint): assert total_pages >= 1 @acr_preparer() - async def test_transport_closed_only_once(self, containerregistry_endpoint): + async def test_transport_closed_only_once(self, containerregistry_anon_endpoint): transport = AioHttpTransport() - client = self.create_registry_client(containerregistry_endpoint, transport=transport) + client = self.create_anon_client(containerregistry_anon_endpoint, transport=transport) + assert client._credential is None + async with client: async for r in client.list_repository_names(): pass @@ -66,3 +76,60 @@ async def test_transport_closed_only_once(self, containerregistry_endpoint): async for r in client.list_repository_names(): pass assert transport.session is not None + + @acr_preparer() + async def test_get_properties(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + + container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None + + properties = await container_repository.get_properties() + + assert isinstance(properties, RepositoryProperties) + assert properties.name == HELLO_WORLD + + @acr_preparer() + async def test_list_manifests(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + + container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None + + count = 0 + async for manifest in container_repository.list_manifests(): + assert isinstance(manifest, ArtifactManifestProperties) + count += 1 + assert count > 0 + + @acr_preparer() + async def test_get_artifact(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + + container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None + + registry_artifact = container_repository.get_artifact("latest") + assert registry_artifact._credential is None + + assert isinstance(registry_artifact, RegistryArtifact) + + @acr_preparer() + async def test_list_tags(self, containerregistry_anon_endpoint): + client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + + container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None + + registry_artifact = container_repository.get_artifact("latest") + assert registry_artifact._credential is None + + count = 0 + async for tag in registry_artifact.list_tags(): + count += 1 + assert isinstance(tag, ArtifactTagProperties) + assert count > 0 From 0c9e77ac6915e0aa5af27f7412c10e5124f0a606 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 14:39:23 -0400 Subject: [PATCH 30/42] asserting credential is false --- .../tests/test_anon_access.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index b919a5998d04..966e3657e152 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -4,6 +4,7 @@ # Licensed under the MIT License. # ------------------------------------ import six +from azure import containerregistry from azure.containerregistry import ( ArtifactTagProperties, @@ -24,6 +25,7 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() def test_list_repository_names(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None repositories = client.list_repository_names() assert isinstance(repositories, ItemPaged) @@ -41,6 +43,8 @@ def test_list_repository_names(self, containerregistry_anon_endpoint): @acr_preparer() def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None + results_per_page = 2 total_pages = 0 @@ -63,12 +67,14 @@ def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): def test_transport_closed_only_once(self, containerregistry_anon_endpoint): transport = RequestsTransport() client = self.create_anon_client(containerregistry_anon_endpoint, transport=transport) + assert client._credential is None with client: for r in client.list_repository_names(): pass assert transport.session is not None with client.get_repository(HELLO_WORLD) as repo_client: + assert repo_client._credential is None assert transport.session is not None for r in client.list_repository_names(): @@ -78,8 +84,10 @@ def test_transport_closed_only_once(self, containerregistry_anon_endpoint): @acr_preparer() def test_get_properties(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None properties = container_repository.get_properties() @@ -89,8 +97,10 @@ def test_get_properties(self, containerregistry_anon_endpoint): @acr_preparer() def test_list_manifests(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None count = 0 for manifest in container_repository.list_manifests(): @@ -101,20 +111,26 @@ def test_list_manifests(self, containerregistry_anon_endpoint): @acr_preparer() def test_get_artifact(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None registry_artifact = container_repository.get_artifact("latest") + assert registry_artifact._credential is None assert isinstance(registry_artifact, RegistryArtifact) @acr_preparer() def test_list_tags(self, containerregistry_anon_endpoint): client = self.create_anon_client(containerregistry_anon_endpoint) + assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) + assert container_repository._credential is None registry_artifact = container_repository.get_artifact("latest") + assert registry_artifact._credential is None count = 0 for tag in registry_artifact.list_tags(): From 7f57d03f540a3ebdd050d20ba4221964fb1e48a6 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 14:44:47 -0400 Subject: [PATCH 31/42] fixing scrubber --- .../test_anon_access.test_get_properties.yaml | 14 +++++------ .../test_anon_access.test_list_manifests.yaml | 14 +++++------ ...non_access.test_list_repository_names.yaml | 12 +++++----- ...ss.test_list_repository_names_by_page.yaml | 24 +++++++++---------- .../test_anon_access.test_list_tags.yaml | 14 +++++------ ...ccess.test_transport_closed_only_once.yaml | 24 +++++++++---------- ...anon_access_async.test_get_properties.yaml | 14 +++++------ ...anon_access_async.test_list_manifests.yaml | 14 +++++------ ...cess_async.test_list_repository_names.yaml | 12 +++++----- ...nc.test_list_repository_names_by_page.yaml | 24 +++++++++---------- ...test_anon_access_async.test_list_tags.yaml | 14 +++++------ ...async.test_transport_closed_only_once.yaml | 24 +++++++++---------- .../azure-containerregistry/tests/testcase.py | 8 +++++++ 13 files changed, 110 insertions(+), 102 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml index 1efa847ece81..f8ae9ac8cc4e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:24 GMT + - Thu, 06 May 2021 18:42:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:26 GMT + - Thu, 06 May 2021 18:42:23 GMT server: - openresty strict-transport-security: @@ -93,10 +93,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-05-05T18:00:19.7101132Z", "lastUpdateTime": "2021-05-05T18:00:17.5345755Z", "manifestCount": 10, "tagCount": 5, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -114,7 +114,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:26 GMT + - Thu, 06 May 2021 18:42:24 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 3178f2e6e28f..acbf1a31a2da 100644 --- 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 @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:27 GMT + - Thu, 06 May 2021 18:42:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:29 GMT + - Thu, 06 May 2021 18:42:25 GMT server: - openresty strict-transport-security: @@ -93,10 +93,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-05-05T18:00:19.9237969Z", "lastUpdateTime": "2021-05-05T18:00:19.9237969Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -158,7 +158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:29 GMT + - Thu, 06 May 2021 18:42:25 GMT docker-distribution-api-version: - registry/2.0 server: 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 index f212366f6e8b..3d8da4564c24 100644 --- 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 @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:31 GMT + - Thu, 06 May 2021 18:42:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:32 GMT + - Thu, 06 May 2021 18:42:26 GMT server: - openresty strict-transport-security: @@ -93,7 +93,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:33 GMT + - Thu, 06 May 2021 18:42:26 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 02794bd4ce01..7367528fbcd7 100644 --- 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 @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:34 GMT + - Thu, 06 May 2021 18:42:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:35 GMT + - Thu, 06 May 2021 18:42:27 GMT server: - openresty strict-transport-security: @@ -93,7 +93,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:36 GMT + - Thu, 06 May 2021 18:42:27 GMT docker-distribution-api-version: - registry/2.0 link: @@ -137,7 +137,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -156,7 +156,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:36 GMT + - Thu, 06 May 2021 18:42:27 GMT docker-distribution-api-version: - registry/2.0 server: @@ -187,7 +187,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -197,7 +197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:36 GMT + - Thu, 06 May 2021 18:42:27 GMT server: - openresty strict-transport-security: @@ -219,7 +219,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: body: string: '{"repositories": ["library/hello-world"]}' @@ -236,7 +236,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:37 GMT + - Thu, 06 May 2021 18:42:28 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 40b30ca9470f..53efeba5a519 100644 --- 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 @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:38 GMT + - Thu, 06 May 2021 18:42:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:39 GMT + - Thu, 06 May 2021 18:42:28 GMT server: - openresty strict-transport-security: @@ -93,10 +93,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "tags": [{"name": "latest", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-05-05T18:00:20.8799521Z", "lastUpdateTime": "2021-05-05T18:00:20.8799521Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:40 GMT + - Thu, 06 May 2021 18:42:28 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml index ded9029c9295..f9b57400d2b1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:41 GMT + - Thu, 06 May 2021 18:42:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:42 GMT + - Thu, 06 May 2021 18:42:29 GMT server: - openresty strict-transport-security: @@ -93,7 +93,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:43 GMT + - Thu, 06 May 2021 18:42:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -135,7 +135,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:43 GMT + - Thu, 06 May 2021 18:42:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -185,7 +185,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + uri: https://fake_url.azurecr.io/oauth2/token response: body: string: '{"access_token": "REDACTED"}' @@ -195,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:44 GMT + - Thu, 06 May 2021 18:42:29 GMT server: - openresty strict-transport-security: @@ -217,7 +217,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:11:44 GMT + - Thu, 06 May 2021 18:42:29 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml index 256e6bc4c12d..3a04abb0c8e5 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:19 GMT + date: Thu, 06 May 2021 18:42:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:20 GMT + date: Thu, 06 May 2021 18:42:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,10 +62,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "createdTime": "2021-05-05T18:00:19.7101132Z", "lastUpdateTime": "2021-05-05T18:00:17.5345755Z", "manifestCount": 10, "tagCount": 5, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": @@ -75,7 +75,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:20 GMT + date: Thu, 06 May 2021 18:42:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 88422d708065..76405f432d5e 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:20 GMT + date: Thu, 06 May 2021 18:42:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:21 GMT + date: Thu, 06 May 2021 18:42:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,10 +62,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", "imageSize": 525, "createdTime": "2021-05-05T18:00:19.9237969Z", "lastUpdateTime": "2021-05-05T18:00:19.9237969Z", "architecture": "amd64", "os": "linux", "mediaType": @@ -120,7 +120,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:21 GMT + date: Thu, 06 May 2021 18:42:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index e27ec21b80dc..b23088246935 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:22 GMT + date: Thu, 06 May 2021 18:42:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:22 GMT + date: Thu, 06 May 2021 18:42:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,7 +62,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:22 GMT + date: Thu, 06 May 2021 18:42:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index cd84eb9a5f54..ade652cab677 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,7 +62,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?n=2 + uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: body: string: '{"repositories": ["library/alpine", "library/busybox"]}' @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -89,7 +89,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -100,7 +100,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -121,14 +121,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -144,7 +144,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: body: string: '{"repositories": ["library/hello-world"]}' @@ -153,7 +153,7 @@ interactions: connection: keep-alive content-length: '41' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:23 GMT + date: Thu, 06 May 2021 18:42:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 10c20a14fdfc..13551440bff2 100644 --- 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 @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:24 GMT + date: Thu, 06 May 2021 18:42:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:24 GMT + date: Thu, 06 May 2021 18:42:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,10 +62,10 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/library%2Fhello-world/_tags + uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags response: body: - string: '{"registry": "seankaneanon.azurecr.io", "imageName": "library/hello-world", + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", "tags": [{"name": "latest", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", "createdTime": "2021-05-05T18:00:20.8799521Z", "lastUpdateTime": "2021-05-05T18:00:20.8799521Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": @@ -91,7 +91,7 @@ interactions: connection: keep-alive content-length: '1631' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:24 GMT + date: Thu, 06 May 2021 18:42:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml index 46080657748b..c6ef397672a9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml @@ -7,7 +7,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:25 GMT + date: Thu, 06 May 2021 18:42:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -39,14 +39,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:25 GMT + date: Thu, 06 May 2021 18:42:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -62,7 +62,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:25 GMT + date: Thu, 06 May 2021 18:42:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -88,7 +88,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -99,7 +99,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:25 GMT + date: Thu, 06 May 2021 18:42:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -120,14 +120,14 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://seankaneanon.azurecr.io/oauth2/token + 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: Thu, 06 May 2021 18:24:25 GMT + date: Thu, 06 May 2021 18:42:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -143,7 +143,7 @@ interactions: User-Agent: - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://seankaneanon.azurecr.io/acr/v1/_catalog + uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world"]}' @@ -152,7 +152,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:24:26 GMT + date: Thu, 06 May 2021 18:42:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index dbb24a2858e8..b18d72083136 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -113,6 +113,11 @@ def process_request(self, request): if "seankane.azurecr.io" in request.url: request.url = request.url.replace("seankane.azurecr.io", "fake_url.azurecr.io") + if "seankaneanon.azurecr.io" in request.uri: + request.uri = request.uri.replace("seankaneanon.azurecr.io", "fake_url.azurecr.io") + if "seankaneanon.azurecr.io" in request.url: + request.url = request.url.replace("seankaneanon.azurecr.io", "fake_url.azurecr.io") + return request def process_response(self, response): @@ -133,6 +138,9 @@ def process_response(self, response): if "seankane.azurecr.io" in body["string"]: body["string"] = body["string"].replace("seankane.azurecr.io", "fake_url.azurecr.io") + if "seankaneanon.azurecr.io" in body["string"]: + body["string"] = body["string"].replace("seankaneanon.azurecr.io", "fake_url.azurecr.io") + refresh = json.loads(body["string"]) if "refresh_token" in refresh.keys(): refresh["refresh_token"] = REDACTED From d260ff93ed01b31c1ee29eb293a3b32e577ae47d Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 14:45:07 -0400 Subject: [PATCH 32/42] new swagger --- sdk/containerregistry/azure-containerregistry/swagger/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerregistry/azure-containerregistry/swagger/README.md b/sdk/containerregistry/azure-containerregistry/swagger/README.md index b0ad620cf64e..6c37b08919fa 100644 --- a/sdk/containerregistry/azure-containerregistry/swagger/README.md +++ b/sdk/containerregistry/azure-containerregistry/swagger/README.md @@ -2,7 +2,7 @@ ### Settings ``` yaml -input-file: https://github.com/Azure/azure-rest-api-specs/raw/40e8bf1504ed672e86027b240dddd9ca94a15d4c/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b32177d9c30b9c3ec1eaad4d22bb1a3194bb631a/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json output-folder: "../azure/containerregistry/_generated" no-namespace-folders: true python: true From dc033e9c9bad08a99ea4bcfcaf2130a0dbfd991c Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 16:16:55 -0400 Subject: [PATCH 33/42] merge conflicts reflected in tests --- .../containerregistry/_registry_artifact.py | 6 +- .../aio/_async_registry_artifact.py | 2 +- .../test_anon_access.test_get_properties.yaml | 12 +- .../test_anon_access.test_list_manifests.yaml | 12 +- ...non_access.test_list_repository_names.yaml | 12 +- ...ss.test_list_repository_names_by_page.yaml | 24 +- .../test_anon_access.test_list_tags.yaml | 12 +- ...ccess.test_transport_closed_only_once.yaml | 24 +- ...anon_access_async.test_get_properties.yaml | 12 +- ...anon_access_async.test_list_manifests.yaml | 12 +- ...cess_async.test_list_repository_names.yaml | 12 +- ...nc.test_list_repository_names_by_page.yaml | 24 +- ...test_anon_access_async.test_list_tags.yaml | 12 +- ...async.test_transport_closed_only_once.yaml | 24 +- ...egistry_client.test_delete_repository.yaml | 43 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...try_client.test_list_repository_names.yaml | 28 +- ...nt.test_list_repository_names_by_page.yaml | 340 +++---- ...lient.test_transport_closed_only_once.yaml | 46 +- ...y_client_async.test_delete_repository.yaml | 43 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...ient_async.test_list_repository_names.yaml | 28 +- ...nc.test_list_repository_names_by_page.yaml | 318 +++---- ...async.test_transport_closed_only_once.yaml | 52 +- ...ner_repository.test_delete_repository.yaml | 72 +- ...y.test_delete_repository_doesnt_exist.yaml | 20 +- ...tainer_repository.test_get_properties.yaml | 24 +- ...tainer_repository.test_list_manifests.yaml | 71 +- ...ository.test_list_manifests_ascending.yaml | 73 +- ...epository.test_list_manifests_by_page.yaml | 869 ++++++++++++++++-- ...sitory.test_list_manifests_descending.yaml | 75 +- ...tainer_repository.test_set_properties.yaml | 48 +- ...pository_async.test_delete_repository.yaml | 72 +- ...c.test_delete_repository_doesnt_exist.yaml | 20 +- ..._repository_async.test_get_properties.yaml | 24 +- ..._repository_async.test_list_manifests.yaml | 71 +- ...y_async.test_list_manifests_ascending.yaml | 73 +- ...ory_async.test_list_manifests_by_page.yaml | 617 +++++++++++-- ..._async.test_list_manifests_descending.yaml | 75 +- ..._repository_async.test_set_properties.yaml | 48 +- ...tainer_repository_client.test_get_tag.yaml | 170 ---- ...iner_repository_client.test_list_tags.yaml | 170 ---- ...itory_client.test_list_tags_ascending.yaml | 170 ---- ...tory_client.test_list_tags_descending.yaml | 170 ---- ...t_async.test_delete_registry_artifact.yaml | 373 -------- ...pository_client_async.test_delete_tag.yaml | 284 ------ ..._repository_client_async.test_get_tag.yaml | 116 --- ...epository_client_async.test_list_tags.yaml | 116 --- ...client_async.test_list_tags_ascending.yaml | 116 --- ...lient_async.test_list_tags_descending.yaml | 116 --- ..._client_async.test_set_tag_properties.yaml | 310 ------- ...rtifact.test_delete_registry_artifact.yaml | 114 ++- ...lete_registry_artifact_does_not_exist.yaml | 48 +- ...est_registry_artifact.test_delete_tag.yaml | 34 +- ...tifact.test_delete_tag_does_not_exist.yaml | 20 +- ...artifact.test_get_manifest_properties.yaml | 90 +- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...stry_artifact.test_get_tag_properties.yaml | 84 +- ...est_get_tag_properties_does_not_exist.yaml | 22 +- ...test_registry_artifact.test_list_tags.yaml | 92 +- ...artifact.test_set_manifest_properties.yaml | 74 +- ...stry_artifact.test_set_tag_properties.yaml | 60 +- ...t_async.test_delete_registry_artifact.yaml | 92 +- ...lete_registry_artifact_does_not_exist.yaml | 20 +- ...gistry_artifact_async.test_delete_tag.yaml | 34 +- ..._async.test_delete_tag_does_not_exist.yaml | 20 +- ...ct_async.test_get_manifest_properties.yaml | 46 +- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...rtifact_async.test_get_tag_properties.yaml | 40 +- ...est_get_tag_properties_does_not_exist.yaml | 22 +- ...egistry_artifact_async.test_list_tags.yaml | 88 +- ...ct_async.test_set_manifest_properties.yaml | 70 +- ...rtifact_async.test_set_tag_properties.yaml | 68 +- .../tests/test_container_repository_client.py | 324 ------- .../test_container_repository_client_async.py | 329 ------- .../azure-containerregistry/tests/testcase.py | 50 +- 76 files changed, 2928 insertions(+), 4422 deletions(-) delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py delete mode 100644 sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 62bfc7e27076..97130cd4e3de 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -173,8 +173,8 @@ def get_properties(self, **kwargs): ) @distributed_trace - def get_registry_artifact_properties(self, tag_or_digest, **kwargs): - # type: (str, Dict[str, Any]) -> ArtifactManifestProperties + def get_manifest_properties(self, **kwargs): + # type: (Dict[str, Any]) -> ArtifactManifestProperties """Get the properties of a registry artifact :param tag_or_digest: The tag/digest of a registry artifact @@ -192,7 +192,7 @@ def get_registry_artifact_properties(self, tag_or_digest, **kwargs): account_url = os.environ["CONTAINERREGISTRY_ENDPOINT"] client = ContainerRepositoryClient(account_url, "my_repository", DefaultAzureCredential()) for artifact in client.list_registry_artifacts(): - properties = client.get_registry_artifact_properties(artifact.digest) + properties = client.get_manifest_properties(artifact.digest) """ if not self._digest: self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else self._get_digest_from_tag() diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index f99502af2095..ca1acaca23d4 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -163,7 +163,7 @@ async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactMan account_url = os.environ["CONTAINERREGISTRY_ENDPOINT"] client = ContainerRepositoryClient(account_url, "my_repository", DefaultAzureCredential()) async for artifact in client.list_registry_artifacts(): - properties = await client.get_registry_artifact_properties(artifact.digest) + properties = await client.get_manifest_properties(artifact.digest) """ if not self._digest: self._digest = self.tag_or_digest if not _is_tag(self.tag_or_digest) else await self._get_digest_from_tag() diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml index f8ae9ac8cc4e..d105f586d07d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:23 GMT + - Thu, 06 May 2021 19:51:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:23 GMT + - Thu, 06 May 2021 19:51:52 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -114,7 +114,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:24 GMT + - Thu, 06 May 2021 19:51:52 GMT docker-distribution-api-version: - registry/2.0 server: 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 index acbf1a31a2da..581ce0f80225 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:24 GMT + - Thu, 06 May 2021 19:51:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:25 GMT + - Thu, 06 May 2021 19:51:53 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_manifests response: @@ -158,7 +158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:25 GMT + - Thu, 06 May 2021 19:51:53 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 3d8da4564c24..ad7f06a0fed4 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:26 GMT + - Thu, 06 May 2021 19:51:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:26 GMT + - Thu, 06 May 2021 19:51:54 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:26 GMT + - Thu, 06 May 2021 19:51:54 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 7367528fbcd7..b5fccb54a074 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:27 GMT + - Thu, 06 May 2021 19:51:54 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:27 GMT + - Thu, 06 May 2021 19:51:55 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:27 GMT + - Thu, 06 May 2021 19:51:55 GMT docker-distribution-api-version: - registry/2.0 link: @@ -135,7 +135,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -156,7 +156,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:27 GMT + - Thu, 06 May 2021 19:51:55 GMT docker-distribution-api-version: - registry/2.0 server: @@ -185,7 +185,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -197,7 +197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:27 GMT + - Thu, 06 May 2021 19:51:55 GMT server: - openresty strict-transport-security: @@ -217,7 +217,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -236,7 +236,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:28 GMT + - Thu, 06 May 2021 19:51:55 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 53efeba5a519..07d404a75fe7 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_tags response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:28 GMT + - Thu, 06 May 2021 19:51:56 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:28 GMT + - Thu, 06 May 2021 19:51:56 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_tags response: @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:28 GMT + - Thu, 06 May 2021 19:51:56 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml index f9b57400d2b1..892c683efb05 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_transport_closed_only_once.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:56 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:57 GMT server: - openresty strict-transport-security: @@ -91,7 +91,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -110,7 +110,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -133,7 +133,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -183,7 +183,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -195,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:57 GMT server: - openresty strict-transport-security: @@ -215,7 +215,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 18:42:29 GMT + - Thu, 06 May 2021 19:51:57 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml index 3a04abb0c8e5..2aac09d1fd55 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:30 GMT + date: Thu, 06 May 2021 19:51:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:30 GMT + date: Thu, 06 May 2021 19:51:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -75,7 +75,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:30 GMT + date: Thu, 06 May 2021 19:51:58 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 76405f432d5e..7c5cf019f408 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:31 GMT + date: Thu, 06 May 2021 19:51:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:31 GMT + date: Thu, 06 May 2021 19:51:59 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_manifests response: @@ -120,7 +120,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:32 GMT + date: Thu, 06 May 2021 19:51:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index b23088246935..4e6063d805fe 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:32 GMT + date: Thu, 06 May 2021 19:52:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:32 GMT + date: Thu, 06 May 2021 19:52:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:32 GMT + date: Thu, 06 May 2021 19:52:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index ade652cab677..a0779ea68d99 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:01 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -87,7 +87,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library/busybox&n=2&orderby= response: @@ -100,7 +100,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -119,7 +119,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -128,7 +128,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -142,7 +142,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library/busybox&n=2&orderby= response: @@ -153,7 +153,7 @@ interactions: connection: keep-alive content-length: '41' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:33 GMT + date: Thu, 06 May 2021 19:52:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 13551440bff2..efd3beca8013 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_tags response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:34 GMT + date: Thu, 06 May 2021 19:52:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:34 GMT + date: Thu, 06 May 2021 19:52:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world/_tags response: @@ -91,7 +91,7 @@ interactions: connection: keep-alive content-length: '1631' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:34 GMT + date: Thu, 06 May 2021 19:52:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml index c6ef397672a9..ec0cd3f40641 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_transport_closed_only_once.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:34 GMT + date: Thu, 06 May 2021 19:52:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:35 GMT + date: Thu, 06 May 2021 19:52:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -60,7 +60,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -71,7 +71,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:35 GMT + date: Thu, 06 May 2021 19:52:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -86,7 +86,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -99,7 +99,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:35 GMT + date: Thu, 06 May 2021 19:52:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -118,7 +118,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -127,7 +127,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:35 GMT + date: Thu, 06 May 2021 19:52:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -141,7 +141,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -152,7 +152,7 @@ interactions: connection: keep-alive content-length: '76' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 18:42:35 GMT + date: Thu, 06 May 2021 19:52:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 87b3d4c83af7..58ecc6319824 100644 --- 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 @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:32 GMT + - Thu, 06 May 2021 19:52:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:33 GMT + - Thu, 06 May 2021 19:52:21 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.65' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:33 GMT + - Thu, 06 May 2021 19:52:21 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.633333' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -164,7 +164,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:35 GMT + - Thu, 06 May 2021 19:52:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -189,7 +189,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -210,7 +210,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:35 GMT + - Thu, 06 May 2021 19:52:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -239,7 +239,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -251,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:35 GMT + - Thu, 06 May 2021 19:52:23 GMT server: - openresty strict-transport-security: @@ -259,7 +259,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.616667' status: code: 200 message: OK @@ -273,17 +273,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -293,11 +292,11 @@ interactions: connection: - keep-alive content-length: - - '384' + - '355' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:36 GMT + - Thu, 06 May 2021 19:52:23 GMT docker-distribution-api-version: - registry/2.0 server: 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 index d359be6931b3..f6ff3dd70b7f 100644 --- 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 @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:36 GMT + - Thu, 06 May 2021 19:52:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:38 GMT + - Thu, 06 May 2021 19:52:25 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.65' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:38 GMT + - Thu, 06 May 2021 19:52:25 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.633333' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:38 GMT + - Thu, 06 May 2021 19:52:25 GMT docker-distribution-api-version: - registry/2.0 server: 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 index b86fcc582b17..1bc72b5e90d2 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:02 GMT + - Thu, 06 May 2021 19:52:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:03 GMT + - Thu, 06 May 2021 19:52:27 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.3' + - '166.633333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:04 GMT + - Thu, 06 May 2021 19:52:27 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.133333' + - '166.616667' status: code: 200 message: OK @@ -131,16 +131,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -150,11 +150,11 @@ interactions: connection: - keep-alive content-length: - - '354' + - '355' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:04 GMT + - Thu, 06 May 2021 19:52:28 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 7abbeb945f4b..45616084fec3 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:04 GMT + - Thu, 06 May 2021 19:52:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:29 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.633333' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -150,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT docker-distribution-api-version: - registry/2.0 link: @@ -175,7 +175,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -225,7 +225,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -237,7 +237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT server: - openresty strict-transport-security: @@ -245,7 +245,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.616667' status: code: 200 message: OK @@ -259,7 +259,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -278,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT docker-distribution-api-version: - registry/2.0 link: @@ -303,7 +303,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo27331535&n=2&orderby= response: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:06 GMT + - Thu, 06 May 2021 19:52:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -353,7 +353,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -365,7 +365,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT server: - openresty strict-transport-security: @@ -373,7 +373,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.6' status: code: 200 message: OK @@ -387,7 +387,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo27331535&n=2&orderby= response: @@ -406,7 +406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT docker-distribution-api-version: - registry/2.0 link: @@ -431,7 +431,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo2c591564&n=2&orderby= response: @@ -452,7 +452,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -481,7 +481,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -493,7 +493,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT server: - openresty strict-transport-security: @@ -501,7 +501,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '166.583333' status: code: 200 message: OK @@ -515,7 +515,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo2c591564&n=2&orderby= response: @@ -534,7 +534,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT docker-distribution-api-version: - registry/2.0 link: @@ -559,7 +559,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo308e19dd&n=2&orderby= response: @@ -580,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -609,7 +609,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -621,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:07 GMT + - Thu, 06 May 2021 19:52:31 GMT server: - openresty strict-transport-security: @@ -629,7 +629,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.566667' status: code: 200 message: OK @@ -643,12 +643,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo308e19dd&n=2&orderby= response: body: - string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + string: '{"repositories": ["repo34ab0fa1", "repo3db51597"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -662,11 +662,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:08 GMT + - Thu, 06 May 2021 19:52:32 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -687,9 +687,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -708,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:08 GMT + - Thu, 06 May 2021 19:52:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -737,7 +737,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -749,7 +749,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:08 GMT + - Thu, 06 May 2021 19:52:32 GMT server: - openresty strict-transport-security: @@ -757,135 +757,7 @@ interactions: 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= - response: - body: - string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' - 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: - - Wed, 28 Apr 2021 21:16:08 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&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, 28 Apr 2021 21:16: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=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:16:08 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.55' status: code: 200 message: OK @@ -899,12 +771,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= response: body: - string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + string: '{"repositories": ["repo3e8d15a3", "repo84e316ff"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -918,11 +790,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:32 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -943,9 +815,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -964,7 +836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -993,7 +865,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -1005,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:32 GMT server: - openresty strict-transport-security: @@ -1013,7 +885,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.533333' status: code: 200 message: OK @@ -1027,12 +899,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: - string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + string: '{"repositories": ["repo8b5a11da", "repo9b321760"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1046,11 +918,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:32 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1071,9 +943,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1092,7 +964,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1121,7 +993,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -1133,7 +1005,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:09 GMT + - Thu, 06 May 2021 19:52:33 GMT server: - openresty strict-transport-security: @@ -1141,7 +1013,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.516667' status: code: 200 message: OK @@ -1155,12 +1027,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= response: body: - string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1174,11 +1046,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:33 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1199,9 +1071,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1220,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1249,7 +1121,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -1261,7 +1133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:33 GMT server: - openresty strict-transport-security: @@ -1269,7 +1141,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.5' status: code: 200 message: OK @@ -1283,12 +1155,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= response: body: - string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + string: '{"repositories": ["repob0a917be", "repob22512e7"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1302,11 +1174,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:33 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1327,9 +1199,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1348,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:33 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1377,7 +1249,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -1389,7 +1261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:10 GMT + - Thu, 06 May 2021 19:52:34 GMT server: - openresty strict-transport-security: @@ -1397,7 +1269,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.483333' status: code: 200 message: OK @@ -1411,12 +1283,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: - string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + string: '{"repositories": ["repoc1b5131a", "repoc28d1326"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1430,11 +1302,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:11 GMT + - Thu, 06 May 2021 19:52:34 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1455,9 +1327,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1476,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:11 GMT + - Thu, 06 May 2021 19:52:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1505,7 +1377,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -1517,7 +1389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:11 GMT + - Thu, 06 May 2021 19:52:34 GMT server: - openresty strict-transport-security: @@ -1525,7 +1397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' + - '166.466667' status: code: 200 message: OK @@ -1539,12 +1411,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc7611808&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= response: body: - string: '{"repositories": null}' + string: '{"repositories": ["repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1554,11 +1426,11 @@ interactions: connection: - keep-alive content-length: - - '22' + - '50' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:16:11 GMT + - Thu, 06 May 2021 19:52:34 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index 511412eebd11..5b793b25e04d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:48 GMT + - Thu, 06 May 2021 19:52:35 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:50 GMT + - Thu, 06 May 2021 19:52:36 GMT server: - openresty strict-transport-security: @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:50 GMT + - Thu, 06 May 2021 19:52:36 GMT server: - openresty strict-transport-security: @@ -131,17 +131,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +150,11 @@ interactions: connection: - keep-alive content-length: - - '384' + - '355' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:50 GMT + - Thu, 06 May 2021 19:52:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -178,7 +177,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -199,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:50 GMT + - Thu, 06 May 2021 19:52:37 GMT docker-distribution-api-version: - registry/2.0 server: @@ -228,7 +227,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -240,7 +239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:50 GMT + - Thu, 06 May 2021 19:52:37 GMT server: - openresty strict-transport-security: @@ -262,17 +261,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -282,11 +280,11 @@ interactions: connection: - keep-alive content-length: - - '384' + - '355' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:03:51 GMT + - Thu, 06 May 2021 19:52:37 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 0711b1de071f..03aac0ca8a65 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:05 GMT + date: Thu, 06 May 2021 19:52:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:06 GMT + date: Thu, 06 May 2021 19:52:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.45' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:07 GMT + date: Thu, 06 May 2021 19:52:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.15' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -110,7 +110,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:08 GMT + date: Thu, 06 May 2021 19:52:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -126,7 +126,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -139,7 +139,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:08 GMT + date: Thu, 06 May 2021 19:52:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -159,7 +159,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -168,11 +168,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:09 GMT + date: Thu, 06 May 2021 19:52:55 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK @@ -183,23 +183,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '384' + content-length: '355' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:09 GMT + date: Thu, 06 May 2021 19:52:55 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index f48f464865cc..421e1beb7925 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Thu, 29 Apr 2021 23:24:44 GMT + date: Thu, 06 May 2021 19:52:56 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 29 Apr 2021 23:24:45 GMT + date: Thu, 06 May 2021 19:52:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 29 Apr 2021 23:24:45 GMT + date: Thu, 06 May 2021 19:52:57 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Thu, 29 Apr 2021 23:24:45 GMT + date: Thu, 06 May 2021 19:52:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index f328ef4fbde4..76f3db34e4be 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:36 GMT + date: Thu, 06 May 2021 19:52:57 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:37 GMT + date: Thu, 06 May 2021 19:52:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:37 GMT + date: Thu, 06 May 2021 19:52:58 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '166.133333' status: code: 200 message: OK @@ -89,22 +89,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '354' + content-length: '355' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:37 GMT + date: Thu, 06 May 2021 19:52:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index 10a577717d62..7aa56ff95933 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:37 GMT + date: Thu, 06 May 2021 19:52:59 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:38 GMT + date: Thu, 06 May 2021 19:53:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:38 GMT + date: Thu, 06 May 2021 19:53:00 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '166.116667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?n=2 response: @@ -100,7 +100,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:00 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -116,7 +116,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library/busybox&n=2&orderby= response: @@ -129,7 +129,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:00 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -149,7 +149,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -158,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK @@ -173,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=library/busybox&n=2&orderby= response: @@ -184,7 +184,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:01 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -200,7 +200,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo27331535&n=2&orderby= response: @@ -213,7 +213,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -233,7 +233,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -242,11 +242,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -257,7 +257,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo27331535&n=2&orderby= response: @@ -268,7 +268,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:39 GMT + date: Thu, 06 May 2021 19:53:01 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -284,7 +284,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo2c591564&n=2&orderby= response: @@ -297,7 +297,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -317,7 +317,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -326,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:01 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' + x-ms-ratelimit-remaining-calls-per-second: '166.066667' status: code: 200 message: OK @@ -341,7 +341,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo2c591564&n=2&orderby= response: @@ -352,7 +352,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -368,7 +368,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo308e19dd&n=2&orderby= response: @@ -381,7 +381,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -401,7 +401,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -410,11 +410,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK @@ -425,20 +425,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo308e19dd&n=2&orderby= response: body: - string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' + string: '{"repositories": ["repo34ab0fa1", "repo3db51597"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff @@ -452,9 +452,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -465,7 +465,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -474,7 +474,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= - request: body: grant_type: refresh_token @@ -485,7 +485,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -494,11 +494,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:40 GMT + date: Thu, 06 May 2021 19:53:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -509,36 +509,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3c82158b&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= response: body: - string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' + string: '{"repositories": ["repo3e8d15a3", "repo84e316ff"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo3c82158b&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -549,7 +549,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -558,7 +558,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= - request: body: grant_type: refresh_token @@ -569,7 +569,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -578,11 +578,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -593,36 +593,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo3e8d15a3&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= response: body: - string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' + string: '{"repositories": ["repo8b5a11da", "repo9b321760"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:03 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo3e8d15a3&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -633,7 +633,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -642,7 +642,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= - request: body: grant_type: refresh_token @@ -653,7 +653,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -662,11 +662,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -677,36 +677,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo8b5a11da&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= response: body: - string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' + string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:41 GMT + date: Thu, 06 May 2021 19:53:03 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo8b5a11da&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -717,7 +717,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -726,7 +726,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= - request: body: grant_type: refresh_token @@ -737,7 +737,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -746,11 +746,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' + x-ms-ratelimit-remaining-calls-per-second: '165.983333' status: code: 200 message: OK @@ -761,36 +761,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repo9cb4121e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= response: body: - string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' + string: '{"repositories": ["repob0a917be", "repob22512e7"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo9cb4121e&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -801,7 +801,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -810,7 +810,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= - request: body: grant_type: refresh_token @@ -821,7 +821,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -830,11 +830,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' + x-ms-ratelimit-remaining-calls-per-second: '165.966667' status: code: 200 message: OK @@ -845,36 +845,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repob0a917be&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= response: body: - string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' + string: '{"repositories": ["repoc1b5131a", "repoc28d1326"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repob0a917be&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -885,7 +885,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -894,7 +894,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= - request: body: grant_type: refresh_token @@ -905,7 +905,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -914,11 +914,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:42 GMT + date: Thu, 06 May 2021 19:53:04 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.65' + x-ms-ratelimit-remaining-calls-per-second: '165.95' status: code: 200 message: OK @@ -929,102 +929,18 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog?last=repoc1b5131a&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= response: body: - string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' + string: '{"repositories": ["repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:43 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&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: Wed, 28 Apr 2021 21:16: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://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:16:43 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= - response: - body: - string: '{"repositories": null}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '22' + content-length: '50' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:16:43 GMT + date: Thu, 06 May 2021 19:53:04 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -1032,5 +948,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index f5893535779b..436098a8faf5 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:19 GMT + date: Thu, 06 May 2021 19:53:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:20 GMT + date: Thu, 06 May 2021 19:53:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.466667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:20 GMT + date: Thu, 06 May 2021 19:53:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.45' status: code: 200 message: OK @@ -89,23 +89,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '384' + content-length: '355' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:20 GMT + date: Thu, 06 May 2021 19:53:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -120,7 +119,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -133,7 +132,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:20 GMT + date: Thu, 06 May 2021 19:53:06 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -153,7 +152,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -162,11 +161,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:20 GMT + date: Thu, 06 May 2021 19:53:07 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -177,23 +176,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '384' + content-length: '355' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:04:21 GMT + date: Thu, 06 May 2021 19:53:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index 747e8cf9343b..b6f24cd28ea1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:55 GMT + - Thu, 06 May 2021 19:53:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:56 GMT + - Thu, 06 May 2021 19:53:24 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.916667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:57 GMT + - Thu, 06 May 2021 19:53:25 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.466667' status: code: 200 message: OK @@ -131,17 +131,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db", "to_be_deleted"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658", "to_be_deleted"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +150,11 @@ interactions: connection: - keep-alive content-length: - - '400' + - '371' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:57 GMT + - Thu, 06 May 2021 19:53:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -180,7 +179,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -201,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:57 GMT + - Thu, 06 May 2021 19:53:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -230,7 +229,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -242,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:59 GMT + - Thu, 06 May 2021 19:53:27 GMT server: - openresty strict-transport-security: @@ -250,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.516667' status: code: 200 message: OK @@ -268,7 +267,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -280,7 +279,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:04:59 GMT + - Thu, 06 May 2021 19:53:27 GMT server: - openresty strict-transport-security: @@ -288,7 +287,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.266667' status: code: 200 message: OK @@ -304,7 +303,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -333,7 +332,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:01 GMT + - Thu, 06 May 2021 19:53:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -358,7 +357,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -379,7 +378,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:01 GMT + - Thu, 06 May 2021 19:53:29 GMT docker-distribution-api-version: - registry/2.0 server: @@ -408,7 +407,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -420,7 +419,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:01 GMT + - Thu, 06 May 2021 19:53:29 GMT server: - openresty strict-transport-security: @@ -428,7 +427,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.45' status: code: 200 message: OK @@ -442,17 +441,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -462,11 +460,11 @@ interactions: connection: - keep-alive content-length: - - '384' + - '355' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:02 GMT + - Thu, 06 May 2021 19:53:29 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index ec02f04e88cd..0f606832eaa6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:02 GMT + - Thu, 06 May 2021 19:53:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:04 GMT + - Thu, 06 May 2021 19:53:31 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.383333' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:04 GMT + - Thu, 06 May 2021 19:53:31 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.2' + - '165.9' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:04 GMT + - Thu, 06 May 2021 19:53:31 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index 90fc7903b33e..2e18a07072da 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:30 GMT + - Thu, 06 May 2021 19:53:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:32 GMT + - Thu, 06 May 2021 19:53:33 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:32 GMT + - Thu, 06 May 2021 19:53:33 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.633333' status: code: 200 message: OK @@ -131,14 +131,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T21:58:10.1522371Z", - "manifestCount": 12, "tagCount": 6, "changeableAttributes": {"deleteEnabled": + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T22:11:39.5543739Z", + "manifestCount": 12, "tagCount": 7, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "teleportEnabled": false}}' headers: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:32 GMT + - Thu, 06 May 2021 19:53:34 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml index 93d125378fff..79e196f801c4 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:04:19 GMT + - Thu, 06 May 2021 19:53:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:04:20 GMT + - Thu, 06 May 2021 19:53:35 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '166.633333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:04:20 GMT + - Thu, 06 May 2021 19:53:36 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' + - '166.616667' status: code: 200 message: OK @@ -131,22 +131,42 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -157,6 +177,11 @@ interactions: "2021-04-13T15:11:15.9893517Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -165,12 +190,31 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", @@ -181,6 +225,11 @@ interactions: "2021-04-13T15:11:16.0655061Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": @@ -198,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:04:21 GMT + - Thu, 06 May 2021 19:53:36 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml index d01f29dc670b..936c89863249 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:40 GMT + - Thu, 06 May 2021 19:53:37 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:41 GMT + - Thu, 06 May 2021 19:53:38 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.616667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:42 GMT + - Thu, 06 May 2021 19:53:39 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.6' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -140,8 +140,8 @@ interactions: "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -186,6 +186,55 @@ interactions: "2021-04-13T15:11:16.8778338Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "architecture": "ppc64le", "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: @@ -198,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:05:42 GMT + - Thu, 06 May 2021 19:53:39 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml index 293bf9f570ea..3457baedf23b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?n=2 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:06 GMT + - Thu, 06 May 2021 19:53:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:41 GMT server: - openresty strict-transport-security: @@ -79,10 +79,570 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '166.633333' + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + 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: + - Thu, 06 May 2021 19:53:41 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '931' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 May 2021 19:53:42 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&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: + - Thu, 06 May 2021 19: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + 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: + - Thu, 06 May 2021 19:53:42 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "architecture": "mips64le", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '940' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 May 2021 19:53:42 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&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: + - Thu, 06 May 2021 19: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + 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: + - Thu, 06 May 2021 19:53:43 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '931' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 May 2021 19:53:43 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&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: + - Thu, 06 May 2021 19: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + 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: + - Thu, 06 May 2021 19:53:43 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "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: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '927' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 May 2021 19:53:43 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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: + - Thu, 06 May 2021 19: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED headers: @@ -97,7 +657,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +669,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:43 GMT server: - openresty strict-transport-security: @@ -117,7 +677,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.55' status: code: 200 message: OK @@ -131,20 +691,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?n=2 + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": - "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": - "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' @@ -161,11 +721,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:44 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -187,9 +747,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -208,7 +768,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -237,7 +797,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -249,7 +809,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:44 GMT server: - openresty strict-transport-security: @@ -257,7 +817,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.533333' status: code: 200 message: OK @@ -271,21 +831,159 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": - "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": - "2021-04-13T15:11:15.9893517Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}]}' + headers: + access-control-expose-headers: + - Docker-Content-Digest + - WWW-Authenticate + - Link + - X-Ms-Correlation-Request-Id + connection: + - keep-alive + content-length: + - '873' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 May 2021 19:53:45 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&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: + - Thu, 06 May 2021 19:53:45 GMT + 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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + 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: + - Thu, 06 May 2021 19:53:45 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' headers: @@ -297,15 +995,15 @@ interactions: connection: - keep-alive content-length: - - '927' + - '896' content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:08 GMT + - Thu, 06 May 2021 19:53:45 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -327,9 +1025,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abeded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -348,7 +1046,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -377,7 +1075,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -389,7 +1087,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:45 GMT server: - openresty strict-transport-security: @@ -397,7 +1095,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.5' status: code: 200 message: OK @@ -411,22 +1109,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abeded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": - "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": - "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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: - Docker-Content-Digest @@ -436,15 +1135,15 @@ interactions: connection: - keep-alive content-length: - - '889' + - '931' content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:46 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -466,9 +1165,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ad1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -487,7 +1186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -516,7 +1215,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -528,7 +1227,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:46 GMT server: - openresty strict-transport-security: @@ -536,7 +1235,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.483333' status: code: 200 message: OK @@ -550,22 +1249,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ad1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": - "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "manifests": [{"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "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: @@ -576,15 +1275,15 @@ interactions: connection: - keep-alive content-length: - - '936' + - '934' content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:46 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -606,9 +1305,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -627,7 +1326,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:09 GMT + - Thu, 06 May 2021 19:53:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -656,7 +1355,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -668,7 +1367,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:10 GMT + - Thu, 06 May 2021 19:53:46 GMT server: - openresty strict-transport-security: @@ -676,7 +1375,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.466667' status: code: 200 message: OK @@ -690,15 +1389,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": - "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", @@ -716,11 +1415,11 @@ interactions: connection: - keep-alive content-length: - - '929' + - '931' content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:05:10 GMT + - Thu, 06 May 2021 19:53:47 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml index f7c60494fb7e..00c9b55a769a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timedesc response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:17:24 GMT + - Thu, 06 May 2021 19:53:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:17:25 GMT + - Thu, 06 May 2021 19:53:49 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.4' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:17:25 GMT + - Thu, 06 May 2021 19:53:49 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.366667' status: code: 200 message: OK @@ -131,13 +131,62 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -185,8 +234,8 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -198,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:17:26 GMT + - Thu, 06 May 2021 19:53:50 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 690957dd134a..d1ac47f3ec9a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:45 GMT + - Thu, 06 May 2021 19:54:05 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:46 GMT + - Thu, 06 May 2021 19:54:06 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.45' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:46 GMT + - Thu, 06 May 2021 19:54:07 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.333333' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:46 GMT + - Thu, 06 May 2021 19:54:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -182,7 +182,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -203,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:47 GMT + - Thu, 06 May 2021 19:54:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -232,7 +232,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:47 GMT + - Thu, 06 May 2021 19:54:07 GMT server: - openresty strict-transport-security: @@ -252,7 +252,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.316667' status: code: 200 message: OK @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -294,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:47 GMT + - Thu, 06 May 2021 19:54:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -322,7 +322,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -343,7 +343,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:47 GMT + - Thu, 06 May 2021 19:54:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -372,7 +372,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:47 GMT + - Thu, 06 May 2021 19:54:08 GMT server: - openresty strict-transport-security: @@ -392,7 +392,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.3' status: code: 200 message: OK @@ -411,7 +411,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob22512e7 response: @@ -434,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:06:48 GMT + - Thu, 06 May 2021 19:54:08 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index 6f2930072faf..482db79333c1 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:15 GMT + date: Thu, 06 May 2021 19:54:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:16 GMT + date: Thu, 06 May 2021 19:54:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:16 GMT + date: Thu, 06 May 2021 19:54:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,23 +89,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db", "to_be_deleted"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658", "to_be_deleted"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '400' + content-length: '371' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:16 GMT + date: Thu, 06 May 2021 19:54:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -120,7 +119,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -133,7 +132,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:16 GMT + date: Thu, 06 May 2021 19:54:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -152,7 +151,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -161,11 +160,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:17 GMT + date: Thu, 06 May 2021 19:54:26 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.383333' status: code: 200 message: OK @@ -180,7 +179,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -189,11 +188,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:18 GMT + date: Thu, 06 May 2021 19:54:26 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.3' + x-ms-ratelimit-remaining-calls-per-second: '166.05' status: code: 200 message: OK @@ -204,7 +203,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -225,7 +224,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:19 GMT + date: Thu, 06 May 2021 19:54:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -241,7 +240,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: @@ -254,7 +253,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:19 GMT + date: Thu, 06 May 2021 19:54:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -274,7 +273,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -283,11 +282,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:20 GMT + date: Thu, 06 May 2021 19:54:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -298,23 +297,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", - "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", - "repoeb7113db"]}' + "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", + "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", + "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '384' + content-length: '355' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:20 GMT + date: Thu, 06 May 2021 19:54:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index 3ecfd4d68ae3..d964838bb753 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:20 GMT + date: Thu, 06 May 2021 19:54:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:21 GMT + date: Thu, 06 May 2021 19:54:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:21 GMT + date: Thu, 06 May 2021 19:54:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '166.083333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:21 GMT + date: Thu, 06 May 2021 19:54:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index 137fee8eab59..c0cfe2ef48f6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:07 GMT + date: Thu, 06 May 2021 19:54:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:08 GMT + date: Thu, 06 May 2021 19:54:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:08 GMT + date: Thu, 06 May 2021 19:54:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK @@ -89,14 +89,14 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fhello-world response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", - "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T22:11:39.5543739Z", + "manifestCount": 12, "tagCount": 7, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "teleportEnabled": false}}' headers: @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:08 GMT + date: Thu, 06 May 2021 19:54:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml index 63c54c585a08..a6c62d567256 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:40 GMT + date: Thu, 06 May 2021 19:54:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:41 GMT + date: Thu, 06 May 2021 19:54:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:41 GMT + date: Thu, 06 May 2021 19:54:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.566667' status: code: 200 message: OK @@ -89,22 +89,42 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -115,6 +135,11 @@ interactions: "2021-04-13T15:11:15.9893517Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -123,12 +148,31 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", @@ -139,6 +183,11 @@ interactions: "2021-04-13T15:11:16.0655061Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": @@ -149,7 +198,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:41 GMT + date: Thu, 06 May 2021 19:54:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml index c467651583f7..aa58a092eb27 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:42 GMT + date: Thu, 06 May 2021 19:54:35 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:43 GMT + date: Thu, 06 May 2021 19:54:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.983333' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:43 GMT + date: Thu, 06 May 2021 19:54:36 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -98,8 +98,8 @@ interactions: "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -144,12 +144,61 @@ interactions: "2021-04-13T15:11:16.8778338Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "architecture": "ppc64le", "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, 28 Apr 2021 22:07:43 GMT + date: Thu, 06 May 2021 19:54:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml index 13d3b7ee318d..f6a4f035fa91 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?n=2 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:13 GMT + date: Thu, 06 May 2021 19:54:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:14 GMT + date: Thu, 06 May 2021 19:54:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:14 GMT + date: Thu, 06 May 2021 19:54:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -89,31 +89,223 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?n=2 response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + true, "quarantineState": "Passed"}}]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '931' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 19:54:39 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 +- 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/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&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, 06 May 2021 19:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox: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: Thu, 06 May 2021 19:54:39 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://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/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "architecture": "mips64le", "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-length: '940' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 19:54:39 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= +- 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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&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, 06 May 2021 19:54:40 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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox: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: Thu, 06 May 2021 19:54:40 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://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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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-length: '931' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:14 GMT + date: Thu, 06 May 2021 19:54:40 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -121,16 +313,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -141,7 +333,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:14 GMT + date: Thu, 06 May 2021 19:54:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -150,7 +342,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= - request: body: grant_type: refresh_token @@ -161,7 +353,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -170,11 +362,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:14 GMT + date: Thu, 06 May 2021 19:54:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.2' status: code: 200 message: OK @@ -185,9 +377,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", @@ -207,7 +399,7 @@ interactions: connection: keep-alive content-length: '927' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -217,14 +409,14 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: @@ -237,7 +429,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -257,7 +449,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -266,11 +458,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -281,30 +473,126 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "manifests": [{"digest": "sha256:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "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:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + true, "quarantineState": "Passed"}}]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '931' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 19:54:41 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= +- 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/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&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, 06 May 2021 19:54: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/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox: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: Thu, 06 May 2021 19:54:41 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: 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/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": + true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "architecture": "arm64", "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-length: '889' + content-length: '873' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:41 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -312,16 +600,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -332,7 +620,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -341,7 +629,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= - request: body: grant_type: refresh_token @@ -352,7 +640,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -361,11 +649,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:15 GMT + date: Thu, 06 May 2021 19:54:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.15' status: code: 200 message: OK @@ -376,31 +664,222 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + true, "quarantineState": "Passed"}}]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '896' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 19:54:42 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= +- 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/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&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, 06 May 2021 19:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox: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: Thu, 06 May 2021 19:54:42 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://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/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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-length: '931' + content-type: application/json; charset=utf-8 + date: Thu, 06 May 2021 19:54:42 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= +- 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/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&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, 06 May 2021 19:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox: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: Thu, 06 May 2021 19:54:42 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://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/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "manifests": [{"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "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-length: '936' + content-length: '934' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:16 GMT + date: Thu, 06 May 2021 19:54:43 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -408,16 +887,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -428,7 +907,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:16 GMT + date: Thu, 06 May 2021 19:54:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -437,7 +916,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= - request: body: grant_type: refresh_token @@ -448,7 +927,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -457,11 +936,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:16 GMT + date: Thu, 06 May 2021 19:54:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.1' status: code: 200 message: OK @@ -472,15 +951,15 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": - "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", @@ -492,9 +971,9 @@ interactions: headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '929' + content-length: '931' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:18:16 GMT + date: Thu, 06 May 2021 19:54:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -502,5 +981,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml index 4aec97e4a07e..6182812ef116 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timedesc response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:48 GMT + date: Thu, 06 May 2021 19:54:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:49 GMT + date: Thu, 06 May 2021 19:54:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' + x-ms-ratelimit-remaining-calls-per-second: '166.15' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:49 GMT + date: Thu, 06 May 2021 19:54:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '166.583333' status: code: 200 message: OK @@ -89,13 +89,62 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": + "2021-05-05T14:12:53.9757197Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", + "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": + "2021-05-05T14:12:53.8711031Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": + "2021-05-05T14:12:53.779775Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": + "2021-05-05T14:12:53.7232635Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": + "2021-05-05T14:12:53.5813533Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": + "2021-05-05T14:12:53.4609714Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": + "2021-05-05T14:12:53.3522872Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", + "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": + "2021-05-05T14:12:53.0315661Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", + "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": + "2021-05-05T14:12:52.9174164Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", + "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": + "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -143,13 +192,13 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' + "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: Wed, 28 Apr 2021 22:07:49 GMT + date: Thu, 06 May 2021 19:54:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index fa2ab96cee3c..f41702455d4f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:08 GMT + date: Thu, 06 May 2021 19:55:01 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -124,7 +124,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -137,7 +137,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:02 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -157,7 +157,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -166,11 +166,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:02 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -186,7 +186,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -201,7 +201,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,7 +221,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -234,7 +234,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:09 GMT + date: Thu, 06 May 2021 19:55:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -254,7 +254,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -263,11 +263,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:10 GMT + date: Thu, 06 May 2021 19:55:03 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '166.216667' status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo2c591564 response: @@ -298,7 +298,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:09:10 GMT + date: Thu, 06 May 2021 19:55:03 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml deleted file mode 100644 index 6f7daca9b99c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest - 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: - - Wed, 28 Apr 2021 22:05: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: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:37 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:37 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tag": {"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: - - '384' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 22:05: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_repository_client.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml deleted file mode 100644 index 3e186c2a7f9a..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags - 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: - - Wed, 28 Apr 2021 22:05: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: 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.0b1 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, 28 Apr 2021 22:05:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:51 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: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 22:05: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_container_repository_client.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml deleted file mode 100644 index 80a7fee8d49f..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: - - Wed, 28 Apr 2021 22:05: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.0b1 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, 28 Apr 2021 22:05: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 22:05: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml deleted file mode 100644 index 9fa8d7f47510..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: - - Wed, 28 Apr 2021 22:05: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: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:58 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 28 Apr 2021 22:05: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 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml deleted file mode 100644 index e81d332af0f2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml +++ /dev/null @@ -1,373 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repod2be1c42", "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, 28 Apr 2021 22:06:56 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/repod2be1c42/_manifests -- 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.0b1 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, 28 Apr 2021 22:06:57 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:57 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-04-28T22:06:48.3399262Z", "lastUpdateTime": - "2021-04-28T22:06:48.3399262Z", "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-04-28T21:57:30.3440475Z", "lastUpdateTime": - "2021-04-28T21:57:30.3440475Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-04-28T21:57:30.4533632Z", "lastUpdateTime": - "2021-04-28T21:57:30.4533632Z", "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-04-28T21:57:30.5300561Z", "lastUpdateTime": - "2021-04-28T21:57:30.5300561Z", "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-04-28T21:57:32.0924058Z", "lastUpdateTime": - "2021-04-28T21:57:32.0924058Z", "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-04-28T21:57:30.9899777Z", "lastUpdateTime": - "2021-04-28T21:57:30.9899777Z", "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-04-28T21:57:30.776776Z", "lastUpdateTime": - "2021-04-28T21:57:30.776776Z", "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-04-28T21:57:30.385213Z", "lastUpdateTime": - "2021-04-28T21:57:30.385213Z", "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-04-28T21:57:30.6265018Z", "lastUpdateTime": - "2021-04-28T21:57:30.6265018Z", "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-04-28T21:57:29.6931249Z", "lastUpdateTime": - "2021-04-28T21:57:29.6931249Z", "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: Wed, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repod2be1c42", "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: Wed, 28 Apr 2021 22:06: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://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Wed, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repod2be1c42", "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, 28 Apr 2021 22:06: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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repod2be1c42:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:59 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": - [{"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 525, "createdTime": "2021-04-28T21:57:30.3440475Z", "lastUpdateTime": - "2021-04-28T21:57:30.3440475Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-04-28T21:57:30.4533632Z", "lastUpdateTime": - "2021-04-28T21:57:30.4533632Z", "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-04-28T21:57:30.5300561Z", "lastUpdateTime": - "2021-04-28T21:57:30.5300561Z", "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-04-28T21:57:32.0924058Z", "lastUpdateTime": - "2021-04-28T21:57:32.0924058Z", "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-04-28T21:57:30.9899777Z", "lastUpdateTime": - "2021-04-28T21:57:30.9899777Z", "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-04-28T21:57:30.776776Z", "lastUpdateTime": - "2021-04-28T21:57:30.776776Z", "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-04-28T21:57:30.385213Z", "lastUpdateTime": - "2021-04-28T21:57:30.385213Z", "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-04-28T21:57:30.6265018Z", "lastUpdateTime": - "2021-04-28T21:57:30.6265018Z", "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-04-28T21:57:29.6931249Z", "lastUpdateTime": - "2021-04-28T21:57:29.6931249Z", "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: Wed, 28 Apr 2021 22:06:59 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml deleted file mode 100644 index c1ce8b5d4832..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml +++ /dev/null @@ -1,284 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repos6ce51658", "Action": "metadata_read"}]}]}' - 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, 28 Apr 2021 22:22: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/repos6ce51658/_tags/tag6ce51658 -- 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.0b1 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, 28 Apr 2021 22:22:51 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:repos6ce51658:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22: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 - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repos6ce51658", "tag": - {"name": "tag6ce51658", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T22:17:10.2570329Z", "lastUpdateTime": "2021-04-28T22:17:10.2570329Z", - "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: '387' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:22: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/repos6ce51658/_tags/tag6ce51658 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repos6ce51658", "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: Wed, 28 Apr 2021 22:22: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://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repos6ce51658:delete - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22:51 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: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Wed, 28 Apr 2021 22:22:52 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:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519 - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 202 - message: Accepted - url: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repos6ce51658", "Action": "metadata_read"}]}]}' - 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, 28 Apr 2021 22:22:57 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/repos6ce51658/_tags/tag6ce51658 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repos6ce51658:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22:57 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 - 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: Wed, 28 Apr 2021 22:22:57 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://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml deleted file mode 100644 index b319a825b3fb..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest - 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: Mon, 03 May 2021 15:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest -- 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.0b1 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: Mon, 03 May 2021 15:54:52 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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: Mon, 03 May 2021 15:54:52 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tag": {"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: '384' - content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 15:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml deleted file mode 100644 index 355f26677602..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml +++ /dev/null @@ -1,116 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags - 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: Wed, 28 Apr 2021 22:07: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/library%2Fbusybox/_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.0b1 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, 28 Apr 2021 22:07:51 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/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:51 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: '387' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07: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/library%2Fbusybox/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml deleted file mode 100644 index 8552f6ce3f6f..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml +++ /dev/null @@ -1,116 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: Wed, 28 Apr 2021 22:07: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc -- 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.0b1 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, 28 Apr 2021 22:07: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 - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:53 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: '387' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:53 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/library%2Fbusybox/_tags?orderby=timeasc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml deleted file mode 100644 index e1ac92261958..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml +++ /dev/null @@ -1,116 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: Wed, 28 Apr 2021 22:07:55 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/library%2Fbusybox/_tags?orderby=timedesc -- 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.0b1 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, 28 Apr 2021 22:07: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 - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:56 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", - "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: '387' - content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:07:56 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/library%2Fbusybox/_tags?orderby=timedesc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml deleted file mode 100644 index bfab2472a500..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd -- 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.0b1 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, 28 Apr 2021 22:08:34 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://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:34 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://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", - "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, 28 Apr 2021 22:08:34 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/repo308e19dd/_tags/tag308e19dd -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08:34 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/repo308e19dd/_tags/tag308e19dd -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:34 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", - "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd -- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo308e19dd:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:35 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": - {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", - "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index a5f881ed2197..74a48e8aed72 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3c82158b/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:03 GMT + - Thu, 06 May 2021 20:15:28 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:04 GMT + - Thu, 06 May 2021 20:15:30 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.033333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:04 GMT + - Thu, 06 May 2021 20:15:30 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.016667' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3c82158b/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-03T16:09:54.1266717Z", "lastUpdateTime": - "2021-05-03T16:09:54.1266717Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:19.016387Z", "lastUpdateTime": + "2021-05-06T20:15:19.016387Z", "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": 0, "createdTime": "2021-04-28T15:25:27.320821Z", "lastUpdateTime": - "2021-04-28T15:25:27.320821Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.8391231Z", "lastUpdateTime": + "2021-05-06T20:15:18.8391231Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T15:25:27.6536514Z", "lastUpdateTime": - "2021-04-28T15:25:27.6536514Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.7694915Z", "lastUpdateTime": + "2021-05-06T20:15:18.7694915Z", "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": 0, "createdTime": "2021-04-28T15:25:29.223197Z", "lastUpdateTime": - "2021-04-28T15:25:29.223197Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.9186347Z", "lastUpdateTime": + "2021-05-06T20:15:18.9186347Z", "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": 0, "createdTime": "2021-04-28T15:25:27.8694422Z", "lastUpdateTime": - "2021-04-28T15:25:27.8694422Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T20:15:19.0515612Z", "lastUpdateTime": + "2021-05-06T20:15:19.0515612Z", "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": 0, "createdTime": "2021-04-28T15:25:27.2462505Z", "lastUpdateTime": - "2021-04-28T15:25:27.2462505Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.9771628Z", "lastUpdateTime": + "2021-05-06T20:15:18.9771628Z", "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": 0, "createdTime": "2021-04-28T15:25:26.8210861Z", "lastUpdateTime": - "2021-04-28T15:25:26.8210861Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.7162494Z", "lastUpdateTime": + "2021-05-06T20:15:18.7162494Z", "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": 0, "createdTime": "2021-04-28T15:25:27.1316373Z", "lastUpdateTime": - "2021-04-28T15:25:27.1316373Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:15:18.8746033Z", "lastUpdateTime": + "2021-05-06T20:15:18.8746033Z", "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": 0, "createdTime": "2021-04-28T15:25:26.9759284Z", "lastUpdateTime": - "2021-04-28T15:25:26.9759284Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-06T20:15:19.1946262Z", "lastUpdateTime": + "2021-05-06T20:15:19.1946262Z", "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": 0, "createdTime": "2021-04-28T15:25:27.0302186Z", "lastUpdateTime": - "2021-04-28T15:25:27.0302186Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T20:15:18.1378327Z", "lastUpdateTime": + "2021-05-06T20:15:18.1378327Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag3c82158b"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:05 GMT + - Thu, 06 May 2021 20:15:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -225,9 +225,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -246,7 +246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:06 GMT + - Thu, 06 May 2021 20:15:31 GMT docker-distribution-api-version: - registry/2.0 server: @@ -275,7 +275,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:06 GMT + - Thu, 06 May 2021 20:15:32 GMT server: - openresty strict-transport-security: @@ -295,7 +295,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' + - '165.683333' status: code: 200 message: OK @@ -313,7 +313,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -325,7 +325,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:06 GMT + - Thu, 06 May 2021 20:15:32 GMT server: - openresty strict-transport-security: @@ -333,7 +333,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' + - '165.383333' status: code: 200 message: OK @@ -349,12 +349,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://fake_url.azurecr.io/v2/repo3c82158b/manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + uri: https://fake_url.azurecr.io/acr/v1/repo3c82158b response: body: - string: '' + string: '{"manifestsDeleted": ["sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", + "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", + "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", + "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", + "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", + "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", + "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", + "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519"], + "tagsDeleted": ["tag3c82158b"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -364,9 +374,11 @@ interactions: connection: - keep-alive content-length: - - '0' + - '793' + content-type: + - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:07 GMT + - Thu, 06 May 2021 20:15:34 GMT docker-distribution-api-version: - registry/2.0 server: @@ -391,7 +403,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -412,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:17 GMT + - Thu, 06 May 2021 20:15:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -441,7 +453,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -453,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:17 GMT + - Thu, 06 May 2021 20:15:44 GMT server: - openresty strict-transport-security: @@ -461,7 +473,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.366667' status: code: 200 message: OK @@ -475,7 +487,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3c82158b/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -494,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:10:17 GMT + - Thu, 06 May 2021 20:15:44 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index d5f08528a4cb..2aa9cced1e5c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -8,15 +8,17 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1 response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b291da6", "Action": "metadata_write"}]}]}' + "repository", "Name": "repob0ef1bd1", "Action": "delete"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -26,11 +28,11 @@ interactions: connection: - keep-alive content-length: - - '215' + - '208' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:39 GMT + - Thu, 06 May 2021 19:58:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:41 GMT + - Thu, 06 May 2021 19:58:06 GMT server: - openresty strict-transport-security: @@ -79,12 +81,12 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.183333' status: code: 200 message: OK - request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob0ef1bd1%3Ametadata_read&refresh_token=REDACTED + body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepob0ef1bd1%3Adelete&refresh_token=REDACTED headers: Accept: - application/json @@ -93,11 +95,11 @@ interactions: Connection: - keep-alive Content-Length: - - '1080' + - '1073' Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:41 GMT + - Thu, 06 May 2021 19:58:06 GMT server: - openresty strict-transport-security: @@ -117,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.716667' + - '165.866667' status: code: 200 message: OK @@ -130,14 +132,16 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1/_tags/does_not_exist + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repob0ef1bd1 response: body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' + string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not + known to registry", "detail": {"name": "repob0ef1bd1"}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -147,11 +151,11 @@ interactions: connection: - keep-alive content-length: - - '81' + - '120' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:41 GMT + - Thu, 06 May 2021 19:58:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -161,6 +165,8 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-ratelimit-remaining-calls-per-second: + - '8.000000' status: code: 404 message: Not Found diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index 8bb36829f2d7..131b6b3af54a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:10 GMT + - Thu, 06 May 2021 19:58:22 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:11 GMT + - Thu, 06 May 2021 19:58:23 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.016667' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:12 GMT + - Thu, 06 May 2021 19:58:23 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.1' + - '164.883333' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: @@ -152,7 +152,7 @@ interactions: content-length: - '0' date: - - Mon, 03 May 2021 16:11:12 GMT + - Thu, 06 May 2021 19:58:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -179,7 +179,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo34ab0fa1/_tags response: @@ -200,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:12 GMT + - Thu, 06 May 2021 19:58:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -229,7 +229,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -241,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:12 GMT + - Thu, 06 May 2021 19:58:24 GMT server: - openresty strict-transport-security: @@ -249,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '164.866667' status: code: 200 message: OK @@ -263,7 +263,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo34ab0fa1/_tags response: @@ -294,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:12 GMT + - Thu, 06 May 2021 19:58:24 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 4bdba15ba8f6..c4e1fc4c4b13 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:51 GMT + - Thu, 06 May 2021 19:58:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:52 GMT + - Thu, 06 May 2021 19:58:26 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' + - '165.566667' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:52 GMT + - Thu, 06 May 2021 19:58:26 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' + - '165.55' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:11:53 GMT + - Thu, 06 May 2021 19:58:26 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml index b8e40750a564..3ae9a3dcb0da 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo27331535/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:42 GMT + - Thu, 06 May 2021 20:09:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:43 GMT + - Thu, 06 May 2021 20:09:08 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.45' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:44 GMT + - Thu, 06 May 2021 20:09:09 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.433333' + - '166.633333' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo27331535/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": - "2021-04-28T14:19:08.1493156Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.3894938Z", "lastUpdateTime": + "2021-05-06T15:53:42.3894938Z", "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": 0, "createdTime": "2021-04-28T14:19:08.2257429Z", "lastUpdateTime": - "2021-04-28T14:19:08.2257429Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.1567557Z", "lastUpdateTime": + "2021-05-06T15:53:42.1567557Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4130486Z", "lastUpdateTime": - "2021-04-28T14:19:08.4130486Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.7002714Z", "lastUpdateTime": + "2021-05-06T15:53:42.7002714Z", "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": 0, "createdTime": "2021-04-28T14:19:08.9755326Z", "lastUpdateTime": - "2021-04-28T14:19:08.9755326Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.4848166Z", "lastUpdateTime": + "2021-05-06T15:53:42.4848166Z", "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": 0, "createdTime": "2021-04-28T14:19:08.4645969Z", "lastUpdateTime": - "2021-04-28T14:19:08.4645969Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.5461688Z", "lastUpdateTime": + "2021-05-06T15:53:42.5461688Z", "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": 0, "createdTime": "2021-04-28T14:19:10.1957381Z", "lastUpdateTime": - "2021-04-28T14:19:10.1957381Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.7438041Z", "lastUpdateTime": + "2021-05-06T15:53:42.7438041Z", "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": 0, "createdTime": "2021-04-28T14:19:08.5821358Z", "lastUpdateTime": - "2021-04-28T14:19:08.5821358Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.9029743Z", "lastUpdateTime": + "2021-05-06T15:53:42.9029743Z", "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": 0, "createdTime": "2021-04-28T14:19:07.9519043Z", "lastUpdateTime": - "2021-04-28T14:19:07.9519043Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.625513Z", "lastUpdateTime": + "2021-05-06T15:53:42.625513Z", "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": 0, "createdTime": "2021-04-28T14:19:08.3640124Z", "lastUpdateTime": - "2021-04-28T14:19:08.3640124Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-06T15:53:43.4999465Z", "lastUpdateTime": + "2021-05-06T15:53:43.4999465Z", "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": 0, "createdTime": "2021-04-28T14:19:07.5813228Z", "lastUpdateTime": - "2021-04-28T14:19:07.5813228Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T15:53:41.9348315Z", "lastUpdateTime": + "2021-05-06T15:53:41.9348315Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag27331535"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:44 GMT + - Thu, 06 May 2021 20:09:13 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:45 GMT + - Thu, 06 May 2021 20:09:14 GMT docker-distribution-api-version: - registry/2.0 server: @@ -273,7 +273,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -285,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:45 GMT + - Thu, 06 May 2021 20:09:14 GMT server: - openresty strict-transport-security: @@ -293,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.816667' status: code: 200 message: OK @@ -311,7 +311,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -323,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:45 GMT + - Thu, 06 May 2021 20:09:14 GMT server: - openresty strict-transport-security: @@ -331,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '165.8' status: code: 200 message: OK @@ -345,19 +345,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": - "2021-04-28T14:19:08.1493156Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:53:42.3894938Z", "lastUpdateTime": + "2021-05-06T15:53:42.3894938Z", "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\":\"4/28/2021 9:19:39 + true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:08:58 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -369,11 +369,11 @@ interactions: connection: - keep-alive content-length: - - '812' + - '817' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:46 GMT + - Thu, 06 May 2021 20:09:15 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index e2cab48c44a5..2abcc946359d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_manifests/sha256%3Aabcdefghijkl response: @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 28 Apr 2021 21:19:46 GMT + - Thu, 06 May 2021 20:09:15 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index e91c8988b6da..d0aa940eac31 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc1b5131a/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:01 GMT + - Thu, 06 May 2021 19:58:59 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:03 GMT + - Thu, 06 May 2021 19:59:01 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.85' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:03 GMT + - Thu, 06 May 2021 19:59:01 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' + - '166.633333' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc1b5131a/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T14:54:13.7370801Z", "lastUpdateTime": - "2021-04-28T14:54:13.7370801Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.2179726Z", "lastUpdateTime": + "2021-05-06T15:54:19.2179726Z", "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": 0, "createdTime": "2021-04-28T14:54:14.1322608Z", "lastUpdateTime": - "2021-04-28T14:54:14.1322608Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.5112077Z", "lastUpdateTime": + "2021-05-06T15:54:19.5112077Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T14:54:14.7528767Z", "lastUpdateTime": - "2021-04-28T14:54:14.7528767Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.8397583Z", "lastUpdateTime": + "2021-05-06T15:54:19.8397583Z", "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": 0, "createdTime": "2021-04-28T14:54:14.230217Z", "lastUpdateTime": - "2021-04-28T14:54:14.230217Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.4119171Z", "lastUpdateTime": + "2021-05-06T15:54:19.4119171Z", "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": 0, "createdTime": "2021-04-28T14:54:14.8303731Z", "lastUpdateTime": - "2021-04-28T14:54:14.8303731Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.7573251Z", "lastUpdateTime": + "2021-05-06T15:54:19.7573251Z", "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": 0, "createdTime": "2021-04-28T14:54:14.3299515Z", "lastUpdateTime": - "2021-04-28T14:54:14.3299515Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.3582911Z", "lastUpdateTime": + "2021-05-06T15:54:19.3582911Z", "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": 0, "createdTime": "2021-04-28T14:54:14.9895208Z", "lastUpdateTime": - "2021-04-28T14:54:14.9895208Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.7011001Z", "lastUpdateTime": + "2021-05-06T15:54:19.7011001Z", "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": 0, "createdTime": "2021-04-28T14:54:13.9473522Z", "lastUpdateTime": - "2021-04-28T14:54:13.9473522Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:19.3070634Z", "lastUpdateTime": + "2021-05-06T15:54:19.3070634Z", "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": 0, "createdTime": "2021-04-28T14:54:15.0966574Z", "lastUpdateTime": - "2021-04-28T14:54:15.0966574Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + "imageSize": 1125, "createdTime": "2021-05-06T15:54:20.001879Z", "lastUpdateTime": + "2021-05-06T15:54:20.001879Z", "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": 0, "createdTime": "2021-04-28T14:54:13.2881991Z", "lastUpdateTime": - "2021-04-28T14:54:13.2881991Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T15:54:18.8265488Z", "lastUpdateTime": + "2021-05-06T15:54:18.8265488Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tagc1b5131a"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:03 GMT + - Thu, 06 May 2021 19:59:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc1b5131a/_tags/tagc1b5131a response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:04 GMT + - Thu, 06 May 2021 19:59:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -273,7 +273,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -285,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:05 GMT + - Thu, 06 May 2021 19:59:03 GMT server: - openresty strict-transport-security: @@ -293,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' + - '165.85' status: code: 200 message: OK @@ -311,7 +311,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -323,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:05 GMT + - Thu, 06 May 2021 19:59:03 GMT server: - openresty strict-transport-security: @@ -331,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.75' + - '165.833333' status: code: 200 message: OK @@ -345,14 +345,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc1b5131a/_tags/tagc1b5131a response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "tag": {"name": "tagc1b5131a", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T14:54:13.3752616Z", "lastUpdateTime": "2021-04-28T14:54:13.3752616Z", + "createdTime": "2021-05-06T15:54:18.9703046Z", "lastUpdateTime": "2021-05-06T15:54:18.9703046Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}}' headers: @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:05 GMT + - Thu, 06 May 2021 19:59:03 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index 9e723569c611..b89468e21074 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -9,14 +9,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoc58b1fc1", "Action": "metadata_write"}]}]}' + "repository", "Name": "hello-world", "Action": "metadata_read"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:19 GMT + - Thu, 06 May 2021 19:59:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:20 GMT + - Thu, 06 May 2021 19:59:05 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.233333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:20 GMT + - Thu, 06 May 2021 19:59:05 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '165.466667' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_tags/doesnotexist response: @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 22:06:21 GMT + - Thu, 06 May 2021 19:59:06 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index 633693787055..cb002d801f13 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo25ce0f5d/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:23 GMT + - Thu, 06 May 2021 19:59:21 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:24 GMT + - Thu, 06 May 2021 19:59:22 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '165.9' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:24 GMT + - Thu, 06 May 2021 19:59:23 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.516667' + - '165.883333' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo25ce0f5d/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T15:08:43.2327437Z", "lastUpdateTime": - "2021-04-28T15:08:43.2327437Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:40.9499022Z", "lastUpdateTime": + "2021-05-06T15:54:40.9499022Z", "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": 0, "createdTime": "2021-04-28T15:08:43.6358087Z", "lastUpdateTime": - "2021-04-28T15:08:43.6358087Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:47.0417457Z", "lastUpdateTime": + "2021-05-06T15:54:47.0417457Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T15:08:43.0261552Z", "lastUpdateTime": - "2021-04-28T15:08:43.0261552Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:54:43.3814173Z", "lastUpdateTime": + "2021-05-06T15:54:43.3814173Z", "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": 0, "createdTime": "2021-04-28T15:08:42.8222987Z", "lastUpdateTime": - "2021-04-28T15:08:42.8222987Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:43.2493591Z", "lastUpdateTime": + "2021-05-06T15:54:43.2493591Z", "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": 0, "createdTime": "2021-04-28T15:08:42.642209Z", "lastUpdateTime": - "2021-04-28T15:08:42.642209Z", "architecture": "ppc64le", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + "imageSize": 525, "createdTime": "2021-05-06T15:54:41.6935838Z", "lastUpdateTime": + "2021-05-06T15:54:41.6935838Z", "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": 0, "createdTime": "2021-04-28T15:08:42.7421842Z", "lastUpdateTime": - "2021-04-28T15:08:42.7421842Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:41.7526536Z", "lastUpdateTime": + "2021-05-06T15:54:41.7526536Z", "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": 0, "createdTime": "2021-04-28T15:08:42.8797686Z", "lastUpdateTime": - "2021-04-28T15:08:42.8797686Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:41.9696625Z", "lastUpdateTime": + "2021-05-06T15:54:41.9696625Z", "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": 0, "createdTime": "2021-04-28T15:08:44.3818273Z", "lastUpdateTime": - "2021-04-28T15:08:44.3818273Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:54:41.2760504Z", "lastUpdateTime": + "2021-05-06T15:54:41.2760504Z", "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": 0, "createdTime": "2021-04-28T15:08:43.5610254Z", "lastUpdateTime": - "2021-04-28T15:08:43.5610254Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-06T15:54:41.7915449Z", "lastUpdateTime": + "2021-05-06T15:54:41.7915449Z", "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": 0, "createdTime": "2021-04-28T15:08:41.9477971Z", "lastUpdateTime": - "2021-04-28T15:08:41.9477971Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T15:54:40.7888253Z", "lastUpdateTime": + "2021-05-06T15:54:40.7888253Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag25ce0f5d0", "tag25ce0f5d1", "tag25ce0f5d2", "tag25ce0f5d3"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:25 GMT + - Thu, 06 May 2021 19:59:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -224,7 +224,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo25ce0f5d/_tags response: @@ -245,7 +245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:26 GMT + - Thu, 06 May 2021 19:59:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -274,7 +274,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -286,7 +286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:26 GMT + - Thu, 06 May 2021 19:59:24 GMT server: - openresty strict-transport-security: @@ -294,7 +294,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.8' status: code: 200 message: OK @@ -312,7 +312,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:26 GMT + - Thu, 06 May 2021 19:59:24 GMT server: - openresty strict-transport-security: @@ -332,7 +332,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.666667' + - '165.75' status: code: 200 message: OK @@ -346,26 +346,26 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo25ce0f5d/_tags response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "tags": [{"name": "tag25ce0f5d0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:08:41.893031Z", "lastUpdateTime": "2021-04-28T15:08:41.893031Z", + "createdTime": "2021-05-06T15:54:41.0383554Z", "lastUpdateTime": "2021-05-06T15:54:41.0383554Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:08:42.0475975Z", "lastUpdateTime": "2021-04-28T15:08:42.0475975Z", + "createdTime": "2021-05-06T15:54:41.4725409Z", "lastUpdateTime": "2021-05-06T15:54:41.4725409Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d2", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:08:42.3169392Z", "lastUpdateTime": "2021-04-28T15:08:42.3169392Z", + "createdTime": "2021-05-06T15:54:41.8623924Z", "lastUpdateTime": "2021-05-06T15:54:41.8623924Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:08:42.2239254Z", "lastUpdateTime": "2021-04-28T15:08:42.2239254Z", + "createdTime": "2021-05-06T15:54:41.5742717Z", "lastUpdateTime": "2021-05-06T15:54:41.5742717Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -377,11 +377,11 @@ interactions: connection: - keep-alive content-length: - - '1345' + - '1347' content-type: - application/json; charset=utf-8 date: - - Wed, 28 Apr 2021 21:20:27 GMT + - Thu, 06 May 2021 19:59:25 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index 39698ccefca2..df338f094e8c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:46 GMT + - Thu, 06 May 2021 20:11:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:47 GMT + - Thu, 06 May 2021 20:11:05 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.633333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:47 GMT + - Thu, 06 May 2021 20:11:05 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.616667' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests response: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:48 GMT + - Thu, 06 May 2021 20:11:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:48 GMT + - Thu, 06 May 2021 20:11:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -273,7 +273,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -285,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:49 GMT + - Thu, 06 May 2021 20:11:07 GMT server: - openresty strict-transport-security: @@ -293,7 +293,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.083333' status: code: 200 message: OK @@ -311,7 +311,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -323,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:49 GMT + - Thu, 06 May 2021 20:11:07 GMT server: - openresty strict-transport-security: @@ -331,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '165.666667' status: code: 200 message: OK @@ -345,7 +345,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -357,7 +357,7 @@ interactions: "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\":\"5/3/2021 4:12:36 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:10:55 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -373,7 +373,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:49 GMT + - Thu, 06 May 2021 20:11:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -401,7 +401,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -422,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:50 GMT + - Thu, 06 May 2021 20:11:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -451,7 +451,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -463,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:50 GMT + - Thu, 06 May 2021 20:11:08 GMT server: - openresty strict-transport-security: @@ -471,7 +471,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '165.65' status: code: 200 message: OK @@ -490,7 +490,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -502,7 +502,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:10:55 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -518,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:50 GMT + - Thu, 06 May 2021 20:11:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -546,7 +546,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -567,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:50 GMT + - Thu, 06 May 2021 20:11:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -596,7 +596,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -608,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:50 GMT + - Thu, 06 May 2021 20:11:08 GMT server: - openresty strict-transport-security: @@ -616,7 +616,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' + - '165.633333' status: code: 200 message: OK @@ -635,7 +635,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -647,7 +647,7 @@ interactions: "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\":\"5/3/2021 4:12:36 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:10:55 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -663,7 +663,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:12:51 GMT + - Thu, 06 May 2021 20:11:09 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index c62fdb8311d8..9ab8f326a060 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:43 GMT + - Thu, 06 May 2021 19:59:58 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:45 GMT + - Thu, 06 May 2021 19:59:59 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.083333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:45 GMT + - Thu, 06 May 2021 19:59:59 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.4' + - '166.066667' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_manifests response: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:45 GMT + - Thu, 06 May 2021 20:00:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:46 GMT + - Thu, 06 May 2021 20:00:00 GMT docker-distribution-api-version: - registry/2.0 server: @@ -273,7 +273,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -285,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:46 GMT + - Thu, 06 May 2021 20:00:01 GMT server: - openresty strict-transport-security: @@ -311,7 +311,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -323,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:01 GMT server: - openresty strict-transport-security: @@ -345,7 +345,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -396,7 +396,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -417,7 +417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -446,7 +446,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -458,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:02 GMT server: - openresty strict-transport-security: @@ -485,7 +485,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -508,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -536,7 +536,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -557,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:47 GMT + - Thu, 06 May 2021 20:00:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -586,7 +586,7 @@ interactions: Content-Type: - application/x-www-form-urlencoded User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -598,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:48 GMT + - Thu, 06 May 2021 20:00:03 GMT server: - openresty strict-transport-security: @@ -625,7 +625,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc28d1326/_tags/tagc28d1326 response: @@ -648,7 +648,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 03 May 2021 16:13:48 GMT + - Thu, 06 May 2021 20:00:03 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index e22642f2a911..51b3549f5a59 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc7611808/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:27 GMT + date: Thu, 06 May 2021 20:00:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:28 GMT + date: Thu, 06 May 2021 20:00:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:28 GMT + date: Thu, 06 May 2021 20:00:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -89,67 +89,67 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc7611808/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-03T20:10:16.6574215Z", "lastUpdateTime": - "2021-05-03T20:10:16.6574215Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:09.0343783Z", "lastUpdateTime": + "2021-05-06T20:00:09.0343783Z", "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": 0, "createdTime": "2021-04-28T15:39:48.8335216Z", "lastUpdateTime": - "2021-04-28T15:39:48.8335216Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.5937449Z", "lastUpdateTime": + "2021-05-06T20:00:08.5937449Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T15:39:48.6753267Z", "lastUpdateTime": - "2021-04-28T15:39:48.6753267Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.7798058Z", "lastUpdateTime": + "2021-05-06T20:00:08.7798058Z", "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": 0, "createdTime": "2021-04-28T15:39:49.6695854Z", "lastUpdateTime": - "2021-04-28T15:39:49.6695854Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.8751074Z", "lastUpdateTime": + "2021-05-06T20:00:08.8751074Z", "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": 0, "createdTime": "2021-04-28T15:39:48.1836957Z", "lastUpdateTime": - "2021-04-28T15:39:48.1836957Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.7410551Z", "lastUpdateTime": + "2021-05-06T20:00:08.7410551Z", "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": 0, "createdTime": "2021-04-28T15:39:48.3248644Z", "lastUpdateTime": - "2021-04-28T15:39:48.3248644Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.630445Z", "lastUpdateTime": + "2021-05-06T20:00:08.630445Z", "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": 0, "createdTime": "2021-04-28T15:39:48.5855065Z", "lastUpdateTime": - "2021-04-28T15:39:48.5855065Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:08.9736894Z", "lastUpdateTime": + "2021-05-06T20:00:08.9736894Z", "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": 0, "createdTime": "2021-04-28T15:39:48.4142388Z", "lastUpdateTime": - "2021-04-28T15:39:48.4142388Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T20:00:09.5043367Z", "lastUpdateTime": + "2021-05-06T20:00:09.5043367Z", "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": 0, "createdTime": "2021-04-28T15:39:48.2527522Z", "lastUpdateTime": - "2021-04-28T15:39:48.2527522Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-06T20:00:09.1966747Z", "lastUpdateTime": + "2021-05-06T20:00:09.1966747Z", "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": 0, "createdTime": "2021-04-28T15:39:47.8188629Z", "lastUpdateTime": - "2021-04-28T15:39:47.8188629Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T20:00:07.9884393Z", "lastUpdateTime": + "2021-05-06T20:00:07.9884393Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tagc7611808"], "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: Mon, 03 May 2021 20:10:29 GMT + date: Thu, 06 May 2021 20:00:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoc7611808 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:29 GMT + date: Thu, 06 May 2021 20:00:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -197,7 +197,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -206,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:30 GMT + date: Thu, 06 May 2021 20:00:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -234,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:30 GMT + date: Thu, 06 May 2021 20:00:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' + x-ms-ratelimit-remaining-calls-per-second: '165.616667' status: code: 200 message: OK @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoc7611808 response: @@ -270,7 +270,7 @@ interactions: connection: keep-alive content-length: '793' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:32 GMT + date: Thu, 06 May 2021 20:00:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -286,7 +286,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -299,7 +299,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:42 GMT + date: Thu, 06 May 2021 20:00:33 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -319,7 +319,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -328,11 +328,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:42 GMT + date: Thu, 06 May 2021 20:00:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' + x-ms-ratelimit-remaining-calls-per-second: '165.583333' status: code: 200 message: OK @@ -343,7 +343,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -354,7 +354,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:10:42 GMT + date: Thu, 06 May 2021 20:00:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index cb89fb770054..c0c9f61c4cea 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:11:37 GMT + date: Thu, 06 May 2021 20:00:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:11:38 GMT + date: Thu, 06 May 2021 20:00:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.566667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:11:38 GMT + date: Thu, 06 May 2021 20:00:35 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.533333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '120' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 20:11:38 GMT + date: Thu, 06 May 2021 20:00:36 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index 19496a6dee87..8a490833c829 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:52 GMT + date: Thu, 06 May 2021 20:00:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:53 GMT + date: Thu, 06 May 2021 20:00:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:53 GMT + date: Thu, 06 May 2021 20:00:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: @@ -99,7 +99,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Wed, 28 Apr 2021 21:21:53 GMT + date: Thu, 06 May 2021 20:00:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -116,7 +116,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo9cb4121e/_tags response: @@ -129,7 +129,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:53 GMT + date: Thu, 06 May 2021 20:00:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -149,7 +149,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -158,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:53 GMT + date: Thu, 06 May 2021 20:00:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -173,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo9cb4121e/_tags response: @@ -196,7 +196,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:21:54 GMT + date: Thu, 06 May 2021 20:00:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index bf90284d86bc..9d5c137cd214 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:14:26 GMT + date: Thu, 06 May 2021 20:00:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:14:27 GMT + date: Thu, 06 May 2021 20:00:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:14:27 GMT + date: Thu, 06 May 2021 20:00:54 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.35' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:14:27 GMT + date: Thu, 06 May 2021 20:00:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index c75d839d577f..0a8de51ec30d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoaf9517b2/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:10 GMT + date: Thu, 06 May 2021 20:01:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:11 GMT + date: Thu, 06 May 2021 20:01:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:11 GMT + date: Thu, 06 May 2021 20:01:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '165.983333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoaf9517b2/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:11 GMT + date: Thu, 06 May 2021 20:01:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:12 GMT + date: Thu, 06 May 2021 20:01:12 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -197,7 +197,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -206,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:13 GMT + date: Thu, 06 May 2021 20:01:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' + x-ms-ratelimit-remaining-calls-per-second: '166.183333' status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -234,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:13 GMT + date: Thu, 06 May 2021 20:01:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' + x-ms-ratelimit-remaining-calls-per-second: '166.166667' status: code: 200 message: OK @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -260,16 +260,16 @@ interactions: "2021-04-28T15:40:19.4589707Z", "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\":\"4/28/2021 9:22:02 + true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:01:02 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: '818' + content-length: '813' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:13 GMT + date: Thu, 06 May 2021 20:01:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index 994716b9c55d..747b32c82b24 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_manifests/sha256:abcdefghijkl response: @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:14 GMT + date: Thu, 06 May 2021 20:01:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index f1343c164b0f..2cbdc99fccc6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3db51597/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:29 GMT + date: Thu, 06 May 2021 20:01:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:30 GMT + date: Thu, 06 May 2021 20:01:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:30 GMT + date: Thu, 06 May 2021 20:01:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3db51597/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:30 GMT + date: Thu, 06 May 2021 20:01:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3db51597/_tags/tag3db51597 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:31 GMT + date: Thu, 06 May 2021 20:01:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -197,7 +197,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -206,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:31 GMT + date: Thu, 06 May 2021 20:01:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -234,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:31 GMT + date: Thu, 06 May 2021 20:01:32 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3db51597/_tags/tag3db51597 response: @@ -264,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:32 GMT + date: Thu, 06 May 2021 20:01:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index 70fa9f946c66..1c8771dce1c8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -5,20 +5,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo8cab223e", "Action": "metadata_write"}]}]}' + "repository", "Name": "hello-world", "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: Wed, 28 Apr 2021 22:08:17 GMT + date: Thu, 06 May 2021 20:01:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:18 GMT + date: Thu, 06 May 2021 20:01:33 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:18 GMT + date: Thu, 06 May 2021 20:01:34 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/hello-world/_tags/doesnotexist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 22:08:18 GMT + date: Thu, 06 May 2021 20:01:34 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index 455968149e78..eb3815ec9037 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo8b5a11da/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:48 GMT + date: Thu, 06 May 2021 20:01:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:49 GMT + date: Thu, 06 May 2021 20:01:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:49 GMT + date: Thu, 06 May 2021 20:01:50 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.283333' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -89,60 +89,60 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo8b5a11da/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 0, "createdTime": "2021-04-28T15:40:53.2285659Z", "lastUpdateTime": - "2021-04-28T15:40:53.2285659Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:09.9310692Z", "lastUpdateTime": + "2021-05-06T15:57:09.9310692Z", "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": 0, "createdTime": "2021-04-28T15:40:53.4675747Z", "lastUpdateTime": - "2021-04-28T15:40:53.4675747Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:10.2695271Z", "lastUpdateTime": + "2021-05-06T15:57:10.2695271Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 0, "createdTime": "2021-04-28T15:40:54.1081971Z", "lastUpdateTime": - "2021-04-28T15:40:54.1081971Z", "architecture": "mips64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:57:10.5937322Z", "lastUpdateTime": + "2021-05-06T15:57:10.5937322Z", "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": 0, "createdTime": "2021-04-28T15:40:53.7975951Z", "lastUpdateTime": - "2021-04-28T15:40:53.7975951Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:10.4416522Z", "lastUpdateTime": + "2021-05-06T15:57:10.4416522Z", "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": 0, "createdTime": "2021-04-28T15:40:53.6632822Z", "lastUpdateTime": - "2021-04-28T15:40:53.6632822Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 525, "createdTime": "2021-05-06T15:57:14.6019859Z", "lastUpdateTime": + "2021-05-06T15:57:14.6019859Z", "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": 0, "createdTime": "2021-04-28T15:40:54.1632809Z", "lastUpdateTime": - "2021-04-28T15:40:54.1632809Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:11.1905662Z", "lastUpdateTime": + "2021-05-06T15:57:11.1905662Z", "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": 0, "createdTime": "2021-04-28T15:40:54.8239765Z", "lastUpdateTime": - "2021-04-28T15:40:54.8239765Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:10.7703984Z", "lastUpdateTime": + "2021-05-06T15:57:10.7703984Z", "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": 0, "createdTime": "2021-04-28T15:40:53.5235657Z", "lastUpdateTime": - "2021-04-28T15:40:53.5235657Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-06T15:57:10.1976249Z", "lastUpdateTime": + "2021-05-06T15:57:10.1976249Z", "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": 0, "createdTime": "2021-04-28T15:40:53.7095671Z", "lastUpdateTime": - "2021-04-28T15:40:53.7095671Z", "architecture": "amd64", "os": "windows", + "imageSize": 1125, "createdTime": "2021-05-06T15:57:10.9089143Z", "lastUpdateTime": + "2021-05-06T15:57:10.9089143Z", "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": 0, "createdTime": "2021-04-28T15:40:53.858241Z", "lastUpdateTime": - "2021-04-28T15:40:53.858241Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 5325, "createdTime": "2021-05-06T15:57:09.6847213Z", "lastUpdateTime": + "2021-05-06T15:57:09.6847213Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag8b5a11da0", "tag8b5a11da1", "tag8b5a11da2", "tag8b5a11da3"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' @@ -150,7 +150,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:50 GMT + date: Thu, 06 May 2021 20:01:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -166,7 +166,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo8b5a11da/_tags response: @@ -179,7 +179,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:50 GMT + date: Thu, 06 May 2021 20:01:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -198,7 +198,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -207,11 +207,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:51 GMT + date: Thu, 06 May 2021 20:01:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -226,7 +226,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -235,11 +235,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:51 GMT + date: Thu, 06 May 2021 20:01:52 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.216667' status: code: 200 message: OK @@ -250,26 +250,26 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo8b5a11da/_tags response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "tags": [{"name": "tag8b5a11da0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:40:55.5579596Z", "lastUpdateTime": "2021-04-28T15:40:55.5579596Z", + "createdTime": "2021-05-06T15:57:09.8413996Z", "lastUpdateTime": "2021-05-06T15:57:09.8413996Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:40:53.3089855Z", "lastUpdateTime": "2021-04-28T15:40:53.3089855Z", + "createdTime": "2021-05-06T15:57:11.069994Z", "lastUpdateTime": "2021-05-06T15:57:11.069994Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da2", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:40:53.4155166Z", "lastUpdateTime": "2021-04-28T15:40:53.4155166Z", + "createdTime": "2021-05-06T15:57:10.5502763Z", "lastUpdateTime": "2021-05-06T15:57:10.5502763Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-04-28T15:40:53.572585Z", "lastUpdateTime": "2021-04-28T15:40:53.572585Z", + "createdTime": "2021-05-06T15:57:11.1293075Z", "lastUpdateTime": "2021-05-06T15:57:11.1293075Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -277,7 +277,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:22:51 GMT + date: Thu, 06 May 2021 20:01:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 074c2243baf6..90467992e355 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:21 GMT + date: Thu, 06 May 2021 20:02:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:22 GMT + date: Thu, 06 May 2021 20:02:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,7 +74,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:22 GMT + date: Thu, 06 May 2021 20:02:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:22 GMT + date: Thu, 06 May 2021 20:02:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:23 GMT + date: Thu, 06 May 2021 20:02:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -197,7 +197,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -206,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:23 GMT + date: Thu, 06 May 2021 20:02:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '165.583333' status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -234,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:23 GMT + date: Thu, 06 May 2021 20:02:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.566667' status: code: 200 message: OK @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -261,7 +261,7 @@ interactions: "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\":\"5/3/2021 4:15:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:01:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -269,7 +269,7 @@ interactions: connection: keep-alive content-length: '817' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -289,7 +289,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -302,7 +302,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -322,7 +322,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -331,11 +331,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' + x-ms-ratelimit-remaining-calls-per-second: '165.55' status: code: 200 message: OK @@ -351,7 +351,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -363,7 +363,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:15:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:01:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -371,7 +371,7 @@ interactions: connection: keep-alive content-length: '821' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -391,7 +391,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -404,7 +404,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -424,7 +424,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -433,11 +433,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:24 GMT + date: Thu, 06 May 2021 20:02:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '165.533333' status: code: 200 message: OK @@ -453,7 +453,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -465,7 +465,7 @@ interactions: "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\":\"5/3/2021 4:15:13 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/6/2021 8:01:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -473,7 +473,7 @@ interactions: connection: keep-alive content-length: '817' content-type: application/json; charset=utf-8 - date: Mon, 03 May 2021 16:15:25 GMT + date: Thu, 06 May 2021 20:02:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index 294dbdc0717a..85903e2e5693 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:26 GMT + date: Thu, 06 May 2021 20:02:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:27 GMT + date: Thu, 06 May 2021 20:02:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.35' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:28 GMT + date: Thu, 06 May 2021 20:02:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.333333' + x-ms-ratelimit-remaining-calls-per-second: '165.366667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:28 GMT + date: Thu, 06 May 2021 20:02:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:29 GMT + date: Thu, 06 May 2021 20:02:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -197,7 +197,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -206,11 +206,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:29 GMT + date: Thu, 06 May 2021 20:02:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.4' + x-ms-ratelimit-remaining-calls-per-second: '165.216667' status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -234,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:29 GMT + date: Thu, 06 May 2021 20:02:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.033333' + x-ms-ratelimit-remaining-calls-per-second: '165.2' status: code: 200 message: OK @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -264,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:29 GMT + date: Thu, 06 May 2021 20:02:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -284,7 +284,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -297,7 +297,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:29 GMT + date: Thu, 06 May 2021 20:02:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -317,7 +317,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -326,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:30 GMT + date: Thu, 06 May 2021 20:02:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' + x-ms-ratelimit-remaining-calls-per-second: '165.183333' status: code: 200 message: OK @@ -346,7 +346,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -361,7 +361,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:30 GMT + date: Thu, 06 May 2021 20:02:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -381,7 +381,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -394,7 +394,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:30 GMT + date: Thu, 06 May 2021 20:02:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -414,7 +414,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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: @@ -423,11 +423,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:30 GMT + date: Thu, 06 May 2021 20:02:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' + x-ms-ratelimit-remaining-calls-per-second: '165.916667' status: code: 200 message: OK @@ -443,7 +443,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - 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/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -458,7 +458,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Wed, 28 Apr 2021 21:23:30 GMT + date: Thu, 06 May 2021 20:02:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py deleted file mode 100644 index 82b61bc7c029..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py +++ /dev/null @@ -1,324 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from datetime import datetime -import pytest - -from azure.containerregistry import ( - DeleteRepositoryResult, - ContentProperties, - ManifestOrderBy, - ArtifactManifestProperties, - ArtifactTagProperties, - TagOrderBy, -) -from azure.core.exceptions import ResourceNotFoundError -from azure.core.paging import ItemPaged - -from testcase import ContainerRegistryTestClass -from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD -from preparer import acr_preparer - - -class TestContainerRepositoryClient(ContainerRegistryTestClass): - @acr_preparer() - def test_delete_tag(self, containerregistry_endpoint, containerregistry_resource_group): - repo = self.get_resource_name("repo") - tag = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - - client = self.create_repository_client(containerregistry_endpoint, repo) - - tag_props = client.get_tag_properties(tag) - assert tag_props is not None - - client.delete_tag(tag) - self.sleep(5) - with pytest.raises(ResourceNotFoundError): - client.get_tag_properties(tag) - - @acr_preparer() - def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, "DOES_NOT_EXIST123") - - with pytest.raises(ResourceNotFoundError): - client.delete_tag("DOESNOTEXIST123") - - @acr_preparer() - def test_get_properties(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, HELLO_WORLD) - - properties = repo_client.get_properties() - assert isinstance(properties.writeable_properties, ContentProperties) - - @acr_preparer() - def test_get_tag(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tag = client.get_tag_properties("latest") - - assert tag is not None - assert isinstance(tag, ArtifactTagProperties) - assert tag.repository == client.repository - - @acr_preparer() - def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - count = 0 - for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, ArtifactManifestProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - results_per_page = 2 - - pages = client.list_registry_artifacts(results_per_page=results_per_page) - page_count = 0 - for page in pages.by_page(): - reg_count = 0 - for tag in page: - reg_count += 1 - assert reg_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert artifact.last_updated_on < prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for artifact in client.list_registry_artifacts(order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert artifact.last_updated_on > prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_get_registry_artifact_properties(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - properties = client.get_registry_artifact_properties("latest") - - assert isinstance(properties, ArtifactManifestProperties) - assert isinstance(properties.created_on, datetime) - assert isinstance(properties.last_updated_on, datetime) - - @acr_preparer() - def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tags = client.list_tags() - assert isinstance(tags, ItemPaged) - count = 0 - for tag in tags: - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - results_per_page = 2 - - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - for page in pages.by_page(): - tag_count = 0 - for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - tag_props = client.get_tag_properties(tag_identifier) - permissions = tag_props.writeable_properties - - received = client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.writeable_properties.can_write - assert not received.writeable_properties.can_read - assert not received.writeable_properties.can_list - assert not received.writeable_properties.can_delete - - client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - @acr_preparer() - def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposetmani") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - for artifact in client.list_registry_artifacts(): - permissions = artifact.writeable_properties - - received_permissions = client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received_permissions.writeable_properties.can_delete - assert not received_permissions.writeable_properties.can_read - assert not received_permissions.writeable_properties.can_list - assert not received_permissions.writeable_properties.can_write - - # Reset and delete - client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - client.delete() - break - - @acr_preparer() - def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - - @acr_preparer() - def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, [TO_BE_DELETED]) - - reg_client = self.create_registry_client(containerregistry_endpoint) - existing_repos = list(reg_client.list_repositories()) - assert TO_BE_DELETED in existing_repos - - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) - result = repo_client.delete() - assert isinstance(result, DeleteRepositoryResult) - assert result.deleted_manifests is not None - assert result.deleted_tags is not None - - existing_repos = list(reg_client.list_repositories()) - assert TO_BE_DELETED not in existing_repos - - @acr_preparer() - def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) - with pytest.raises(ResourceNotFoundError): - repo_client.delete() - - @acr_preparer() - def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) - - repo_client = self.create_repository_client(containerregistry_endpoint, repository) - - count = 0 - for artifact in repo_client.list_registry_artifacts(): - if count == 0: - repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 - - artifacts = [] - for a in repo_client.list_registry_artifacts(): - artifacts.append(a) - - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py deleted file mode 100644 index 02ea7dfef5a3..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py +++ /dev/null @@ -1,329 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -from datetime import datetime -import pytest - -from azure.containerregistry import ( - DeleteRepositoryResult, - ArtifactTagProperties, - ContentProperties, - ManifestOrderBy, - ArtifactManifestProperties, - TagOrderBy, -) -from azure.core.exceptions import ResourceNotFoundError -from azure.core.async_paging import AsyncItemPaged - -from asynctestcase import AsyncContainerRegistryTestClass -from preparer import acr_preparer -from constants import TO_BE_DELETED, DOES_NOT_EXIST, HELLO_WORLD - - -class TestContainerRepositoryClient(AsyncContainerRegistryTestClass): - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - async for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, ArtifactManifestProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - - @acr_preparer() - async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - results_per_page = 2 - - pages = client.list_registry_artifacts(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - reg_count = 0 - async for tag in page: - reg_count += 1 - assert reg_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - async def test_list_tags(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - tags = client.list_tags() - assert isinstance(tags, AsyncItemPaged) - count = 0 - async for tag in tags: - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_tags_by_page(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - results_per_page = 2 - - pages = client.list_tags(results_per_page=results_per_page) - page_count = 0 - async for page in pages.by_page(): - tag_count = 0 - async for tag in page: - tag_count += 1 - assert tag_count <= results_per_page - page_count += 1 - - assert page_count >= 1 - - @acr_preparer() - async def test_delete_tag(self, containerregistry_endpoint): - repo = self.get_resource_name("repos") - tag = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repo, tag)]) - - client = self.create_repository_client(containerregistry_endpoint, repo) - - tag_props = await client.get_tag_properties(tag) - assert tag_props is not None - - await client.delete_tag(tag) - self.sleep(5) - - with pytest.raises(ResourceNotFoundError): - await client.get_tag_properties(tag) - - @acr_preparer() - async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, "DOES_NOT_EXIST123") - - with pytest.raises(ResourceNotFoundError): - await client.delete_tag("DOESNOTEXIST123") - - @acr_preparer() - async def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): - self.import_image(HELLO_WORLD, [TO_BE_DELETED]) - - reg_client = self.create_registry_client(containerregistry_endpoint) - existing_repos = [] - async for repo in reg_client.list_repositories(): - existing_repos.append(repo) - assert TO_BE_DELETED in existing_repos - - repo_client = self.create_repository_client(containerregistry_endpoint, TO_BE_DELETED) - result = await repo_client.delete() - assert isinstance(result, DeleteRepositoryResult) - assert result.deleted_manifests is not None - assert result.deleted_tags is not None - - existing_repos = [] - async for repo in reg_client.list_repositories(): - existing_repos.append(repo) - assert TO_BE_DELETED not in existing_repos - - @acr_preparer() - async def test_delete_repository_doesnt_exist(self, containerregistry_endpoint): - repo_client = self.create_repository_client(containerregistry_endpoint, DOES_NOT_EXIST) - with pytest.raises(ResourceNotFoundError): - await repo_client.delete() - - @acr_preparer() - async def test_delete_registry_artifact(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - self.import_image(HELLO_WORLD, [repository]) - - repo_client = self.create_repository_client(containerregistry_endpoint, repository) - - count = 0 - async for artifact in repo_client.list_registry_artifacts(): - if count == 0: - await repo_client.delete_registry_artifact(artifact.digest) - count += 1 - assert count > 0 - - artifacts = [] - async for a in repo_client.list_registry_artifacts(): - artifacts.append(a) - - assert len(artifacts) > 0 - assert len(artifacts) == count - 1 - - @acr_preparer() - async def test_set_tag_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("repo") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - tag_props = await client.get_tag_properties(tag_identifier) - permissions = tag_props.writeable_properties - - received = await client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - - assert not received.writeable_properties.can_write - assert not received.writeable_properties.can_read - assert not received.writeable_properties.can_list - assert not received.writeable_properties.can_delete - - # Reset them - await client.set_tag_properties( - tag_identifier, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - - @acr_preparer() - async def test_set_tag_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - await client.set_tag_properties(DOES_NOT_EXIST, ContentProperties(can_delete=False)) - - @acr_preparer() - async def test_set_manifest_properties(self, containerregistry_endpoint, containerregistry_resource_group): - repository = self.get_resource_name("reposet") - tag_identifier = self.get_resource_name("tag") - self.import_image(HELLO_WORLD, ["{}:{}".format(repository, tag_identifier)]) - - client = self.create_repository_client(containerregistry_endpoint, repository) - - async for artifact in client.list_registry_artifacts(): - permissions = artifact.writeable_properties - - received_permissions = await client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=False, - can_list=False, - can_read=False, - can_write=False, - ), - ) - assert not received_permissions.writeable_properties.can_delete - assert not received_permissions.writeable_properties.can_read - assert not received_permissions.writeable_properties.can_list - assert not received_permissions.writeable_properties.can_write - - # Reset and delete - await client.set_manifest_properties( - artifact.digest, - ContentProperties( - can_delete=True, - can_list=True, - can_read=True, - can_write=True, - ), - ) - await client.delete() - - break - - @acr_preparer() - async def test_set_manifest_properties_does_not_exist(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.get_resource_name("repo")) - - with pytest.raises(ResourceNotFoundError): - await client.set_manifest_properties("sha256:abcdef", ContentProperties(can_delete=False)) - - @acr_preparer() - async def test_list_tags_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_DESCENDING): - if prev_last_updated_on: - assert tag.last_updated_on < prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_tags_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for tag in client.list_tags(order_by=TagOrderBy.LAST_UPDATE_TIME_ASCENDING): - if prev_last_updated_on: - assert tag.last_updated_on > prev_last_updated_on - prev_last_updated_on = tag.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - count = 0 - async for artifact in client.list_registry_artifacts(): - assert artifact is not None - assert isinstance(artifact, ArtifactManifestProperties) - assert artifact.created_on is not None - assert isinstance(artifact.created_on, datetime) - assert artifact.last_updated_on is not None - assert isinstance(artifact.last_updated_on, datetime) - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for artifact in client.list_registry_artifacts( - order_by=ManifestOrderBy.LAST_UPDATE_TIME_DESCENDING - ): - if prev_last_updated_on: - assert artifact.last_updated_on < prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, self.repository) - - prev_last_updated_on = None - count = 0 - async for artifact in client.list_registry_artifacts( - order_by=ManifestOrderBy.LAST_UPDATE_TIME_ASCENDING - ): - if prev_last_updated_on: - assert artifact.last_updated_on > prev_last_updated_on - prev_last_updated_on = artifact.last_updated_on - count += 1 - - assert count > 0 - - @acr_preparer() - async def test_get_tag(self, containerregistry_endpoint): - client = self.create_repository_client(containerregistry_endpoint, "library/busybox") - - tag = await client.get_tag_properties("latest") - - assert tag is not None - assert isinstance(tag, ArtifactTagProperties) - assert tag.repository == client.repository \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 14ab5f6e8c83..398da3fb972c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -29,7 +29,7 @@ ) from azure.identity import DefaultAzureCredential -from devtools_testutils import AzureTestCase +from devtools_testutils import AzureTestCase, is_live from azure_devtools.scenario_tests import ( GeneralNameReplacer, RequestUrlNormalizer, @@ -313,26 +313,28 @@ def import_image(repository, tags): pass -# @pytest.fixture(scope="session") -# def load_registry(): -# repos = [ -# "library/hello-world", -# "library/alpine", -# "library/busybox", -# ] -# tags = [ -# [ -# "library/hello-world:latest", -# "library/hello-world:v1", -# "library/hello-world:v2", -# "library/hello-world:v3", -# "library/hello-world:v4", -# ], -# ["library/alpine"], -# ["library/busybox"], -# ] -# for repo, tag in zip(repos, tags): -# try: -# import_image(repo, tag) -# except Exception as e: -# print(e) +@pytest.fixture(scope="session") +def load_registry(): + if not is_live(): + return + repos = [ + "library/hello-world", + "library/alpine", + "library/busybox", + ] + tags = [ + [ + "library/hello-world:latest", + "library/hello-world:v1", + "library/hello-world:v2", + "library/hello-world:v3", + "library/hello-world:v4", + ], + ["library/alpine"], + ["library/busybox"], + ] + for repo, tag in zip(repos, tags): + try: + import_image(repo, tag) + except Exception as e: + print(e) From 9a93a9c618e2d89a10894bb9ef2613c71e6bc25a Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 16:18:29 -0400 Subject: [PATCH 34/42] lint --- .../azure/containerregistry/_anonymous_exchange_client.py | 5 +++-- .../azure/containerregistry/_registry_artifact.py | 4 ++-- .../aio/_async_anonymous_exchange_client.py | 3 +-- .../azure/containerregistry/aio/_async_registry_artifact.py | 2 -- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py index 1a3fde505e2b..9bd08d1b3b9c 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -4,7 +4,6 @@ # Licensed under the MIT License. # ------------------------------------ import re -import time from typing import TYPE_CHECKING, Dict, Any from ._exchange_client import ExchangeClientAuthenticationPolicy @@ -59,7 +58,9 @@ def get_acr_access_token(self, challenge, **kwargs): **kwargs ) - def exchange_refresh_token_for_access_token(self, refresh_token=None, service=None, scope=None, grant_type=PASSWORD, **kwargs): + def exchange_refresh_token_for_access_token( + self, refresh_token=None, service=None, scope=None, grant_type=PASSWORD, **kwargs + ): # type: (str, str, str, str, Dict[str, Any]) -> str access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( service=service, scope=scope, refresh_token=refresh_token, grant_type=grant_type, **kwargs diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 97130cd4e3de..ff04fabe3f71 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -96,8 +96,8 @@ def delete(self, **kwargs): ) @distributed_trace - def delete_registry_artifact(self, digest, **kwargs): - # type: (str, Dict[str, Any]) -> None + def delete_registry_artifact(self, **kwargs): + # type: (Dict[str, Any]) -> None """Delete a registry artifact :returns: None diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py index 5f4f045e35e6..049f29ea4cf6 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py @@ -4,7 +4,6 @@ # Licensed under the MIT License. # ------------------------------------ import re -import time from typing import TYPE_CHECKING, Dict, List, Any from ._async_exchange_client import ExchangeClientAuthenticationPolicy @@ -32,7 +31,7 @@ class AnonymousACRExchangeClient(object): BEARER = "Bearer" AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - def __init__(self, endpoint: str, credential: "AsyncTokencredential"=None, **kwargs: Dict[str, Any]) -> None: + def __init__(self, endpoint: str, credential: "AsyncTokencredential" = None, **kwargs: Dict[str, Any]) -> None: if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py index ca1acaca23d4..a97a0e0a687b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_registry_artifact.py @@ -23,9 +23,7 @@ DeleteRepositoryResult, ContentProperties, ArtifactManifestProperties, - RepositoryProperties, ArtifactTagProperties, - ArtifactManifestProperties ) if TYPE_CHECKING: From c06fecd43d0daf79ab6cc307f426648754ea80cb Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 16:36:04 -0400 Subject: [PATCH 35/42] updating tests and resource for anonymous access --- .../azure-containerregistry/tests/preparer.py | 2 +- .../tests/test_anon_access.py | 28 ++-- .../tests/test_anon_access_async.py | 28 ++-- sdk/containerregistry/test-resources.json | 127 +++++++++--------- 4 files changed, 94 insertions(+), 91 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/tests/preparer.py b/sdk/containerregistry/azure-containerregistry/tests/preparer.py index 7595126817f9..fa485da7a4dd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/preparer.py +++ b/sdk/containerregistry/azure-containerregistry/tests/preparer.py @@ -12,5 +12,5 @@ "containerregistry", containerregistry_endpoint="fake_url.azurecr.io", containerregistry_resource_group="fake_rg", - containerregistry_anon_endpoint="fake_url.azurecr.io", + containerregistry_anonregistry_endpoint="fake_url.azurecr.io", ) diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index 966e3657e152..2782942e9160 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -23,8 +23,8 @@ class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() - def test_list_repository_names(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_list_repository_names(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None repositories = client.list_repository_names() @@ -41,8 +41,8 @@ def test_list_repository_names(self, containerregistry_anon_endpoint): assert count > 0 @acr_preparer() - def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_list_repository_names_by_page(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None results_per_page = 2 @@ -64,9 +64,9 @@ def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): assert total_pages > 1 @acr_preparer() - def test_transport_closed_only_once(self, containerregistry_anon_endpoint): + def test_transport_closed_only_once(self, containerregistry_anonregistry_endpoint): transport = RequestsTransport() - client = self.create_anon_client(containerregistry_anon_endpoint, transport=transport) + client = self.create_anon_client(containerregistry_anonregistry_endpoint, transport=transport) assert client._credential is None with client: for r in client.list_repository_names(): @@ -82,8 +82,8 @@ def test_transport_closed_only_once(self, containerregistry_anon_endpoint): assert transport.session is not None @acr_preparer() - def test_get_properties(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_get_properties(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -95,8 +95,8 @@ def test_get_properties(self, containerregistry_anon_endpoint): assert properties.name == HELLO_WORLD @acr_preparer() - def test_list_manifests(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_list_manifests(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -109,8 +109,8 @@ def test_list_manifests(self, containerregistry_anon_endpoint): assert count > 0 @acr_preparer() - def test_get_artifact(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_get_artifact(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -122,8 +122,8 @@ def test_get_artifact(self, containerregistry_anon_endpoint): assert isinstance(registry_artifact, RegistryArtifact) @acr_preparer() - def test_list_tags(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + def test_list_tags(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) 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 8a3da9e8fe24..0f109df99e26 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py @@ -21,8 +21,8 @@ class TestContainerRegistryClient(AsyncContainerRegistryTestClass): @acr_preparer() - async def test_list_repository_names(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_list_repository_names(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None count = 0 @@ -36,8 +36,8 @@ async def test_list_repository_names(self, containerregistry_anon_endpoint): assert count > 0 @acr_preparer() - async def test_list_repository_names_by_page(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_list_repository_names_by_page(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None results_per_page = 2 @@ -59,9 +59,9 @@ async def test_list_repository_names_by_page(self, containerregistry_anon_endpoi assert total_pages >= 1 @acr_preparer() - async def test_transport_closed_only_once(self, containerregistry_anon_endpoint): + async def test_transport_closed_only_once(self, containerregistry_anonregistry_endpoint): transport = AioHttpTransport() - client = self.create_anon_client(containerregistry_anon_endpoint, transport=transport) + client = self.create_anon_client(containerregistry_anonregistry_endpoint, transport=transport) assert client._credential is None async with client: @@ -78,8 +78,8 @@ async def test_transport_closed_only_once(self, containerregistry_anon_endpoint) assert transport.session is not None @acr_preparer() - async def test_get_properties(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_get_properties(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -91,8 +91,8 @@ async def test_get_properties(self, containerregistry_anon_endpoint): assert properties.name == HELLO_WORLD @acr_preparer() - async def test_list_manifests(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_list_manifests(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -105,8 +105,8 @@ async def test_list_manifests(self, containerregistry_anon_endpoint): assert count > 0 @acr_preparer() - async def test_get_artifact(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_get_artifact(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) @@ -118,8 +118,8 @@ async def test_get_artifact(self, containerregistry_anon_endpoint): assert isinstance(registry_artifact, RegistryArtifact) @acr_preparer() - async def test_list_tags(self, containerregistry_anon_endpoint): - client = self.create_anon_client(containerregistry_anon_endpoint) + async def test_list_tags(self, containerregistry_anonregistry_endpoint): + client = self.create_anon_client(containerregistry_anonregistry_endpoint) assert client._credential is None container_repository = client.get_repository(HELLO_WORLD) diff --git a/sdk/containerregistry/test-resources.json b/sdk/containerregistry/test-resources.json index 5fe3abd98e38..025f14e2f826 100644 --- a/sdk/containerregistry/test-resources.json +++ b/sdk/containerregistry/test-resources.json @@ -1,70 +1,73 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "baseName": { - "type": "string", - "defaultValue": "[resourceGroup().name]", - "metadata": { - "description": "The base resource name." - } - }, - "tenantId": { - "type": "string", - "metadata": { - "description": "The tenant ID to which the application and resources belong." - } - }, - "testApplicationOid": { - "type": "string", - "metadata": { - "description": "The client OID to grant access to test resources." - } - }, - "location": { - "type": "string", - "defaultValue": "[resourceGroup().location]", - "metadata": { - "description": "The location of the resource. By default, this is the same as the resource group." - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "string", + "defaultValue": "[resourceGroup().name]", + "metadata": { + "description": "The base resource name." } }, - "variables": { - "apiVersion": "2019-05-01", - "endpointValue": "[format('https://{0}.azurecr.io', parameters('baseName'))]" - }, - "resources": [ - { - "type": "Microsoft.ContainerRegistry/registries", - "apiVersion": "[variables('apiVersion')]", - "name": "[parameters('baseName')]", - "location": "[parameters('location')]", - "properties": { - "endpoint": "[variables('endpointValue')]", - "adminUserEnabled": true - }, - "sku": { - "name": "Basic", - "tier": "Basic" - } + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "The location of the resource. By default, this is the same as the resource group." } - ], - "outputs": { - "CONTAINERREGISTRY_REGISTRY_NAME": { - "type": "string", - "value": "[parameters('baseName')]" - }, - "CONTAINERREGISTRY_ENDPOINT": { - "type": "string", - "value": "[variables('endpointValue')]" + } + }, + "variables": { + "apiVersion": "2020-11-01-preview", + "endpointValue": "[format('https://{0}.azurecr.io', parameters('baseName'))]", + "anonRegistryName": "[format('{0}anon', parameters('baseName'))]", + "anonEndpointValue": "[format('https://{0}.azurecr.io', variables('anonRegistryName'))]" + }, + "resources": [ + { + "type": "Microsoft.ContainerRegistry/registries", + "apiVersion": "[variables('apiVersion')]", + "name": "[parameters('baseName')]", + "location": "[parameters('location')]", + "properties": { + "endpoint": "[variables('endpointValue')]", }, - "CONTAINERREGISTRY_USERNAME": { - "type": "string", - "value": "[listCredentials(parameters('baseName'), variables('apiVersion')).username]" + "sku": { + "name": "Basic", + "tier": "Basic" + } + }, + { + "type": "Microsoft.ContainerRegistry/registries", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('anonRegistryName')]", + "location": "[parameters('location')]", + "properties": { + "endpoint": "[variables('anonEndpointValue')]", + "anonymousPullEnabled": true }, - "CONTAINERREGISTRY_PASSWORD": { - "type": "string", - "value": "[listCredentials(parameters('baseName'), variables('apiVersion')).passwords[0].value]" + "sku": { + "name": "Standard", + "tier": "Standard" } } - } \ No newline at end of file + ], + "outputs": { + "CONTAINERREGISTRY_REGISTRY_NAME": { + "type": "string", + "value": "[parameters('baseName')]" + }, + "CONTAINERREGISTRY_ENDPOINT": { + "type": "string", + "value": "[variables('endpointValue')]" + }, + "CONTAINERREGISTRY_ANONREGISTRY_NAME": { + "type": "string", + "value": "[variables('anonRegistryName')]" + }, + "CONTAINERREGISTRY_ANONREGISTRY_ENDPOINT": { + "type": "string", + "value": "[variables('anonEndpointValue')]" + }, + } +} \ No newline at end of file From 2b78a4012ef3c94aca2410ee54ca65bbb69cafab Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Fri, 7 May 2021 11:23:45 -0400 Subject: [PATCH 36/42] updating generated code --- .../aio/operations/_authentication_operations.py | 4 ++-- .../_generated/models/__init__.py | 4 ++-- .../_generated/models/_container_registry_enums.py | 14 +++++++------- .../containerregistry/_generated/models/_models.py | 2 +- .../_generated/models/_models_py3.py | 4 ++-- .../operations/_authentication_operations.py | 4 ++-- .../azure-containerregistry/swagger/README.md | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py index 12b0140cf763..6f4f87d64e7d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py @@ -107,7 +107,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( service: str, scope: str, refresh_token: str, - grant_type: Union[str, "_models.Enum2"] = "refresh_token", + grant_type: Union[str, "_models.TokenGrantType"] = "refresh_token", **kwargs ) -> "_models.AcrAccessToken": """Exchange ACR Refresh token for an ACR Access Token. @@ -121,7 +121,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 32c235c4c0d9..5ad081a95029 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -84,9 +84,9 @@ from ._container_registry_enums import ( ArtifactArchitecture, ArtifactOperatingSystem, - Enum2, ManifestOrderBy, TagOrderBy, + TokenGrantType, ) __all__ = [ @@ -129,7 +129,7 @@ 'V2Manifest', 'ArtifactArchitecture', 'ArtifactOperatingSystem', - 'Enum2', 'ManifestOrderBy', 'TagOrderBy', + 'TokenGrantType', ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py index a762e31e61d4..8ca5cfea37c1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py @@ -57,13 +57,6 @@ class ArtifactOperatingSystem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum SOLARIS = "solaris" WINDOWS = "windows" -class Enum2(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Grant type is expected to be refresh_token - """ - - REFRESH_TOKEN = "refresh_token" - PASSWORD = "password" - class ManifestOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Sort options for ordering manifests in a collection. """ @@ -83,3 +76,10 @@ class TagOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): LAST_UPDATED_ON_DESCENDING = "timedesc" #: Order tags by LastUpdatedOn field, from least recently updated to most recently updated. LAST_UPDATED_ON_ASCENDING = "timeasc" + +class TokenGrantType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Grant type is expected to be refresh_token + """ + + REFRESH_TOKEN = "refresh_token" + PASSWORD = "password" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index f80170b90c38..6bec2ba19f41 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -953,7 +953,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index 6fcca5dbf362..58f62e7b5d59 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -1060,7 +1060,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than @@ -1088,7 +1088,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS def __init__( self, *, - grant_type: Union[str, "Enum2"] = "refresh_token", + grant_type: Union[str, "TokenGrantType"] = "refresh_token", service: str, scope: str, acr_refresh_token: str, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py index b48fd9f932e3..901dd98205ee 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py @@ -112,7 +112,7 @@ def exchange_acr_refresh_token_for_acr_access_token( service, # type: str scope, # type: str refresh_token, # type: str - grant_type="refresh_token", # type: Union[str, "_models.Enum2"] + grant_type="refresh_token", # type: Union[str, "_models.TokenGrantType"] **kwargs # type: Any ): # type: (...) -> "_models.AcrAccessToken" @@ -127,7 +127,7 @@ def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken diff --git a/sdk/containerregistry/azure-containerregistry/swagger/README.md b/sdk/containerregistry/azure-containerregistry/swagger/README.md index 443909d5447f..ec6bf3b12cb5 100644 --- a/sdk/containerregistry/azure-containerregistry/swagger/README.md +++ b/sdk/containerregistry/azure-containerregistry/swagger/README.md @@ -2,7 +2,7 @@ ### Settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5f46ed2f7b443e16d6ee8286f62e686063d08c05/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/73800e82e3afb8f2966c2caa1dd8dc451a7c03e5/specification/containerregistry/data-plane/Azure.ContainerRegistry/preview/2019-08-15-preview/containerregistry.json output-folder: "../azure/containerregistry/_generated" no-namespace-folders: true python: true From 67887d6c977891f2deac890d06c62f166e30baaa Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:26:50 -0400 Subject: [PATCH 37/42] undoing generated code changes --- .../aio/operations/_authentication_operations.py | 4 ++-- .../_generated/models/__init__.py | 4 ++-- .../_generated/models/_container_registry_enums.py | 14 +++++++------- .../containerregistry/_generated/models/_models.py | 2 +- .../_generated/models/_models_py3.py | 4 ++-- .../operations/_authentication_operations.py | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py index 6f4f87d64e7d..12b0140cf763 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py @@ -107,7 +107,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( service: str, scope: str, refresh_token: str, - grant_type: Union[str, "_models.TokenGrantType"] = "refresh_token", + grant_type: Union[str, "_models.Enum2"] = "refresh_token", **kwargs ) -> "_models.AcrAccessToken": """Exchange ACR Refresh token for an ACR Access Token. @@ -121,7 +121,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.TokenGrantType + :type grant_type: str or ~container_registry.models.Enum2 :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 5ad081a95029..32c235c4c0d9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -84,9 +84,9 @@ from ._container_registry_enums import ( ArtifactArchitecture, ArtifactOperatingSystem, + Enum2, ManifestOrderBy, TagOrderBy, - TokenGrantType, ) __all__ = [ @@ -129,7 +129,7 @@ 'V2Manifest', 'ArtifactArchitecture', 'ArtifactOperatingSystem', + 'Enum2', 'ManifestOrderBy', 'TagOrderBy', - 'TokenGrantType', ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py index 8ca5cfea37c1..a762e31e61d4 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py @@ -57,6 +57,13 @@ class ArtifactOperatingSystem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum SOLARIS = "solaris" WINDOWS = "windows" +class Enum2(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Grant type is expected to be refresh_token + """ + + REFRESH_TOKEN = "refresh_token" + PASSWORD = "password" + class ManifestOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Sort options for ordering manifests in a collection. """ @@ -76,10 +83,3 @@ class TagOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): LAST_UPDATED_ON_DESCENDING = "timedesc" #: Order tags by LastUpdatedOn field, from least recently updated to most recently updated. LAST_UPDATED_ON_ASCENDING = "timeasc" - -class TokenGrantType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Grant type is expected to be refresh_token - """ - - REFRESH_TOKEN = "refresh_token" - PASSWORD = "password" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index 6bec2ba19f41..f80170b90c38 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -953,7 +953,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.TokenGrantType + :type grant_type: str or ~container_registry.models.Enum2 :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index 58f62e7b5d59..6fcca5dbf362 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -1060,7 +1060,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.TokenGrantType + :type grant_type: str or ~container_registry.models.Enum2 :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than @@ -1088,7 +1088,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS def __init__( self, *, - grant_type: Union[str, "TokenGrantType"] = "refresh_token", + grant_type: Union[str, "Enum2"] = "refresh_token", service: str, scope: str, acr_refresh_token: str, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py index 901dd98205ee..b48fd9f932e3 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py @@ -112,7 +112,7 @@ def exchange_acr_refresh_token_for_acr_access_token( service, # type: str scope, # type: str refresh_token, # type: str - grant_type="refresh_token", # type: Union[str, "_models.TokenGrantType"] + grant_type="refresh_token", # type: Union[str, "_models.Enum2"] **kwargs # type: Any ): # type: (...) -> "_models.AcrAccessToken" @@ -127,7 +127,7 @@ def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.TokenGrantType + :type grant_type: str or ~container_registry.models.Enum2 :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken From 4e7c9b63f914b60fbb95c3d25ce355ab04440591 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:28:47 -0400 Subject: [PATCH 38/42] shouldnt have done that oops --- .../aio/operations/_authentication_operations.py | 4 ++-- .../_generated/models/__init__.py | 4 ++-- .../_generated/models/_container_registry_enums.py | 14 +++++++------- .../containerregistry/_generated/models/_models.py | 2 +- .../_generated/models/_models_py3.py | 4 ++-- .../operations/_authentication_operations.py | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py index 12b0140cf763..6f4f87d64e7d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py @@ -107,7 +107,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( service: str, scope: str, refresh_token: str, - grant_type: Union[str, "_models.Enum2"] = "refresh_token", + grant_type: Union[str, "_models.TokenGrantType"] = "refresh_token", **kwargs ) -> "_models.AcrAccessToken": """Exchange ACR Refresh token for an ACR Access Token. @@ -121,7 +121,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 32c235c4c0d9..5ad081a95029 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -84,9 +84,9 @@ from ._container_registry_enums import ( ArtifactArchitecture, ArtifactOperatingSystem, - Enum2, ManifestOrderBy, TagOrderBy, + TokenGrantType, ) __all__ = [ @@ -129,7 +129,7 @@ 'V2Manifest', 'ArtifactArchitecture', 'ArtifactOperatingSystem', - 'Enum2', 'ManifestOrderBy', 'TagOrderBy', + 'TokenGrantType', ] diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py index a762e31e61d4..8ca5cfea37c1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py @@ -57,13 +57,6 @@ class ArtifactOperatingSystem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum SOLARIS = "solaris" WINDOWS = "windows" -class Enum2(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Grant type is expected to be refresh_token - """ - - REFRESH_TOKEN = "refresh_token" - PASSWORD = "password" - class ManifestOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Sort options for ordering manifests in a collection. """ @@ -83,3 +76,10 @@ class TagOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): LAST_UPDATED_ON_DESCENDING = "timedesc" #: Order tags by LastUpdatedOn field, from least recently updated to most recently updated. LAST_UPDATED_ON_ASCENDING = "timeasc" + +class TokenGrantType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Grant type is expected to be refresh_token + """ + + REFRESH_TOKEN = "refresh_token" + PASSWORD = "password" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index f80170b90c38..6bec2ba19f41 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -953,7 +953,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index 6fcca5dbf362..58f62e7b5d59 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -1060,7 +1060,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :param grant_type: Required. Grant type is expected to be refresh_token. Possible values include: "refresh_token", "password". - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :param service: Required. Indicates the name of your Azure container registry. :type service: str :param scope: Required. Which is expected to be a valid scope, and can be specified more than @@ -1088,7 +1088,7 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS def __init__( self, *, - grant_type: Union[str, "Enum2"] = "refresh_token", + grant_type: Union[str, "TokenGrantType"] = "refresh_token", service: str, scope: str, acr_refresh_token: str, diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py index b48fd9f932e3..901dd98205ee 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py @@ -112,7 +112,7 @@ def exchange_acr_refresh_token_for_acr_access_token( service, # type: str scope, # type: str refresh_token, # type: str - grant_type="refresh_token", # type: Union[str, "_models.Enum2"] + grant_type="refresh_token", # type: Union[str, "_models.TokenGrantType"] **kwargs # type: Any ): # type: (...) -> "_models.AcrAccessToken" @@ -127,7 +127,7 @@ def exchange_acr_refresh_token_for_acr_access_token( :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str :param grant_type: Grant type is expected to be refresh_token. - :type grant_type: str or ~container_registry.models.Enum2 + :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken From 86f86aa5868cb28b29d79b54dc67421dbc5d54f8 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:30:36 -0400 Subject: [PATCH 39/42] undoing unnecessary changes to recordings --- ...egistry_client.test_delete_repository.yaml | 44 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...try_client.test_list_repository_names.yaml | 29 +- ...nt.test_list_repository_names_by_page.yaml | 336 +++---- ...lient.test_transport_closed_only_once.yaml | 54 +- ...y_client_async.test_delete_repository.yaml | 42 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...ient_async.test_list_repository_names.yaml | 116 +++ ...nc.test_list_repository_names_by_page.yaml | 346 +++---- ...async.test_transport_closed_only_once.yaml | 54 +- ...ner_repository.test_delete_repository.yaml | 74 +- ...y.test_delete_repository_doesnt_exist.yaml | 20 +- ...tainer_repository.test_get_properties.yaml | 24 +- ...tainer_repository.test_list_manifests.yaml | 71 +- ...ository.test_list_manifests_ascending.yaml | 73 +- ...epository.test_list_manifests_by_page.yaml | 869 ++---------------- ...sitory.test_list_manifests_descending.yaml | 75 +- ...st_list_registry_artifacts_descending.yaml | 48 - ...tainer_repository.test_set_properties.yaml | 48 +- ...pository_async.test_delete_repository.yaml | 74 +- ...c.test_delete_repository_doesnt_exist.yaml | 20 +- ..._repository_async.test_get_properties.yaml | 24 +- ..._repository_async.test_list_manifests.yaml | 71 +- ...y_async.test_list_manifests_ascending.yaml | 73 +- ...ory_async.test_list_manifests_by_page.yaml | 617 ++----------- ..._async.test_list_manifests_descending.yaml | 75 +- ..._repository_async.test_set_properties.yaml | 48 +- ...tainer_repository_client.test_get_tag.yaml | 170 ++++ ...iner_repository_client.test_list_tags.yaml | 170 ++++ ...itory_client.test_list_tags_ascending.yaml | 170 ++++ ...tory_client.test_list_tags_descending.yaml | 170 ++++ ...t_async.test_delete_registry_artifact.yaml | 373 ++++++++ ...pository_client_async.test_delete_tag.yaml | 284 ++++++ ..._repository_client_async.test_get_tag.yaml | 116 +++ ...epository_client_async.test_list_tags.yaml | 116 +++ ...client_async.test_list_tags_ascending.yaml | 116 +++ ...lient_async.test_list_tags_descending.yaml | 116 +++ ..._client_async.test_set_tag_properties.yaml | 310 +++++++ ...rtifact.test_delete_registry_artifact.yaml | 106 ++- ...lete_registry_artifact_does_not_exist.yaml | 12 +- ...est_registry_artifact.test_delete_tag.yaml | 34 +- ...tifact.test_delete_tag_does_not_exist.yaml | 18 +- ...artifact.test_get_manifest_properties.yaml | 122 ++- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...stry_artifact.test_get_tag_properties.yaml | 116 ++- ...est_get_tag_properties_does_not_exist.yaml | 22 +- ...test_registry_artifact.test_list_tags.yaml | 124 ++- ...artifact.test_set_manifest_properties.yaml | 106 ++- ...stry_artifact.test_set_tag_properties.yaml | 100 +- ...t_async.test_delete_registry_artifact.yaml | 115 ++- ...lete_registry_artifact_does_not_exist.yaml | 20 +- ...gistry_artifact_async.test_delete_tag.yaml | 34 +- ..._async.test_delete_tag_does_not_exist.yaml | 20 +- ...ct_async.test_get_manifest_properties.yaml | 65 +- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...rtifact_async.test_get_tag_properties.yaml | 59 +- ...est_get_tag_properties_does_not_exist.yaml | 22 +- ...egistry_artifact_async.test_list_tags.yaml | 109 ++- ...ct_async.test_set_manifest_properties.yaml | 95 +- ...rtifact_async.test_set_tag_properties.yaml | 89 +- .../azure-containerregistry/tests/testcase.py | 1 - 61 files changed, 3878 insertions(+), 2995 deletions(-) create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml create mode 100644 sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml 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 index 8b91c7f0cd11..87b3d4c83af7 100644 --- 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 @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:26 GMT + - Wed, 28 Apr 2021 22:03:32 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:28 GMT + - Wed, 28 Apr 2021 22:03:33 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.583333' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:28 GMT + - Wed, 28 Apr 2021 22:03:33 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.5' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -164,7 +164,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:30 GMT + - Wed, 28 Apr 2021 22:03:35 GMT docker-distribution-api-version: - registry/2.0 server: @@ -189,7 +189,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -210,7 +210,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:31 GMT + - Wed, 28 Apr 2021 22:03:35 GMT docker-distribution-api-version: - registry/2.0 server: @@ -239,7 +239,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -251,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:31 GMT + - Wed, 28 Apr 2021 22:03:35 GMT server: - openresty strict-transport-security: @@ -259,7 +259,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.483333' status: code: 200 message: OK @@ -273,17 +273,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -293,11 +293,11 @@ interactions: connection: - keep-alive content-length: - - '410' + - '384' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:31 GMT + - Wed, 28 Apr 2021 22:03:36 GMT docker-distribution-api-version: - registry/2.0 server: 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 index db561b9ff016..d359be6931b3 100644 --- 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 @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:33 GMT + - Wed, 28 Apr 2021 22:03:36 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:36 GMT + - Wed, 28 Apr 2021 22:03:38 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '166.483333' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:36 GMT + - Wed, 28 Apr 2021 22:03:38 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.3' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:36 GMT + - Wed, 28 Apr 2021 22:03:38 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 25573fd983d8..b86fcc582b17 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:38 GMT + - Wed, 28 Apr 2021 21:16:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:40 GMT + - Wed, 28 Apr 2021 21:16:03 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.3' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:40 GMT + - Wed, 28 Apr 2021 21:16:04 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '166.133333' status: code: 200 message: OK @@ -131,17 +131,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +150,11 @@ interactions: connection: - keep-alive content-length: - - '410' + - '354' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:40 GMT + - Wed, 28 Apr 2021 21:16:04 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 1eb0be01f988..7abbeb945f4b 100644 --- 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 @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:42 GMT + - Wed, 28 Apr 2021 21:16:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:44 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:44 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: @@ -150,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:44 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 link: @@ -175,7 +175,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:44 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -225,7 +225,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -237,7 +237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:44 GMT + - Wed, 28 Apr 2021 21:16:06 GMT server: - openresty strict-transport-security: @@ -259,7 +259,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= response: @@ -278,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:45 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 link: @@ -303,7 +303,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:45 GMT + - Wed, 28 Apr 2021 21:16:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -353,7 +353,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -365,7 +365,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:45 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -387,7 +387,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: @@ -406,7 +406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:45 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 link: @@ -431,7 +431,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: @@ -452,7 +452,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:46 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -481,7 +481,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -493,7 +493,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:46 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -515,7 +515,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: @@ -534,7 +534,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:46 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 link: @@ -559,7 +559,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: @@ -580,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:46 GMT + - Wed, 28 Apr 2021 21:16:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -609,7 +609,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -621,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:47 GMT + - Wed, 28 Apr 2021 21:16:07 GMT server: - openresty strict-transport-security: @@ -643,12 +643,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: - string: '{"repositories": ["repo34ab0fa1", "repo3db51597"]}' + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -662,11 +662,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:47 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -687,9 +687,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -708,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:47 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -737,7 +737,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -749,7 +749,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:48 GMT + - Wed, 28 Apr 2021 21:16:08 GMT server: - openresty strict-transport-security: @@ -771,12 +771,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: - string: '{"repositories": ["repo3e8d15a3", "repo84e316ff"]}' + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -790,11 +790,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:48 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -815,9 +815,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -836,7 +836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:48 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -865,7 +865,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -877,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:48 GMT + - Wed, 28 Apr 2021 21:16:08 GMT server: - openresty strict-transport-security: @@ -899,12 +899,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: - string: '{"repositories": ["repo8b5a11da", "repo9b321760"]}' + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -918,11 +918,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:48 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -943,9 +943,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -964,7 +964,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:49 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -993,7 +993,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1005,7 +1005,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:49 GMT + - Wed, 28 Apr 2021 21:16:09 GMT server: - openresty strict-transport-security: @@ -1027,12 +1027,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: - string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1046,11 +1046,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:49 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1071,9 +1071,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1092,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:50 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1121,7 +1121,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1133,7 +1133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:50 GMT + - Wed, 28 Apr 2021 21:16:09 GMT server: - openresty strict-transport-security: @@ -1155,12 +1155,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: - string: '{"repositories": ["repob0a917be", "repob22512e7"]}' + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1174,11 +1174,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:50 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1199,9 +1199,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1220,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:50 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1249,7 +1249,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1261,7 +1261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:50 GMT + - Wed, 28 Apr 2021 21:16:10 GMT server: - openresty strict-transport-security: @@ -1283,12 +1283,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: - string: '{"repositories": ["repoc1b5131a", "repoc28d1326"]}' + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1302,11 +1302,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:51 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1327,9 +1327,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1348,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:51 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1377,7 +1377,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1389,7 +1389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:51 GMT + - Wed, 28 Apr 2021 21:16:10 GMT server: - openresty strict-transport-security: @@ -1411,12 +1411,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: - string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1430,11 +1430,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:51 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1455,9 +1455,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1476,7 +1476,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:51 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1505,7 +1505,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1517,7 +1517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:52 GMT + - Wed, 28 Apr 2021 21:16:11 GMT server: - openresty strict-transport-security: @@ -1539,12 +1539,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: - string: '{"repositories": ["repos6ce51658", "reposetb7cc1bf8"]}' + string: '{"repositories": null}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1554,139 +1554,11 @@ interactions: connection: - keep-alive content-length: - - '53' + - '22' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:52 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=reposetb7cc1bf8&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: - - Sun, 09 May 2021 18:56: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=refresh_token&service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1063' - 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: - - Sun, 09 May 2021 18:56:52 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/_catalog?last=reposetb7cc1bf8&n=2&orderby= - response: - body: - string: '{"repositories": ["reposetmani160e197b"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '41' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:56:52 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml index 95a1f4974313..511412eebd11 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_transport_closed_only_once.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:54 GMT + - Wed, 28 Apr 2021 22:03:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:56 GMT + - Wed, 28 Apr 2021 22:03:50 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:56 GMT + - Wed, 28 Apr 2021 22:03:50 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.633333' status: code: 200 message: OK @@ -131,17 +131,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +151,11 @@ interactions: connection: - keep-alive content-length: - - '410' + - '384' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:56 GMT + - Wed, 28 Apr 2021 22:03:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -178,7 +178,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:56 GMT + - Wed, 28 Apr 2021 22:03:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -228,7 +228,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:57 GMT + - Wed, 28 Apr 2021 22:03:50 GMT server: - openresty strict-transport-security: @@ -248,7 +248,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.616667' status: code: 200 message: OK @@ -262,17 +262,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -282,11 +282,11 @@ interactions: connection: - keep-alive content-length: - - '410' + - '384' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:56:57 GMT + - Wed, 28 Apr 2021 22:03:51 GMT docker-distribution-api-version: - registry/2.0 server: 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 index 2df8dd0018c1..0711b1de071f 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:12 GMT + date: Wed, 28 Apr 2021 22:04:05 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:13 GMT + date: Wed, 28 Apr 2021 22:04:06 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:13 GMT + date: Wed, 28 Apr 2021 22:04:07 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -110,7 +110,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:15 GMT + date: Wed, 28 Apr 2021 22:04:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -126,7 +126,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -139,7 +139,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:15 GMT + date: Wed, 28 Apr 2021 22:04:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -159,7 +159,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -168,11 +168,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:15 GMT + date: Wed, 28 Apr 2021 22:04:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -183,23 +183,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '410' + content-length: '384' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:15 GMT + date: Wed, 28 Apr 2021 22:04:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 index c6e4e5e8c6e0..f48f464865cc 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:16 GMT + date: Thu, 29 Apr 2021 23:24:44 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:18 GMT + date: Thu, 29 Apr 2021 23:24:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:18 GMT + date: Thu, 29 Apr 2021 23:24:45 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/not_real_repo response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '121' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:18 GMT + date: Thu, 29 Apr 2021 23:24:45 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains 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 new file mode 100644 index 000000000000..f328ef4fbde4 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-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: Wed, 28 Apr 2021 21:16:36 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/_catalog +- 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.0b1 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, 28 Apr 2021 21:16: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 + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: registry:catalog:* + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 21:16:37 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/_catalog + response: + body: + string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", + "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '354' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 21:16:37 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/_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 index 884df1da3b91..10a577717d62 100644 --- 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 @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:21 GMT + date: Wed, 28 Apr 2021 21:16:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:22 GMT + date: Wed, 28 Apr 2021 21:16:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.383333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:22 GMT + date: Wed, 28 Apr 2021 21:16:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 response: @@ -100,7 +100,7 @@ interactions: connection: keep-alive content-length: '54' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:22 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -116,7 +116,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: @@ -129,7 +129,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:22 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -149,7 +149,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -158,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -173,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= response: @@ -184,7 +184,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -200,7 +200,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: @@ -213,7 +213,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -233,7 +233,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -242,11 +242,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -257,7 +257,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo27331535&n=2&orderby= response: @@ -268,7 +268,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:39 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -284,7 +284,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: @@ -297,7 +297,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -317,7 +317,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -326,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:23 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '165.766667' status: code: 200 message: OK @@ -341,7 +341,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2c591564&n=2&orderby= response: @@ -352,7 +352,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -368,7 +368,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: @@ -381,7 +381,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -401,7 +401,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -410,11 +410,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.3' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -425,20 +425,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo308e19dd&n=2&orderby= response: body: - string: '{"repositories": ["repo34ab0fa1", "repo3db51597"]}' + string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff @@ -452,9 +452,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -465,7 +465,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -474,7 +474,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= - request: body: grant_type: refresh_token @@ -485,7 +485,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -494,11 +494,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:24 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -509,36 +509,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3db51597&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= response: body: - string: '{"repositories": ["repo3e8d15a3", "repo84e316ff"]}' + string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo3db51597&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3c82158b&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -549,7 +549,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -558,7 +558,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= - request: body: grant_type: refresh_token @@ -569,7 +569,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -578,11 +578,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -593,36 +593,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo84e316ff&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= response: body: - string: '{"repositories": ["repo8b5a11da", "repo9b321760"]}' + string: '{"repositories": ["repo84e316ff", "repo8b5a11da"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo84e316ff&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3e8d15a3&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -633,7 +633,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -642,7 +642,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= - request: body: grant_type: refresh_token @@ -653,7 +653,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -662,11 +662,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' + x-ms-ratelimit-remaining-calls-per-second: '165.7' status: code: 200 message: OK @@ -677,36 +677,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9b321760&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= response: body: - string: '{"repositories": ["repo9cb4121e", "repoaf9517b2"]}' + string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:25 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repo9b321760&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo8b5a11da&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -717,7 +717,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -726,7 +726,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= - request: body: grant_type: refresh_token @@ -737,7 +737,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -746,11 +746,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '165.683333' status: code: 200 message: OK @@ -761,36 +761,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoaf9517b2&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= response: body: - string: '{"repositories": ["repob0a917be", "repob22512e7"]}' + string: '{"repositories": ["repoaf9517b2", "repob0a917be"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repoaf9517b2&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo9cb4121e&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -801,7 +801,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -810,7 +810,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= - request: body: grant_type: refresh_token @@ -821,7 +821,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -830,11 +830,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -845,36 +845,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob22512e7&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= response: body: - string: '{"repositories": ["repoc1b5131a", "repoc28d1326"]}' + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repob22512e7&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repob0a917be&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -885,7 +885,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:26 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -894,7 +894,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= - request: body: grant_type: refresh_token @@ -905,7 +905,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -914,11 +914,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:27 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '165.65' status: code: 200 message: OK @@ -929,36 +929,36 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc28d1326&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= response: body: - string: '{"repositories": ["repod2be1c42", "repoeb7113db"]}' + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:27 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT docker-distribution-api-version: registry/2.0 - link: ; rel="next" + link: ; rel="next" 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/_catalog?last=repoc28d1326&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b5131a&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -969,7 +969,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:27 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -978,7 +978,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= - request: body: grant_type: refresh_token @@ -989,7 +989,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -998,11 +998,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:27 GMT + date: Wed, 28 Apr 2021 21:16:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -1013,108 +1013,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: - string: '{"repositories": ["repos6ce51658", "reposetb7cc1bf8"]}' + string: '{"repositories": null}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '53' + content-length: '22' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:27 GMT + date: Wed, 28 Apr 2021 21:16:43 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://fake_url.azurecr.io/acr/v1/_catalog?last=repoeb7113db&n=2&orderby= -- 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/_catalog?last=reposetb7cc1bf8&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: Sun, 09 May 2021 18:57: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://fake_url.azurecr.io/acr/v1/_catalog?last=reposetb7cc1bf8&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - 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: Sun, 09 May 2021 18:57:28 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: 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/_catalog?last=reposetb7cc1bf8&n=2&orderby= - response: - body: - string: '{"repositories": ["reposetmani160e197b"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '41' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:28 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/_catalog?last=reposetb7cc1bf8&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml index c4aed571f9e8..f5893535779b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_transport_closed_only_once.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:29 GMT + date: Wed, 28 Apr 2021 22:04:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:30 GMT + date: Wed, 28 Apr 2021 22:04:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:30 GMT + date: Wed, 28 Apr 2021 22:04:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' status: code: 200 message: OK @@ -89,23 +89,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '410' + content-length: '384' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:31 GMT + date: Wed, 28 Apr 2021 22:04:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -120,7 +120,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -133,7 +133,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:31 GMT + date: Wed, 28 Apr 2021 22:04:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -153,7 +153,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -162,11 +162,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:31 GMT + date: Wed, 28 Apr 2021 22:04:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -177,23 +177,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '410' + content-length: '384' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 18:57:31 GMT + date: Wed, 28 Apr 2021 22:04:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml index b4f4e95dbbd1..747e8cf9343b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:48 GMT + - Wed, 28 Apr 2021 22:04:55 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:50 GMT + - Wed, 28 Apr 2021 22:04:56 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:50 GMT + - Wed, 28 Apr 2021 22:04:57 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166' + - '166.633333' status: code: 200 message: OK @@ -131,17 +131,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b", "to_be_deleted"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db", "to_be_deleted"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +151,11 @@ interactions: connection: - keep-alive content-length: - - '426' + - '400' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:50 GMT + - Wed, 28 Apr 2021 22:04:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -180,7 +180,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -201,7 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:51 GMT + - Wed, 28 Apr 2021 22:04:57 GMT docker-distribution-api-version: - registry/2.0 server: @@ -230,7 +230,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -242,7 +242,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:53 GMT + - Wed, 28 Apr 2021 22:04:59 GMT server: - openresty strict-transport-security: @@ -250,7 +250,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.65' status: code: 200 message: OK @@ -268,7 +268,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:53 GMT + - Wed, 28 Apr 2021 22:04:59 GMT server: - openresty strict-transport-security: @@ -288,7 +288,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.633333' status: code: 200 message: OK @@ -304,7 +304,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:55 GMT + - Wed, 28 Apr 2021 22:05:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -358,7 +358,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -379,7 +379,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:55 GMT + - Wed, 28 Apr 2021 22:05:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -408,7 +408,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -420,7 +420,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:55 GMT + - Wed, 28 Apr 2021 22:05:01 GMT server: - openresty strict-transport-security: @@ -428,7 +428,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.983333' + - '166.616667' status: code: 200 message: OK @@ -442,17 +442,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", "repos6ce51658", - "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -462,11 +462,11 @@ interactions: connection: - keep-alive content-length: - - '410' + - '384' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:55 GMT + - Wed, 28 Apr 2021 22:05:02 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml index e5c3ebfdbf40..ec02f04e88cd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_delete_repository_doesnt_exist.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:56 GMT + - Wed, 28 Apr 2021 22:05:02 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:58 GMT + - Wed, 28 Apr 2021 22:05:04 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.483333' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:58 GMT + - Wed, 28 Apr 2021 22:05:04 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '166.2' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:59 GMT + - Wed, 28 Apr 2021 22:05:04 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml index f3bd5fc7efa6..90fc7903b33e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_get_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:57:59 GMT + - Wed, 28 Apr 2021 22:05:30 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:02 GMT + - Wed, 28 Apr 2021 22:05:32 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '166.466667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:02 GMT + - Wed, 28 Apr 2021 22:05:32 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166' + - '166.266667' status: code: 200 message: OK @@ -131,14 +131,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 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: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T22:11:39.5543739Z", - "manifestCount": 12, "tagCount": 7, "changeableAttributes": {"deleteEnabled": + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T21:58:10.1522371Z", + "manifestCount": 12, "tagCount": 6, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "teleportEnabled": false}}' headers: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:02 GMT + - Wed, 28 Apr 2021 22:05:32 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml index 86c11f9dc0d7..93d125378fff 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:03 GMT + - Mon, 03 May 2021 16:04:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:06 GMT + - Mon, 03 May 2021 16:04:20 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.4' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:06 GMT + - Mon, 03 May 2021 16:04:20 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '166.183333' status: code: 200 message: OK @@ -131,42 +131,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -177,11 +157,6 @@ interactions: "2021-04-13T15:11:15.9893517Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -190,31 +165,12 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", @@ -225,11 +181,6 @@ interactions: "2021-04-13T15:11:16.0655061Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": @@ -247,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:07 GMT + - Mon, 03 May 2021 16:04:21 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml index fb5e07c0daa3..d01f29dc670b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:08 GMT + - Wed, 28 Apr 2021 22:05:40 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:11 GMT + - Wed, 28 Apr 2021 22:05:41 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.033333' + - '166.283333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:11 GMT + - Wed, 28 Apr 2021 22:05:42 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.9' + - '166.266667' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -140,8 +140,8 @@ interactions: "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -186,55 +186,6 @@ interactions: "2021-04-13T15:11:16.8778338Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "architecture": "ppc64le", "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: @@ -247,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:12 GMT + - Wed, 28 Apr 2021 22:05:42 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml index 9ba1e260e65b..293bf9f570ea 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_by_page.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:13 GMT + - Mon, 03 May 2021 16:05:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:15 GMT + - Mon, 03 May 2021 16:05:08 GMT server: - openresty strict-transport-security: @@ -79,570 +79,10 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - 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: - - Sun, 09 May 2021 18:58:15 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/library%2Fbusybox/_manifests?n=2 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": - "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '931' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:58:16 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&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: - - Sun, 09 May 2021 18:58: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - 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: - - Sun, 09 May 2021 18:58:16 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "architecture": "mips64le", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '940' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:58:16 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&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: - - Sun, 09 May 2021 18:58: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - 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: - - Sun, 09 May 2021 18:58:17 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": - "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '931' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:58:17 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&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: - - Sun, 09 May 2021 18:58: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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - 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: - - Sun, 09 May 2021 18:58:17 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": - "2021-04-13T15:11:15.9220954Z", "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:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": - "2021-04-13T15:11:15.9893517Z", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '927' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:58:18 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 + - '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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&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: - - Sun, 09 May 2021 18:58: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="https://fake_url.azurecr.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=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED headers: @@ -657,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -669,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:18 GMT + - Mon, 03 May 2021 16:05:08 GMT server: - openresty strict-transport-security: @@ -677,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' + - '166.516667' status: code: 200 message: OK @@ -691,20 +131,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "architecture": "s390x", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": + "2021-04-13T15:11:15.6976923Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": - "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": + "2021-04-13T15:11:16.3563152Z", "architecture": "s390x", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' @@ -721,11 +161,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:18 GMT + - Mon, 03 May 2021 16:05:08 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -747,9 +187,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -768,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:18 GMT + - Mon, 03 May 2021 16:05:08 GMT docker-distribution-api-version: - registry/2.0 server: @@ -797,7 +237,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -809,7 +249,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:19 GMT + - Mon, 03 May 2021 16:05:08 GMT server: - openresty strict-transport-security: @@ -817,7 +257,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.55' + - '166.5' status: code: 200 message: OK @@ -831,159 +271,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", - "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": - "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "architecture": "arm64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": + "2021-04-13T15:11:15.9220954Z", "architecture": "386", "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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '873' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 09 May 2021 18:58:19 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&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: - - Sun, 09 May 2021 18:58: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1085' - 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: - - Sun, 09 May 2021 18:58:19 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.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": - "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + true, "quarantineState": "Passed"}}, {"digest": "sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9893517Z", "lastUpdateTime": + "2021-04-13T15:11:15.9893517Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}]}' headers: @@ -995,15 +297,15 @@ interactions: connection: - keep-alive content-length: - - '896' + - '927' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:19 GMT + - Mon, 03 May 2021 16:05:08 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -1025,9 +327,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abeded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1046,7 +348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:20 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1075,7 +377,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1087,7 +389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:20 GMT + - Mon, 03 May 2021 16:05:09 GMT server: - openresty strict-transport-security: @@ -1095,7 +397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.483333' status: code: 200 message: OK @@ -1109,23 +411,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abeded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "architecture": "arm", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": + "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": + "2021-04-13T15:11:15.1951619Z", "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 @@ -1135,15 +436,15 @@ interactions: connection: - keep-alive content-length: - - '931' + - '889' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:20 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -1165,9 +466,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ad1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1186,7 +487,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:20 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1215,7 +516,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1227,7 +528,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:20 GMT + - Mon, 03 May 2021 16:05:09 GMT server: - openresty strict-transport-security: @@ -1235,7 +536,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.5' + - '166.466667' status: code: 200 message: OK @@ -1249,22 +550,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ad1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": + "2021-04-13T15:11:16.8778338Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": - "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "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: @@ -1275,15 +576,15 @@ interactions: connection: - keep-alive content-length: - - '934' + - '936' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:21 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 link: - - ; + - ; rel="next" server: - openresty @@ -1305,9 +606,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -1326,7 +627,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:21 GMT + - Mon, 03 May 2021 16:05:09 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1355,7 +656,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -1367,7 +668,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:21 GMT + - Mon, 03 May 2021 16:05:10 GMT server: - openresty strict-transport-security: @@ -1375,7 +676,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.45' status: code: 200 message: OK @@ -1389,15 +690,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "architecture": "amd64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", @@ -1415,11 +716,11 @@ interactions: connection: - keep-alive content-length: - - '931' + - '929' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:21 GMT + - Mon, 03 May 2021 16:05:10 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml index 8956b21c6d25..f7c60494fb7e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:22 GMT + - Wed, 28 Apr 2021 21:17:24 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:24 GMT + - Wed, 28 Apr 2021 21:17:25 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' + - '166.616667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:24 GMT + - Wed, 28 Apr 2021 21:17:25 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.15' + - '166.466667' status: code: 200 message: OK @@ -131,62 +131,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -234,8 +185,8 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}]}' + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -247,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:25 GMT + - Wed, 28 Apr 2021 21:17:26 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml index ccb63d3b24d4..0391740c86fd 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml @@ -30,15 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - Wed, 28 Apr 2021 17:58:34 GMT -======= - - Wed, 28 Apr 2021 21:17:24 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - - Wed, 28 Apr 2021 17:58:34 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 docker-distribution-api-version: - registry/2.0 server: @@ -79,15 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - - Wed, 28 Apr 2021 17:58:35 GMT -======= - - Wed, 28 Apr 2021 21:17:25 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - Wed, 28 Apr 2021 17:58:35 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 server: - openresty strict-transport-security: @@ -95,15 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - - '165.866667' -======= - - '166.616667' ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - '165.866667' ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 status: code: 200 message: OK @@ -133,15 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - Wed, 28 Apr 2021 17:58:35 GMT -======= - - Wed, 28 Apr 2021 21:17:25 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - - Wed, 28 Apr 2021 17:58:35 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 server: - openresty strict-transport-security: @@ -149,15 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - - '165.833333' -======= - - '166.466667' ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - '165.833333' ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 status: code: 200 message: OK @@ -238,15 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: -<<<<<<< HEAD -<<<<<<< HEAD:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_registry_artifacts_descending.yaml - - Wed, 28 Apr 2021 17:58:36 GMT -======= - - Wed, 28 Apr 2021 21:17:26 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0:sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml -======= - Wed, 28 Apr 2021 17:58:36 GMT ->>>>>>> cd4d31fedc47b6a7e8e0482f0bdc66b00348fbd0 docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml index 19f2b83bf6d9..690957dd134a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_set_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:41 GMT + - Mon, 03 May 2021 16:06:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:43 GMT + - Mon, 03 May 2021 16:06:46 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.65' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:43 GMT + - Mon, 03 May 2021 16:06:46 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.633333' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:43 GMT + - Mon, 03 May 2021 16:06:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -182,7 +182,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -203,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:44 GMT + - Mon, 03 May 2021 16:06:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -232,7 +232,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:44 GMT + - Mon, 03 May 2021 16:06:47 GMT server: - openresty strict-transport-security: @@ -252,7 +252,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.616667' status: code: 200 message: OK @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -294,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:44 GMT + - Mon, 03 May 2021 16:06:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -322,7 +322,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -343,7 +343,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:44 GMT + - Mon, 03 May 2021 16:06:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -372,7 +372,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:44 GMT + - Mon, 03 May 2021 16:06:47 GMT server: - openresty strict-transport-security: @@ -392,7 +392,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '166.6' status: code: 200 message: OK @@ -411,7 +411,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob22512e7 response: @@ -434,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:58:45 GMT + - Mon, 03 May 2021 16:06:48 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml index d34bc641f5bb..6f2930072faf 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:47 GMT + date: Wed, 28 Apr 2021 22:07:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:48 GMT + date: Wed, 28 Apr 2021 22:07:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:48 GMT + date: Wed, 28 Apr 2021 22:07:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -89,23 +89,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b", "to_be_deleted"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db", "to_be_deleted"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '441' + content-length: '400' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:48 GMT + date: Wed, 28 Apr 2021 22:07:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -120,7 +120,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -133,7 +133,7 @@ interactions: connection: keep-alive content-length: '209' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:48 GMT + date: Wed, 28 Apr 2021 22:07:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -152,7 +152,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -161,11 +161,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:50 GMT + date: Wed, 28 Apr 2021 22:07:17 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -180,7 +180,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -189,11 +189,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:50 GMT + date: Wed, 28 Apr 2021 22:07:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '166.3' status: code: 200 message: OK @@ -204,7 +204,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted response: @@ -225,7 +225,7 @@ interactions: connection: keep-alive content-length: '788' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:52 GMT + date: Wed, 28 Apr 2021 22:07:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -241,7 +241,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: @@ -254,7 +254,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:52 GMT + date: Wed, 28 Apr 2021 22:07:19 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -274,7 +274,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -283,11 +283,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:52 GMT + date: Wed, 28 Apr 2021 22:07:20 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -298,23 +298,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/_catalog response: body: string: '{"repositories": ["library/alpine", "library/busybox", "repo25ce0f5d", "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", - "repo34ab0fa1", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", - "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", "repob22512e7", - "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", + "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '425' + content-length: '384' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:52 GMT + date: Wed, 28 Apr 2021 22:07:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml index cfae4210774f..3ecfd4d68ae3 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_delete_repository_doesnt_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '210' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:53 GMT + date: Wed, 28 Apr 2021 22:07:20 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:54 GMT + date: Wed, 28 Apr 2021 22:07:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:54 GMT + date: Wed, 28 Apr 2021 22:07:21 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '166.516667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/does_not_exist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '122' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:55 GMT + date: Wed, 28 Apr 2021 22:07:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml index 4fbcfcae57f2..137fee8eab59 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_get_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '222' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:55 GMT + date: Wed, 28 Apr 2021 21:18:07 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:56 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:56 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -89,14 +89,14 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 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: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-28T22:11:39.5543739Z", - "manifestCount": 12, "tagCount": 7, "changeableAttributes": {"deleteEnabled": + "createdTime": "2021-04-13T15:10:43.6788287Z", "lastUpdateTime": "2021-04-20T12:50:15.1385136Z", + "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "teleportEnabled": false}}' headers: @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '326' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:57 GMT + date: Wed, 28 Apr 2021 21:18:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml index f03c41810787..63c54c585a08 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:57 GMT + date: Wed, 28 Apr 2021 22:07:40 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:58 GMT + date: Wed, 28 Apr 2021 22:07:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:58 GMT + date: Wed, 28 Apr 2021 22:07:41 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,42 +89,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:6223225a29b199db7ac08bfc70717c0b4fe28b791abbe25a3208025fa86a4b70", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.9220954Z", "lastUpdateTime": "2021-04-13T15:11:15.9220954Z", "architecture": "386", "os": "linux", "mediaType": @@ -135,11 +115,6 @@ interactions: "2021-04-13T15:11:15.9893517Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "architecture": "arm", "os": "linux", "mediaType": @@ -148,31 +123,12 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "architecture": "mips64le", "os": "linux", @@ -183,11 +139,6 @@ interactions: "2021-04-13T15:11:16.0655061Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.6907072Z", "lastUpdateTime": "2021-04-13T15:11:16.6907072Z", "architecture": "arm", "os": "linux", "mediaType": @@ -198,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:11:59 GMT + date: Wed, 28 Apr 2021 22:07:41 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml index cde564962809..c467651583f7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_ascending.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:00 GMT + date: Wed, 28 Apr 2021 22:07:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:01 GMT + date: Wed, 28 Apr 2021 22:07:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' + x-ms-ratelimit-remaining-calls-per-second: '165.983333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:01 GMT + date: Wed, 28 Apr 2021 22:07:43 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc response: @@ -98,8 +98,8 @@ interactions: "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": + true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -144,61 +144,12 @@ interactions: "2021-04-13T15:11:16.8778338Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "architecture": "ppc64le", "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: Sun, 09 May 2021 19:12:02 GMT + date: Wed, 28 Apr 2021 22:07:43 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml index fc60c79a3f86..13d3b7ee318d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_by_page.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:02 GMT + date: Wed, 28 Apr 2021 21:18:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:04 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:04 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' + x-ms-ratelimit-remaining-calls-per-second: '165.8' status: code: 200 message: OK @@ -89,223 +89,31 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", + "manifests": [{"digest": "sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.6976923Z", "lastUpdateTime": "2021-04-13T15:11:15.6976923Z", "architecture": "amd64", "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-length: '931' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:04 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 -- 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/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&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: Sun, 09 May 2021 19:12:04 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/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox: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: Sun, 09 May 2021 19:12:04 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://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/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "architecture": "mips64le", "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-length: '940' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:04 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1ccc0a0ca577e5fb5a0bdf2150a1a9f842f47c8865e861fa0062c5d343eb8cac&n=2&orderby= -- 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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&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: Sun, 09 May 2021 19:12:04 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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox: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: Sun, 09 May 2021 19:12:05 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/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", + true, "quarantineState": "Passed"}}, {"digest": "sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.3563152Z", "lastUpdateTime": "2021-04-13T15:11:16.3563152Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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-length: '931' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -313,16 +121,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -333,7 +141,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -342,7 +150,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= - request: body: grant_type: refresh_token @@ -353,7 +161,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -362,11 +170,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:14 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -377,9 +185,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", @@ -399,7 +207,7 @@ interactions: connection: keep-alive content-length: '927' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" @@ -409,14 +217,14 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:37b77d92a7ca131dd379ab9a637b814dd99dc0cb560ccf59b566bd6448564b7c&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: @@ -429,7 +237,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -449,7 +257,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -458,11 +266,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:05 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -473,126 +281,30 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", + "manifests": [{"digest": "sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.7730283Z", "lastUpdateTime": "2021-04-13T15:11:15.7730283Z", "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-length: '931' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:06 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= -- 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/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&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: Sun, 09 May 2021 19:12: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox: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: Sun, 09 May 2021 19:12:06 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://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/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' + "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: '873' + content-length: '889' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:06 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -600,16 +312,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:975eefa55fc130df8943cf2f72a8852ed2591db75871e0dcc427b76a0d8c26f8&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:82b4c9f36a6fa022454e78ad5c72a74fd34ca4e20489b36a8a436ca3ce9c34ef&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -620,7 +332,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:06 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -629,7 +341,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= - request: body: grant_type: refresh_token @@ -640,7 +352,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -649,11 +361,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:06 GMT + date: Wed, 28 Apr 2021 21:18:15 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -664,222 +376,31 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "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-length: '896' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:07 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440&n=2&orderby= -- 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/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&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: Sun, 09 May 2021 19:12: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox: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: Sun, 09 May 2021 19:12:07 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://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/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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-length: '931' - content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:07 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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f&n=2&orderby= -- 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/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&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: Sun, 09 May 2021 19:12: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox: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: Sun, 09 May 2021 19:12:07 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://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/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", + true, "quarantineState": "Passed"}}, {"digest": "sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.1965873Z", "lastUpdateTime": "2021-04-13T15:11:16.1965873Z", "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:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", - "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": - "2021-04-13T15:11:16.0655061Z", "architecture": "arm64", "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-length: '934' + content-length: '936' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:07 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 - link: ; + link: ; rel="next" server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -887,16 +408,16 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7&n=2&orderby= - 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, @@ -907,7 +428,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:08 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -916,7 +437,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= - request: body: grant_type: refresh_token @@ -927,7 +448,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -936,11 +457,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:08 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -951,15 +472,15 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "architecture": "amd64", "os": "linux", "mediaType": + "manifests": [{"digest": "sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e", + "imageSize": 0, "createdTime": "2021-04-13T15:11:16.0655061Z", "lastUpdateTime": + "2021-04-13T15:11:16.0655061Z", "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:fd659a6f4786d18666586ab4935f8e846d7cf1ff1b2709671f3ff0fcd15519b9", @@ -971,9 +492,9 @@ interactions: headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '931' + content-length: '929' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:08 GMT + date: Wed, 28 Apr 2021 21:18:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -981,5 +502,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:ed9c347e6a72d81a3dec189527b720bd0da021239fe779c9549be501ad083b4e&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e132653a6bb3ea3e3b0c63b608122ee72e03cd1e9849a05818965b695afad399&n=2&orderby= version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml index 3c6f74df7849..4aec97e4a07e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '218' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:09 GMT + date: Wed, 28 Apr 2021 22:07:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:10 GMT + date: Wed, 28 Apr 2021 22:07:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' + x-ms-ratelimit-remaining-calls-per-second: '166.533333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:10 GMT + date: Wed, 28 Apr 2021 22:07:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' + x-ms-ratelimit-remaining-calls-per-second: '166.333333' status: code: 200 message: OK @@ -89,62 +89,13 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.9757197Z", "lastUpdateTime": - "2021-05-05T14:12:53.9757197Z", "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:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535", - "imageSize": 528, "createdTime": "2021-05-05T14:12:53.8711031Z", "lastUpdateTime": - "2021-05-05T14:12:53.8711031Z", "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:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.779775Z", "lastUpdateTime": - "2021-05-05T14:12:53.779775Z", "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:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.7232635Z", "lastUpdateTime": - "2021-05-05T14:12:53.7232635Z", "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:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.5813533Z", "lastUpdateTime": - "2021-05-05T14:12:53.5813533Z", "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:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.4609714Z", "lastUpdateTime": - "2021-05-05T14:12:53.4609714Z", "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:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.3522872Z", "lastUpdateTime": - "2021-05-05T14:12:53.3522872Z", "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:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e", - "imageSize": 527, "createdTime": "2021-05-05T14:12:53.0315661Z", "lastUpdateTime": - "2021-05-05T14:12:53.0315661Z", "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:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af", - "imageSize": 527, "createdTime": "2021-05-05T14:12:52.9174164Z", "lastUpdateTime": - "2021-05-05T14:12:52.9174164Z", "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:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb", - "imageSize": 4745, "createdTime": "2021-05-05T14:12:52.3468286Z", "lastUpdateTime": - "2021-05-05T14:12:52.3468286Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", + "manifests": [{"digest": "sha256:beded925d853f36a55cf1d0d4e92c81e945e0be5ade32df173c2827df2c9b12f", "imageSize": 0, "createdTime": "2021-04-13T15:11:16.8778338Z", "lastUpdateTime": "2021-04-13T15:11:16.8778338Z", "architecture": "ppc64le", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": @@ -192,13 +143,13 @@ interactions: true, "quarantineState": "Passed"}}, {"digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", "imageSize": 0, "createdTime": "2021-04-13T15:11:15.1951619Z", "lastUpdateTime": "2021-04-13T15:11:15.1951619Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}]}' + "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: Sun, 09 May 2021 19:12:11 GMT + date: Wed, 28 Apr 2021 22:07:49 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml index 517df31fa08e..fa2ab96cee3c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_set_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:26 GMT + date: Mon, 03 May 2021 16:09:08 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:27 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:27 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:27 GMT + date: Mon, 03 May 2021 16:09:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -124,7 +124,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -137,7 +137,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:27 GMT + date: Mon, 03 May 2021 16:09:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -157,7 +157,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -166,11 +166,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:27 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -186,7 +186,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -201,7 +201,7 @@ interactions: connection: keep-alive content-length: '319' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:28 GMT + date: Mon, 03 May 2021 16:09:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -221,7 +221,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -234,7 +234,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:28 GMT + date: Mon, 03 May 2021 16:09:09 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -254,7 +254,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -263,11 +263,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:28 GMT + date: Mon, 03 May 2021 16:09:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo2c591564 response: @@ -298,7 +298,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:28 GMT + date: Mon, 03 May 2021 16:09:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml new file mode 100644 index 000000000000..6f7daca9b99c --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_get_tag.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + 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: + - Wed, 28 Apr 2021 22:05: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: + - '1343' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:37 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:37 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tag": {"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: + - '384' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 22:05: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_repository_client.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml new file mode 100644 index 000000000000..3e186c2a7f9a --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags + 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: + - Wed, 28 Apr 2021 22:05: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: 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.0b1 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, 28 Apr 2021 22:05:51 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:51 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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 22:05: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_container_repository_client.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml new file mode 100644 index 000000000000..80a7fee8d49f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_ascending.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: + - Wed, 28 Apr 2021 22:05: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.0b1 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, 28 Apr 2021 22:05: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05: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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 22:05: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml new file mode 100644 index 000000000000..9fa8d7f47510 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client.test_list_tags_descending.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: + - Wed, 28 Apr 2021 22:05: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: + - '1343' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05: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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1085' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:05:58 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timedesc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Apr 2021 22:05: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 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml new file mode 100644 index 000000000000..e81d332af0f2 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_registry_artifact.yaml @@ -0,0 +1,373 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repod2be1c42", "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, 28 Apr 2021 22:06:56 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/repod2be1c42/_manifests +- 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.0b1 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, 28 Apr 2021 22:06:57 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repod2be1c42:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:57 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": + [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", + "imageSize": 525, "createdTime": "2021-04-28T22:06:48.3399262Z", "lastUpdateTime": + "2021-04-28T22:06:48.3399262Z", "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-04-28T21:57:30.3440475Z", "lastUpdateTime": + "2021-04-28T21:57:30.3440475Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-04-28T21:57:30.4533632Z", "lastUpdateTime": + "2021-04-28T21:57:30.4533632Z", "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-04-28T21:57:30.5300561Z", "lastUpdateTime": + "2021-04-28T21:57:30.5300561Z", "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-04-28T21:57:32.0924058Z", "lastUpdateTime": + "2021-04-28T21:57:32.0924058Z", "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-04-28T21:57:30.9899777Z", "lastUpdateTime": + "2021-04-28T21:57:30.9899777Z", "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-04-28T21:57:30.776776Z", "lastUpdateTime": + "2021-04-28T21:57:30.776776Z", "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-04-28T21:57:30.385213Z", "lastUpdateTime": + "2021-04-28T21:57:30.385213Z", "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-04-28T21:57:30.6265018Z", "lastUpdateTime": + "2021-04-28T21:57:30.6265018Z", "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-04-28T21:57:29.6931249Z", "lastUpdateTime": + "2021-04-28T21:57:29.6931249Z", "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: Wed, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repod2be1c42", "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: Wed, 28 Apr 2021 22:06: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://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repod2be1c42:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 + response: + body: + string: '' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '0' + date: Wed, 28 Apr 2021 22:06:58 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://fake_url.azurecr.io/v2/repod2be1c42/manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repod2be1c42", "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, 28 Apr 2021 22:06: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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repod2be1c42:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:06:59 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repod2be1c42", "manifests": + [{"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", + "imageSize": 525, "createdTime": "2021-04-28T21:57:30.3440475Z", "lastUpdateTime": + "2021-04-28T21:57:30.3440475Z", "architecture": "arm", "os": "linux", "mediaType": + "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": + true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", + "imageSize": 525, "createdTime": "2021-04-28T21:57:30.4533632Z", "lastUpdateTime": + "2021-04-28T21:57:30.4533632Z", "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-04-28T21:57:30.5300561Z", "lastUpdateTime": + "2021-04-28T21:57:30.5300561Z", "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-04-28T21:57:32.0924058Z", "lastUpdateTime": + "2021-04-28T21:57:32.0924058Z", "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-04-28T21:57:30.9899777Z", "lastUpdateTime": + "2021-04-28T21:57:30.9899777Z", "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-04-28T21:57:30.776776Z", "lastUpdateTime": + "2021-04-28T21:57:30.776776Z", "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-04-28T21:57:30.385213Z", "lastUpdateTime": + "2021-04-28T21:57:30.385213Z", "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-04-28T21:57:30.6265018Z", "lastUpdateTime": + "2021-04-28T21:57:30.6265018Z", "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-04-28T21:57:29.6931249Z", "lastUpdateTime": + "2021-04-28T21:57:29.6931249Z", "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: Wed, 28 Apr 2021 22:06:59 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://fake_url.azurecr.io/acr/v1/repod2be1c42/_manifests +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml new file mode 100644 index 000000000000..c1ce8b5d4832 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_delete_tag.yaml @@ -0,0 +1,284 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repos6ce51658", "Action": "metadata_read"}]}]}' + 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, 28 Apr 2021 22:22: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/repos6ce51658/_tags/tag6ce51658 +- 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.0b1 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, 28 Apr 2021 22:22:51 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:repos6ce51658:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22: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 + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repos6ce51658", "tag": + {"name": "tag6ce51658", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-28T22:17:10.2570329Z", "lastUpdateTime": "2021-04-28T22:17:10.2570329Z", + "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: '387' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 22:22: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/repos6ce51658/_tags/tag6ce51658 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repos6ce51658", "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: Wed, 28 Apr 2021 22:22: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://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repos6ce51658:delete + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22:51 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: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + response: + body: + string: '' + headers: + access-control-expose-headers: X-Ms-Correlation-Request-Id + connection: keep-alive + content-length: '0' + date: Wed, 28 Apr 2021 22:22:52 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:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519 + x-ms-ratelimit-remaining-calls-per-second: '8.000000' + status: + code: 202 + message: Accepted + url: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repos6ce51658", "Action": "metadata_read"}]}]}' + 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, 28 Apr 2021 22:22:57 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/repos6ce51658/_tags/tag6ce51658 +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repos6ce51658:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:22:57 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 + 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: Wed, 28 Apr 2021 22:22:57 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://fake_url.azurecr.io/acr/v1/repos6ce51658/_tags/tag6ce51658 +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml new file mode 100644 index 000000000000..b319a825b3fb --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_get_tag.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + 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: Mon, 03 May 2021 15:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest +- 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.0b1 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: Mon, 03 May 2021 15:54:52 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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: Mon, 03 May 2021 15:54:52 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tag": {"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: '384' + content-type: application/json; charset=utf-8 + date: Mon, 03 May 2021 15:54: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags/latest +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml new file mode 100644 index 000000000000..355f26677602 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags + 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: Wed, 28 Apr 2021 22:07: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/library%2Fbusybox/_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.0b1 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, 28 Apr 2021 22:07:51 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/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:51 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: '387' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 22:07: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/library%2Fbusybox/_tags +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml new file mode 100644 index 000000000000..8552f6ce3f6f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_ascending.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: Wed, 28 Apr 2021 22:07: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://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc +- 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.0b1 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, 28 Apr 2021 22:07: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 + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:53 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timeasc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: '387' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 22:07:53 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/library%2Fbusybox/_tags?orderby=timeasc +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml new file mode 100644 index 000000000000..e1ac92261958 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_list_tags_descending.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_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": "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: Wed, 28 Apr 2021 22:07:55 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/library%2Fbusybox/_tags?orderby=timedesc +- 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.0b1 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, 28 Apr 2021 22:07: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 + url: https://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:library/busybox:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:07:56 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_tags?orderby=timedesc + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "library/busybox", + "tags": [{"name": "latest", "digest": "sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7", + "createdTime": "2021-04-13T15:11:15.3146514Z", "lastUpdateTime": "2021-04-13T15:11:15.3146514Z", + "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: '387' + content-type: application/json; charset=utf-8 + date: Wed, 28 Apr 2021 22:07:56 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/library%2Fbusybox/_tags?orderby=timedesc +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml new file mode 100644 index 000000000000..bfab2472a500 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_client_async.test_set_tag_properties.yaml @@ -0,0 +1,310 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd +- 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.0b1 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, 28 Apr 2021 22:08:34 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://fake_url.azurecr.io/oauth2/exchange +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo308e19dd:metadata_read + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:34 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://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": + {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", + "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, 28 Apr 2021 22:08:34 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/repo308e19dd/_tags/tag308e19dd +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08:34 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/repo308e19dd/_tags/tag308e19dd +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo308e19dd:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:34 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": + {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", + "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd +- 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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, + visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": + "repository", "Name": "repo308e19dd", "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd +- request: + body: + grant_type: refresh_token + refresh_token: REDACTED + scope: repository:repo308e19dd:metadata_write + service: fake_url.azurecr.io + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.0b1 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, 28 Apr 2021 22:08:35 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://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.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd + response: + body: + string: '{"registry": "fake_url.azurecr.io", "imageName": "repo308e19dd", "tag": + {"name": "tag308e19dd", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", + "createdTime": "2021-04-13T15:27:59.0688924Z", "lastUpdateTime": "2021-04-15T18:55:06.9273915Z", + "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, 28 Apr 2021 22:08: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://fake_url.azurecr.io/acr/v1/repo308e19dd/_tags/tag308e19dd +version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml index 46025f2ecf80..8add8f00bfa9 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:45 GMT + - Wed, 05 May 2021 20:56:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:47 GMT + - Wed, 05 May 2021 20:56:51 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' + - '166.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:47 GMT + - Wed, 05 May 2021 20:56:52 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.033333' + - '166.616667' status: code: 200 message: OK @@ -138,53 +138,53 @@ interactions: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo3c82158b", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-09T18:59:35.3615707Z", "lastUpdateTime": - "2021-05-09T18:59:35.3615707Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-05T20:56:39.8688881Z", "lastUpdateTime": + "2021-05-05T20:56:39.8688881Z", "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-09T18:59:35.4277567Z", "lastUpdateTime": - "2021-05-09T18:59:35.4277567Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.320821Z", "lastUpdateTime": + "2021-04-28T15:25:27.320821Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-09T18:59:35.2030556Z", "lastUpdateTime": - "2021-05-09T18:59:35.2030556Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.6536514Z", "lastUpdateTime": + "2021-04-28T15:25:27.6536514Z", "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-09T18:59:35.1584441Z", "lastUpdateTime": - "2021-05-09T18:59:35.1584441Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:25:29.223197Z", "lastUpdateTime": + "2021-04-28T15:25:29.223197Z", "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-09T18:59:35.7986668Z", "lastUpdateTime": - "2021-05-09T18:59:35.7986668Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.8694422Z", "lastUpdateTime": + "2021-04-28T15:25:27.8694422Z", "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-09T18:59:35.241334Z", "lastUpdateTime": - "2021-05-09T18:59:35.241334Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.2462505Z", "lastUpdateTime": + "2021-04-28T15:25:27.2462505Z", "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-09T18:59:35.5387196Z", "lastUpdateTime": - "2021-05-09T18:59:35.5387196Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:25:26.8210861Z", "lastUpdateTime": + "2021-04-28T15:25:26.8210861Z", "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-09T18:59:35.3099702Z", "lastUpdateTime": - "2021-05-09T18:59:35.3099702Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.1316373Z", "lastUpdateTime": + "2021-04-28T15:25:27.1316373Z", "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-09T18:59:36.0112599Z", "lastUpdateTime": - "2021-05-09T18:59:36.0112599Z", "architecture": "amd64", "os": "windows", + "imageSize": 0, "createdTime": "2021-04-28T15:25:26.9759284Z", "lastUpdateTime": + "2021-04-28T15:25:26.9759284Z", "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-09T18:59:34.7335337Z", "lastUpdateTime": - "2021-05-09T18:59:34.7335337Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T15:25:27.0302186Z", "lastUpdateTime": + "2021-04-28T15:25:27.0302186Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag3c82158b"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:48 GMT + - Wed, 05 May 2021 20:56:52 GMT docker-distribution-api-version: - registry/2.0 server: @@ -246,7 +246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:48 GMT + - Wed, 05 May 2021 20:56:53 GMT docker-distribution-api-version: - registry/2.0 server: @@ -261,6 +261,44 @@ interactions: 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, 05 May 2021 20:56:54 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo3c82158b%3Adelete&refresh_token=REDACTED headers: @@ -287,7 +325,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:48 GMT + - Wed, 05 May 2021 20:56:54 GMT server: - openresty strict-transport-security: @@ -295,7 +333,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '165.466667' status: code: 200 message: OK @@ -340,7 +378,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 18:59:50 GMT + - Wed, 05 May 2021 20:56:56 GMT docker-distribution-api-version: - registry/2.0 server: @@ -386,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:00 GMT + - Wed, 05 May 2021 20:57:06 GMT docker-distribution-api-version: - registry/2.0 server: @@ -427,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:00 GMT + - Wed, 05 May 2021 20:57:06 GMT server: - openresty strict-transport-security: @@ -435,7 +473,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' + - '165.45' status: code: 200 message: OK @@ -468,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:00 GMT + - Wed, 05 May 2021 20:57:06 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml index b901abefa1f5..07f15783ad13 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_registry_artifact_does_not_exist.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:01 GMT + - Wed, 05 May 2021 20:57:07 GMT docker-distribution-api-version: - registry/2.0 server: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:03 GMT + - Wed, 05 May 2021 20:57:08 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.116667' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:03 GMT + - Wed, 05 May 2021 20:57:08 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '166.066667' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:03 GMT + - Wed, 05 May 2021 20:57:09 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml index 47dcc255fbb4..8bb36829f2d7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:17 GMT + - Mon, 03 May 2021 16:11:10 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:19 GMT + - Mon, 03 May 2021 16:11:11 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' + - '166.583333' status: code: 200 message: OK @@ -99,7 +99,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:20 GMT + - Mon, 03 May 2021 16:11:12 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' + - '166.1' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags/tag34ab0fa10 response: @@ -152,7 +152,7 @@ interactions: content-length: - '0' date: - - Sun, 09 May 2021 19:00:20 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -179,7 +179,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags response: @@ -200,7 +200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:20 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: @@ -229,7 +229,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -241,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:20 GMT + - Mon, 03 May 2021 16:11:12 GMT server: - openresty strict-transport-security: @@ -249,7 +249,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.9' + - '166.083333' status: code: 200 message: OK @@ -263,7 +263,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo34ab0fa1/_tags response: @@ -294,7 +294,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:21 GMT + - Mon, 03 May 2021 16:11:12 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml index 9fe763a5304d..4bdba15ba8f6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_delete_tag_does_not_exist.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:21 GMT + - Mon, 03 May 2021 16:11:51 GMT docker-distribution-api-version: - registry/2.0 server: @@ -61,7 +61,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:23 GMT + - Mon, 03 May 2021 16:11:52 GMT server: - openresty strict-transport-security: @@ -99,7 +99,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:23 GMT + - Mon, 03 May 2021 16:11:52 GMT server: - openresty strict-transport-security: @@ -119,7 +119,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.766667' + - '165.866667' status: code: 200 message: OK @@ -135,7 +135,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo506215e7/_tags/does_not_exist response: @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:23 GMT + - Mon, 03 May 2021 16:11:53 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml index dae249e4b7c8..b8e40750a564 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:40 GMT + - Wed, 28 Apr 2021 21:19:42 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:42 GMT + - Wed, 28 Apr 2021 21:19:43 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '165.45' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:42 GMT + - Wed, 28 Apr 2021 21:19:44 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '165.433333' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-06T15:53:42.3894938Z", "lastUpdateTime": - "2021-05-06T15:53:42.3894938Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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-06T15:53:42.1567557Z", "lastUpdateTime": - "2021-05-06T15:53:42.1567557Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.2257429Z", "lastUpdateTime": + "2021-04-28T14:19:08.2257429Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-06T15:53:42.7002714Z", "lastUpdateTime": - "2021-05-06T15:53:42.7002714Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4130486Z", "lastUpdateTime": + "2021-04-28T14:19:08.4130486Z", "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-06T15:53:42.4848166Z", "lastUpdateTime": - "2021-05-06T15:53:42.4848166Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.9755326Z", "lastUpdateTime": + "2021-04-28T14:19:08.9755326Z", "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-06T15:53:42.5461688Z", "lastUpdateTime": - "2021-05-06T15:53:42.5461688Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.4645969Z", "lastUpdateTime": + "2021-04-28T14:19:08.4645969Z", "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-06T15:53:42.7438041Z", "lastUpdateTime": - "2021-05-06T15:53:42.7438041Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:10.1957381Z", "lastUpdateTime": + "2021-04-28T14:19:10.1957381Z", "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-06T15:53:42.9029743Z", "lastUpdateTime": - "2021-05-06T15:53:42.9029743Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.5821358Z", "lastUpdateTime": + "2021-04-28T14:19:08.5821358Z", "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-06T15:53:42.625513Z", "lastUpdateTime": - "2021-05-06T15:53:42.625513Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:07.9519043Z", "lastUpdateTime": + "2021-04-28T14:19:07.9519043Z", "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-06T15:53:43.4999465Z", "lastUpdateTime": - "2021-05-06T15:53:43.4999465Z", "architecture": "amd64", "os": "windows", + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.3640124Z", "lastUpdateTime": + "2021-04-28T14:19:08.3640124Z", "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-06T15:53:41.9348315Z", "lastUpdateTime": - "2021-05-06T15:53:41.9348315Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T14:19:07.5813228Z", "lastUpdateTime": + "2021-04-28T14:19:07.5813228Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag27331535"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:42 GMT + - Wed, 28 Apr 2021 21:19:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:42 GMT + - Wed, 28 Apr 2021 21:19:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -259,6 +259,44 @@ interactions: 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.0b1 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, 28 Apr 2021 21:19:45 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo27331535%3Ametadata_read&refresh_token=REDACTED headers: @@ -273,7 +311,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -285,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:43 GMT + - Wed, 28 Apr 2021 21:19:45 GMT server: - openresty strict-transport-security: @@ -293,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '166.616667' status: code: 200 message: OK @@ -307,19 +345,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo27331535/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo27331535", "manifest": {"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-06T15:53:42.3894938Z", "lastUpdateTime": - "2021-05-06T15:53:42.3894938Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:19:08.1493156Z", "lastUpdateTime": + "2021-04-28T14:19:08.1493156Z", "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\":\"5/9/2021 7:00:30 + true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:19:39 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -331,11 +369,11 @@ interactions: connection: - keep-alive content-length: - - '817' + - '812' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:00:43 GMT + - Wed, 28 Apr 2021 21:19:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml index d7cbbc2dbd2a..e2cab48c44a5 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_manifest_properties_does_not_exist.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256%3Aabcdefghijkl response: @@ -25,7 +25,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Sun, 09 May 2021 19:00:44 GMT + - Wed, 28 Apr 2021 21:19:46 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml index bf5465bd69b5..e91c8988b6da 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:00 GMT + - Wed, 28 Apr 2021 21:20:01 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:01 GMT + - Wed, 28 Apr 2021 21:20:03 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.35' + - '165.85' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:01 GMT + - Wed, 28 Apr 2021 21:20:03 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' + - '165.833333' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-06T15:54:19.2179726Z", "lastUpdateTime": - "2021-05-06T15:54:19.2179726Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:13.7370801Z", "lastUpdateTime": + "2021-04-28T14:54:13.7370801Z", "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-06T15:54:19.5112077Z", "lastUpdateTime": - "2021-05-06T15:54:19.5112077Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.1322608Z", "lastUpdateTime": + "2021-04-28T14:54:14.1322608Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-06T15:54:19.8397583Z", "lastUpdateTime": - "2021-05-06T15:54:19.8397583Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.7528767Z", "lastUpdateTime": + "2021-04-28T14:54:14.7528767Z", "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-06T15:54:19.4119171Z", "lastUpdateTime": - "2021-05-06T15:54:19.4119171Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.230217Z", "lastUpdateTime": + "2021-04-28T14:54:14.230217Z", "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-06T15:54:19.7573251Z", "lastUpdateTime": - "2021-05-06T15:54:19.7573251Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.8303731Z", "lastUpdateTime": + "2021-04-28T14:54:14.8303731Z", "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-06T15:54:19.3582911Z", "lastUpdateTime": - "2021-05-06T15:54:19.3582911Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.3299515Z", "lastUpdateTime": + "2021-04-28T14:54:14.3299515Z", "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-06T15:54:19.7011001Z", "lastUpdateTime": - "2021-05-06T15:54:19.7011001Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:14.9895208Z", "lastUpdateTime": + "2021-04-28T14:54:14.9895208Z", "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-06T15:54:19.3070634Z", "lastUpdateTime": - "2021-05-06T15:54:19.3070634Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T14:54:13.9473522Z", "lastUpdateTime": + "2021-04-28T14:54:13.9473522Z", "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-06T15:54:20.001879Z", "lastUpdateTime": - "2021-05-06T15:54:20.001879Z", "architecture": "amd64", "os": "windows", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + "imageSize": 0, "createdTime": "2021-04-28T14:54:15.0966574Z", "lastUpdateTime": + "2021-04-28T14:54:15.0966574Z", "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-06T15:54:18.8265488Z", "lastUpdateTime": - "2021-05-06T15:54:18.8265488Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T14:54:13.2881991Z", "lastUpdateTime": + "2021-04-28T14:54:13.2881991Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tagc1b5131a"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:02 GMT + - Wed, 28 Apr 2021 21:20:03 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:02 GMT + - Wed, 28 Apr 2021 21:20:04 GMT docker-distribution-api-version: - registry/2.0 server: @@ -259,6 +259,44 @@ interactions: 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.0b1 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, 28 Apr 2021 21:20:05 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc1b5131a%3Ametadata_read&refresh_token=REDACTED headers: @@ -273,7 +311,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -285,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:02 GMT + - Wed, 28 Apr 2021 21:20:05 GMT server: - openresty strict-transport-security: @@ -293,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' + - '165.75' status: code: 200 message: OK @@ -307,14 +345,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc1b5131a/_tags/tagc1b5131a response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc1b5131a", "tag": {"name": "tagc1b5131a", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:54:18.9703046Z", "lastUpdateTime": "2021-05-06T15:54:18.9703046Z", + "createdTime": "2021-04-28T14:54:13.3752616Z", "lastUpdateTime": "2021-04-28T14:54:13.3752616Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}}' headers: @@ -330,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:02 GMT + - Wed, 28 Apr 2021 21:20:05 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml index c3bf148f868f..9e723569c611 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_get_tag_properties_does_not_exist.yaml @@ -9,14 +9,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "hello-world", "Action": "metadata_read"}]}]}' + "repository", "Name": "repoc58b1fc1", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:03 GMT + - Wed, 28 Apr 2021 22:06:19 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:05 GMT + - Wed, 28 Apr 2021 22:06:20 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.8' + - '166.283333' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:05 GMT + - Wed, 28 Apr 2021 22:06:20 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.45' + - '166.233333' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: @@ -151,7 +151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:05 GMT + - Wed, 28 Apr 2021 22:06:21 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml index 38a75db55207..633693787055 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_list_tags.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:21 GMT + - Wed, 28 Apr 2021 21:20:23 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:23 GMT + - Wed, 28 Apr 2021 21:20:24 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' + - '166.466667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:24 GMT + - Wed, 28 Apr 2021 21:20:24 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.533333' + - '165.516667' status: code: 200 message: OK @@ -131,60 +131,60 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-06T15:54:40.9499022Z", "lastUpdateTime": - "2021-05-06T15:54:40.9499022Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.2327437Z", "lastUpdateTime": + "2021-04-28T15:08:43.2327437Z", "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-06T15:54:47.0417457Z", "lastUpdateTime": - "2021-05-06T15:54:47.0417457Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.6358087Z", "lastUpdateTime": + "2021-04-28T15:08:43.6358087Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-06T15:54:43.3814173Z", "lastUpdateTime": - "2021-05-06T15:54:43.3814173Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.0261552Z", "lastUpdateTime": + "2021-04-28T15:08:43.0261552Z", "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-06T15:54:43.2493591Z", "lastUpdateTime": - "2021-05-06T15:54:43.2493591Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:42.8222987Z", "lastUpdateTime": + "2021-04-28T15:08:42.8222987Z", "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-06T15:54:41.6935838Z", "lastUpdateTime": - "2021-05-06T15:54:41.6935838Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": + "imageSize": 0, "createdTime": "2021-04-28T15:08:42.642209Z", "lastUpdateTime": + "2021-04-28T15:08:42.642209Z", "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-06T15:54:41.7526536Z", "lastUpdateTime": - "2021-05-06T15:54:41.7526536Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:42.7421842Z", "lastUpdateTime": + "2021-04-28T15:08:42.7421842Z", "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-06T15:54:41.9696625Z", "lastUpdateTime": - "2021-05-06T15:54:41.9696625Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:42.8797686Z", "lastUpdateTime": + "2021-04-28T15:08:42.8797686Z", "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-06T15:54:41.2760504Z", "lastUpdateTime": - "2021-05-06T15:54:41.2760504Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:08:44.3818273Z", "lastUpdateTime": + "2021-04-28T15:08:44.3818273Z", "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-06T15:54:41.7915449Z", "lastUpdateTime": - "2021-05-06T15:54:41.7915449Z", "architecture": "amd64", "os": "windows", + "imageSize": 0, "createdTime": "2021-04-28T15:08:43.5610254Z", "lastUpdateTime": + "2021-04-28T15:08:43.5610254Z", "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-06T15:54:40.7888253Z", "lastUpdateTime": - "2021-05-06T15:54:40.7888253Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T15:08:41.9477971Z", "lastUpdateTime": + "2021-04-28T15:08:41.9477971Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag25ce0f5d0", "tag25ce0f5d1", "tag25ce0f5d2", "tag25ce0f5d3"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:24 GMT + - Wed, 28 Apr 2021 21:20:25 GMT docker-distribution-api-version: - registry/2.0 server: @@ -224,7 +224,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags response: @@ -245,7 +245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:24 GMT + - Wed, 28 Apr 2021 21:20:26 GMT docker-distribution-api-version: - registry/2.0 server: @@ -260,6 +260,44 @@ interactions: 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.0b1 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, 28 Apr 2021 21:20:26 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo25ce0f5d%3Ametadata_read&refresh_token=REDACTED headers: @@ -274,7 +312,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -286,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:24 GMT + - Wed, 28 Apr 2021 21:20:26 GMT server: - openresty strict-transport-security: @@ -294,7 +332,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.516667' + - '165.666667' status: code: 200 message: OK @@ -308,26 +346,26 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo25ce0f5d/_tags response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo25ce0f5d", "tags": [{"name": "tag25ce0f5d0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:54:41.0383554Z", "lastUpdateTime": "2021-05-06T15:54:41.0383554Z", + "createdTime": "2021-04-28T15:08:41.893031Z", "lastUpdateTime": "2021-04-28T15:08:41.893031Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:54:41.4725409Z", "lastUpdateTime": "2021-05-06T15:54:41.4725409Z", + "createdTime": "2021-04-28T15:08:42.0475975Z", "lastUpdateTime": "2021-04-28T15:08:42.0475975Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d2", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:54:41.8623924Z", "lastUpdateTime": "2021-05-06T15:54:41.8623924Z", + "createdTime": "2021-04-28T15:08:42.3169392Z", "lastUpdateTime": "2021-04-28T15:08:42.3169392Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag25ce0f5d3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:54:41.5742717Z", "lastUpdateTime": "2021-05-06T15:54:41.5742717Z", + "createdTime": "2021-04-28T15:08:42.2239254Z", "lastUpdateTime": "2021-04-28T15:08:42.2239254Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -339,11 +377,11 @@ interactions: connection: - keep-alive content-length: - - '1347' + - '1345' content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:25 GMT + - Wed, 28 Apr 2021 21:20:27 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml index 222393864fce..39698ccefca2 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_manifest_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:40 GMT + - Mon, 03 May 2021 16:12:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:43 GMT + - Mon, 03 May 2021 16:12:47 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.45' + - '166.516667' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:44 GMT + - Mon, 03 May 2021 16:12:47 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.433333' + - '166.5' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests response: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:44 GMT + - Mon, 03 May 2021 16:12:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:45 GMT + - Mon, 03 May 2021 16:12:48 GMT docker-distribution-api-version: - registry/2.0 server: @@ -259,6 +259,44 @@ interactions: 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.0b1 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: + - Mon, 03 May 2021 16: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 - request: body: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepo28471541%3Ametadata_read&refresh_token=REDACTED headers: @@ -273,7 +311,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -285,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:45 GMT + - Mon, 03 May 2021 16:12:49 GMT server: - openresty strict-transport-security: @@ -293,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' + - '166.416667' status: code: 200 message: OK @@ -307,7 +345,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -319,7 +357,7 @@ interactions: "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\":\"5/9/2021 7:01:34 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -335,7 +373,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:45 GMT + - Mon, 03 May 2021 16:12:49 GMT docker-distribution-api-version: - registry/2.0 server: @@ -363,7 +401,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -384,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:45 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -413,7 +451,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -425,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:45 GMT + - Mon, 03 May 2021 16:12:50 GMT server: - openresty strict-transport-security: @@ -433,7 +471,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.1' + - '166.4' status: code: 200 message: OK @@ -452,7 +490,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -464,7 +502,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/9/2021 7:01:34 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -480,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:46 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -508,7 +546,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -529,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:46 GMT + - Mon, 03 May 2021 16:12:50 GMT docker-distribution-api-version: - registry/2.0 server: @@ -558,7 +596,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -570,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:46 GMT + - Mon, 03 May 2021 16:12:50 GMT server: - openresty strict-transport-security: @@ -578,7 +616,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' + - '166.383333' status: code: 200 message: OK @@ -597,7 +635,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo28471541/_manifests/sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -609,7 +647,7 @@ interactions: "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\":\"5/9/2021 7:01:34 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:12:36 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -625,7 +663,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:01:47 GMT + - Mon, 03 May 2021 16:12:51 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml index 725942fdc817..c62fdb8311d8 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact.test_set_tag_properties.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:03 GMT + - Mon, 03 May 2021 16:13:43 GMT docker-distribution-api-version: - registry/2.0 server: @@ -59,7 +59,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:05 GMT + - Mon, 03 May 2021 16:13:45 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '166.5' status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:05 GMT + - Mon, 03 May 2021 16:13:45 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' + - '166.4' status: code: 200 message: OK @@ -131,7 +131,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_manifests response: @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:06 GMT + - Mon, 03 May 2021 16:13:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -223,7 +223,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:06 GMT + - Mon, 03 May 2021 16:13:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -259,6 +259,44 @@ interactions: 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.0b1 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: + - Mon, 03 May 2021 16:13:46 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: grant_type=refresh_token&service=fake_url.azurecr.io&scope=repository%3Arepoc28d1326%3Ametadata_read&refresh_token=REDACTED headers: @@ -273,7 +311,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -285,7 +323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:06 GMT + - Mon, 03 May 2021 16:13:47 GMT server: - openresty strict-transport-security: @@ -293,7 +331,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' + - '166.633333' status: code: 200 message: OK @@ -307,7 +345,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -330,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:06 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -358,7 +396,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -379,7 +417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:07 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -408,7 +446,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -420,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:07 GMT + - Mon, 03 May 2021 16:13:47 GMT server: - openresty strict-transport-security: @@ -428,7 +466,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.25' + - '166.616667' status: code: 200 message: OK @@ -447,7 +485,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -470,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:07 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -498,7 +536,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -519,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:07 GMT + - Mon, 03 May 2021 16:13:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -548,7 +586,7 @@ interactions: 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) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -560,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:07 GMT + - Mon, 03 May 2021 16:13:48 GMT server: - openresty strict-transport-security: @@ -568,7 +606,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' + - '166.6' status: code: 200 message: OK @@ -587,7 +625,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repoc28d1326/_tags/tagc28d1326 response: @@ -610,7 +648,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 May 2021 19:02:08 GMT + - Mon, 03 May 2021 16:13:48 GMT docker-distribution-api-version: - registry/2.0 server: diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml index 568ddd036ca5..e22642f2a911 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:44 GMT + date: Mon, 03 May 2021 20:10:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:45 GMT + date: Mon, 03 May 2021 20:10:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:45 GMT + date: Mon, 03 May 2021 20:10:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' + x-ms-ratelimit-remaining-calls-per-second: '166.616667' status: code: 200 message: OK @@ -89,67 +89,67 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repoc7611808", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-09T19:02:15.0497808Z", "lastUpdateTime": - "2021-05-09T19:02:15.0497808Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 525, "createdTime": "2021-05-03T20:10:16.6574215Z", "lastUpdateTime": + "2021-05-03T20:10:16.6574215Z", "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-09T19:02:15.2929154Z", "lastUpdateTime": - "2021-05-09T19:02:15.2929154Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.8335216Z", "lastUpdateTime": + "2021-04-28T15:39:48.8335216Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-09T19:02:15.5134251Z", "lastUpdateTime": - "2021-05-09T19:02:15.5134251Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.6753267Z", "lastUpdateTime": + "2021-04-28T15:39:48.6753267Z", "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-09T19:02:15.1909314Z", "lastUpdateTime": - "2021-05-09T19:02:15.1909314Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:39:49.6695854Z", "lastUpdateTime": + "2021-04-28T15:39:49.6695854Z", "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-09T19:02:15.6249896Z", "lastUpdateTime": - "2021-05-09T19:02:15.6249896Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.1836957Z", "lastUpdateTime": + "2021-04-28T15:39:48.1836957Z", "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-09T19:02:15.2304392Z", "lastUpdateTime": - "2021-05-09T19:02:15.2304392Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.3248644Z", "lastUpdateTime": + "2021-04-28T15:39:48.3248644Z", "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-09T19:02:15.1458286Z", "lastUpdateTime": - "2021-05-09T19:02:15.1458286Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.5855065Z", "lastUpdateTime": + "2021-04-28T15:39:48.5855065Z", "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-09T19:02:16.1132509Z", "lastUpdateTime": - "2021-05-09T19:02:16.1132509Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.4142388Z", "lastUpdateTime": + "2021-04-28T15:39:48.4142388Z", "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-09T19:02:15.4232682Z", "lastUpdateTime": - "2021-05-09T19:02:15.4232682Z", "architecture": "amd64", "os": "windows", + "imageSize": 0, "createdTime": "2021-04-28T15:39:48.2527522Z", "lastUpdateTime": + "2021-04-28T15:39:48.2527522Z", "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-09T19:02:14.4221346Z", "lastUpdateTime": - "2021-05-09T19:02:14.4221346Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T15:39:47.8188629Z", "lastUpdateTime": + "2021-04-28T15:39:47.8188629Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tagc7611808"], "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: Sun, 09 May 2021 19:12:45 GMT + date: Mon, 03 May 2021 20:10:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoc7611808 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:45 GMT + date: Mon, 03 May 2021 20:10:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoc7611808 +- 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.0b1 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: Mon, 03 May 2021 20:10:30 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -198,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:46 GMT + date: Mon, 03 May 2021 20:10:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -222,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoc7611808 response: @@ -243,7 +270,7 @@ interactions: connection: keep-alive content-length: '793' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:47 GMT + date: Mon, 03 May 2021 20:10:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -259,7 +286,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -272,7 +299,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:57 GMT + date: Mon, 03 May 2021 20:10:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -292,7 +319,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -301,11 +328,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:58 GMT + date: Mon, 03 May 2021 20:10:42 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -316,7 +343,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoc7611808/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -327,7 +354,7 @@ interactions: connection: keep-alive content-length: '70' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:58 GMT + date: Mon, 03 May 2021 20:10:42 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml index 0de87dcfca0d..cb89fb770054 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_registry_artifact_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:58 GMT + date: Mon, 03 May 2021 20:11:37 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:12:59 GMT + date: Mon, 03 May 2021 20:11:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:00 GMT + date: Mon, 03 May 2021 20:11:38 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo61301e4e response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '120' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:00 GMT + date: Mon, 03 May 2021 20:11:38 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml index 2ca11ce13601..19496a6dee87 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:15 GMT + date: Wed, 28 Apr 2021 21:21:52 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:16 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:16 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags/tag9cb4121e0 response: @@ -99,7 +99,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '0' - date: Sun, 09 May 2021 19:13:16 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -116,7 +116,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags response: @@ -129,7 +129,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:16 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -149,7 +149,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -158,11 +158,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:17 GMT + date: Wed, 28 Apr 2021 21:21:53 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.866667' status: code: 200 message: OK @@ -173,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo9cb4121e/_tags response: @@ -196,7 +196,7 @@ interactions: connection: keep-alive content-length: '1028' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:17 GMT + date: Wed, 28 Apr 2021 21:21:54 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml index 7020fb98aabe..bf90284d86bc 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_delete_tag_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '208' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:17 GMT + date: Mon, 03 May 2021 16:14:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:18 GMT + date: Mon, 03 May 2021 16:14:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.9' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:18 GMT + date: Mon, 03 May 2021 16:14:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fake_url.azurecr.io/acr/v1/repoddbe1864/_tags/does_not_exist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:19 GMT + date: Mon, 03 May 2021 16:14:27 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml index 69a5091ddfad..c75d839d577f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:34 GMT + date: Wed, 28 Apr 2021 21:22:10 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:35 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '166.033333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:35 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' + x-ms-ratelimit-remaining-calls-per-second: '166.016667' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:35 GMT + date: Wed, 28 Apr 2021 21:22:11 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:36 GMT + date: Wed, 28 Apr 2021 21:22:12 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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, 28 Apr 2021 21:22:13 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -198,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:36 GMT + date: Wed, 28 Apr 2021 21:22:13 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' + x-ms-ratelimit-remaining-calls-per-second: '165.783333' status: code: 200 message: OK @@ -222,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repoaf9517b2/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -234,15 +261,15 @@ interactions: "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\":\"5/9/2021 7:02:51 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"4/28/2021 9:22:02 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: '817' + content-length: '818' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:36 GMT + date: Wed, 28 Apr 2021 21:22:13 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml index aca2eb14cd53..994716b9c55d 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_manifest_properties_does_not_exist.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_manifests/sha256:abcdefghijkl response: @@ -17,7 +17,7 @@ interactions: connection: keep-alive content-length: '19' content-type: text/plain; charset=utf-8 - date: Sun, 09 May 2021 19:13:36 GMT + date: Wed, 28 Apr 2021 21:22:14 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml index 1b2c9c4eaf0e..f1343c164b0f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:52 GMT + date: Wed, 28 Apr 2021 21:22:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:53 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' + x-ms-ratelimit-remaining-calls-per-second: '165.883333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,7 +74,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:53 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:54 GMT + date: Wed, 28 Apr 2021 21:22:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:54 GMT + date: Wed, 28 Apr 2021 21:22:31 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 +- 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.0b1 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, 28 Apr 2021 21:22:31 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -198,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:54 GMT + date: Wed, 28 Apr 2021 21:22:31 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' + x-ms-ratelimit-remaining-calls-per-second: '165.666667' status: code: 200 message: OK @@ -222,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3db51597/_tags/tag3db51597 response: @@ -237,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:54 GMT + date: Wed, 28 Apr 2021 21:22:32 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml index c2f638720b02..70fa9f946c66 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_get_tag_properties_does_not_exist.yaml @@ -5,20 +5,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: body: string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "hello-world", "Action": "metadata_read"}]}]}' + "repository", "Name": "repo8cab223e", "Action": "metadata_write"}]}]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-length: '214' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:55 GMT + date: Wed, 28 Apr 2021 22:08:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:56 GMT + date: Wed, 28 Apr 2021 22:08:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' + x-ms-ratelimit-remaining-calls-per-second: '166.533333' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:56 GMT + date: Wed, 28 Apr 2021 22:08:18 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' + x-ms-ratelimit-remaining-calls-per-second: '166.433333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/hello-world/_tags/doesnotexist response: @@ -101,7 +101,7 @@ interactions: connection: keep-alive content-length: '81' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:13:56 GMT + date: Wed, 28 Apr 2021 22:08:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml index 4cafc32e94a2..455968149e78 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_list_tags.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:11 GMT + date: Wed, 28 Apr 2021 21:22:48 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:12 GMT + date: Wed, 28 Apr 2021 21:22:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' + x-ms-ratelimit-remaining-calls-per-second: '165.85' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:12 GMT + date: Wed, 28 Apr 2021 21:22:49 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' + x-ms-ratelimit-remaining-calls-per-second: '165.283333' status: code: 200 message: OK @@ -89,60 +89,60 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_manifests response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-06T15:57:09.9310692Z", "lastUpdateTime": - "2021-05-06T15:57:09.9310692Z", "architecture": "amd64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.2285659Z", "lastUpdateTime": + "2021-04-28T15:40:53.2285659Z", "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-06T15:57:10.2695271Z", "lastUpdateTime": - "2021-05-06T15:57:10.2695271Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.4675747Z", "lastUpdateTime": + "2021-04-28T15:40:53.4675747Z", "architecture": "arm", "os": "linux", "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-06T15:57:10.5937322Z", "lastUpdateTime": - "2021-05-06T15:57:10.5937322Z", "architecture": "mips64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:40:54.1081971Z", "lastUpdateTime": + "2021-04-28T15:40:54.1081971Z", "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-06T15:57:10.4416522Z", "lastUpdateTime": - "2021-05-06T15:57:10.4416522Z", "architecture": "arm64", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.7975951Z", "lastUpdateTime": + "2021-04-28T15:40:53.7975951Z", "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-06T15:57:14.6019859Z", "lastUpdateTime": - "2021-05-06T15:57:14.6019859Z", "architecture": "ppc64le", "os": "linux", + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.6632822Z", "lastUpdateTime": + "2021-04-28T15:40:53.6632822Z", "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-06T15:57:11.1905662Z", "lastUpdateTime": - "2021-05-06T15:57:11.1905662Z", "architecture": "386", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:54.1632809Z", "lastUpdateTime": + "2021-04-28T15:40:54.1632809Z", "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-06T15:57:10.7703984Z", "lastUpdateTime": - "2021-05-06T15:57:10.7703984Z", "architecture": "s390x", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:54.8239765Z", "lastUpdateTime": + "2021-04-28T15:40:54.8239765Z", "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-06T15:57:10.1976249Z", "lastUpdateTime": - "2021-05-06T15:57:10.1976249Z", "architecture": "arm", "os": "linux", "mediaType": + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.5235657Z", "lastUpdateTime": + "2021-04-28T15:40:53.5235657Z", "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-06T15:57:10.9089143Z", "lastUpdateTime": - "2021-05-06T15:57:10.9089143Z", "architecture": "amd64", "os": "windows", + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.7095671Z", "lastUpdateTime": + "2021-04-28T15:40:53.7095671Z", "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-06T15:57:09.6847213Z", "lastUpdateTime": - "2021-05-06T15:57:09.6847213Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", + "imageSize": 0, "createdTime": "2021-04-28T15:40:53.858241Z", "lastUpdateTime": + "2021-04-28T15:40:53.858241Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "tags": ["tag8b5a11da0", "tag8b5a11da1", "tag8b5a11da2", "tag8b5a11da3"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' @@ -150,7 +150,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:13 GMT + date: Wed, 28 Apr 2021 21:22:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -166,7 +166,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags response: @@ -179,7 +179,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:13 GMT + date: Wed, 28 Apr 2021 21:22:50 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -189,6 +189,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_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.0b1 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, 28 Apr 2021 21:22:51 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 @@ -199,7 +226,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -208,11 +235,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:13 GMT + date: Wed, 28 Apr 2021 21:22:51 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -223,26 +250,26 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo8b5a11da/_tags response: body: string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8b5a11da", "tags": [{"name": "tag8b5a11da0", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:57:09.8413996Z", "lastUpdateTime": "2021-05-06T15:57:09.8413996Z", + "createdTime": "2021-04-28T15:40:55.5579596Z", "lastUpdateTime": "2021-04-28T15:40:55.5579596Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da1", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:57:11.069994Z", "lastUpdateTime": "2021-05-06T15:57:11.069994Z", + "createdTime": "2021-04-28T15:40:53.3089855Z", "lastUpdateTime": "2021-04-28T15:40:53.3089855Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da2", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:57:10.5502763Z", "lastUpdateTime": "2021-05-06T15:57:10.5502763Z", + "createdTime": "2021-04-28T15:40:53.4155166Z", "lastUpdateTime": "2021-04-28T15:40:53.4155166Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"name": "tag8b5a11da3", "digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "createdTime": "2021-05-06T15:57:11.1293075Z", "lastUpdateTime": "2021-05-06T15:57:11.1293075Z", + "createdTime": "2021-04-28T15:40:53.572585Z", "lastUpdateTime": "2021-04-28T15:40:53.572585Z", "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}]}' headers: @@ -250,7 +277,7 @@ interactions: connection: keep-alive content-length: '1345' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:13 GMT + date: Wed, 28 Apr 2021 21:22:51 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml index 6ba2eb6eeeb0..074c2243baf6 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_manifest_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:28 GMT + date: Mon, 03 May 2021 16:15:21 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:29 GMT + date: Mon, 03 May 2021 16:15:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' + x-ms-ratelimit-remaining-calls-per-second: '166.65' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:30 GMT + date: Mon, 03 May 2021 16:15:22 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' + x-ms-ratelimit-remaining-calls-per-second: '166.633333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:30 GMT + date: Mon, 03 May 2021 16:15:22 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:30 GMT + date: Mon, 03 May 2021 16:15:23 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 +- 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.0b1 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: Mon, 03 May 2021 16:15:23 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://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -198,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:30 GMT + date: Mon, 03 May 2021 16:15:23 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -222,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -234,7 +261,7 @@ interactions: "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\":\"5/9/2021 7:03:43 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:15:13 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -242,7 +269,7 @@ interactions: connection: keep-alive content-length: '817' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:30 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -262,7 +289,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -275,7 +302,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:31 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -295,7 +322,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -304,11 +331,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:31 GMT + date: Mon, 03 May 2021 16:15:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' + x-ms-ratelimit-remaining-calls-per-second: '166.25' status: code: 200 message: OK @@ -324,7 +351,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -336,7 +363,7 @@ interactions: "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": {"deleteEnabled": false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/9/2021 7:03:43 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:15:13 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -344,7 +371,7 @@ interactions: connection: keep-alive content-length: '821' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:31 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -364,7 +391,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -377,7 +404,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:31 GMT + date: Mon, 03 May 2021 16:15:24 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -397,7 +424,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -406,11 +433,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:31 GMT + date: Mon, 03 May 2021 16:15:24 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.983333' + x-ms-ratelimit-remaining-calls-per-second: '166.233333' status: code: 200 message: OK @@ -426,7 +453,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repob0a917be/_manifests/sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 response: @@ -438,7 +465,7 @@ interactions: "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\":\"5/9/2021 7:03:43 + Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/3/2021 4:15:13 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", "quarantineState": "Passed"}}}' headers: @@ -446,7 +473,7 @@ interactions: connection: keep-alive content-length: '817' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:32 GMT + date: Mon, 03 May 2021 16:15:25 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml index c5d0f25cd0b7..294dbdc0717a 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_registry_artifact_async.test_set_tag_properties.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: @@ -18,7 +18,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:47 GMT + date: Wed, 28 Apr 2021 21:23:26 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -37,7 +37,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/exchange response: @@ -46,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:48 GMT + date: Wed, 28 Apr 2021 21:23:27 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.65' + x-ms-ratelimit-remaining-calls-per-second: '165.35' status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -74,11 +74,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:48 GMT + date: Wed, 28 Apr 2021 21:23:28 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.333333' status: code: 200 message: OK @@ -89,7 +89,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_manifests response: @@ -149,7 +149,7 @@ interactions: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:28 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -165,7 +165,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -178,7 +178,7 @@ interactions: connection: keep-alive content-length: '215' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -188,6 +188,33 @@ interactions: code: 401 message: Unauthorized url: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 +- 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.0b1 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, 28 Apr 2021 21:23:29 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '165.4' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/exchange - request: body: grant_type: refresh_token @@ -198,7 +225,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -207,11 +234,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.55' + x-ms-ratelimit-remaining-calls-per-second: '165.033333' status: code: 200 message: OK @@ -222,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -237,7 +264,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -257,7 +284,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -270,7 +297,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:29 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -290,7 +317,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -299,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.533333' + x-ms-ratelimit-remaining-calls-per-second: '165.833333' status: code: 200 message: OK @@ -319,7 +346,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -334,7 +361,7 @@ interactions: connection: keep-alive content-length: '390' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:49 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -354,7 +381,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -367,7 +394,7 @@ interactions: connection: keep-alive content-length: '216' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:50 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -387,7 +414,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://fake_url.azurecr.io/oauth2/token response: @@ -396,11 +423,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:50 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.816667' status: code: 200 message: OK @@ -416,7 +443,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azure-containerregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fake_url.azurecr.io/acr/v1/repo3e8d15a3/_tags/tag3e8d15a3 response: @@ -431,7 +458,7 @@ interactions: connection: keep-alive content-length: '386' content-type: application/json; charset=utf-8 - date: Sun, 09 May 2021 19:14:50 GMT + date: Wed, 28 Apr 2021 21:23:30 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 8413fb8662d7..108203e61d9f 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -317,7 +317,6 @@ def import_image(repository, tags): @pytest.fixture(scope="session") def load_registry(): - return if not is_live(): return repos = [ From 87b19283f4990c3885ce57700889744c4e72bb7b Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:35:01 -0400 Subject: [PATCH 40/42] changelog --- .../azure-containerregistry/CHANGELOG.md | 1 + .../containerregistry/_container_registry_client.py | 12 ------------ .../aio/_async_authentication_policy.py | 3 +-- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/CHANGELOG.md b/sdk/containerregistry/azure-containerregistry/CHANGELOG.md index 172c7f4a5750..98827808aa51 100644 --- a/sdk/containerregistry/azure-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/azure-containerregistry/CHANGELOG.md @@ -6,6 +6,7 @@ * Rename `TagProperties` to `ArtifactTagProperties` * Rename `ContentPermissions` to `ContentProperties` * Rename `content_permissions` attributes on `TagProperties`, `RepositoryProperties`, and `RegistryArtifactProperties` to `writeable_properties`. +* Adds anonymous access capabilities to client by passing in `None` to credential. ## 1.0.0b1 (2021-04-06) * First release of the Azure Container Registry library for Python diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index daf9297190e8..f1caefa5e696 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -242,15 +242,3 @@ def get_artifact(self, repository_name, tag_or_digest, **kwargs): pipeline=_pipeline, **kwargs ) - - @distributed_trace - def get_artifact(self, repository_name, tag_or_digest, **kwargs): - # type: (str, str, Dict[str, Any]) -> RegistryArtifact - """Get a Registry Artifact object - - :param str repository_name: Name of the repository - :param str tag_or_digest: The tag or digest of the artifact - :returns: :class:`~azure.containerregistry.RegistryArtifact` - :raises: None - """ - return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py index 70766b12e8b4..498232163acd 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py @@ -22,10 +22,9 @@ class ContainerRegistryChallengePolicy(AsyncHTTPPolicy): def __init__(self, credential: "AsyncTokenCredential", endpoint: str) -> None: super().__init__() self._credential = credential + self._exchange_client = ACRExchangeClient(endpoint, self._credential) if self._credential is None: self._exchange_client = AnonymousACRExchangeClient(endpoint) - else: - self._exchange_client = ACRExchangeClient(endpoint, self._credential) async def on_request(self, request): # type: (PipelineRequest) -> None From 68f7bfd4f637e145af850336f09b0e8d7243efab Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 11 May 2021 14:23:23 -0400 Subject: [PATCH 41/42] anna and mccoys comments --- .../_anonymous_exchange_client.py | 22 +++++++------------ .../_authentication_policy.py | 3 ++- .../containerregistry/_exchange_client.py | 3 --- .../aio/_async_anonymous_exchange_client.py | 21 +++++------------- .../aio/_async_authentication_policy.py | 3 ++- .../aio/_async_exchange_client.py | 3 --- 6 files changed, 18 insertions(+), 37 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py index 9bd08d1b3b9c..bd568857bf7a 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -4,10 +4,11 @@ # Licensed under the MIT License. # ------------------------------------ import re -from typing import TYPE_CHECKING, Dict, Any +from typing import TYPE_CHECKING, Dict, Any, Optional from ._exchange_client import ExchangeClientAuthenticationPolicy from ._generated import ContainerRegistry +from ._generated.models._container_registry_enums import TokenGrantType from ._helpers import _parse_challenge from ._user_agent import USER_AGENT @@ -15,9 +16,6 @@ from azure.core.credentials import TokenCredential -PASSWORD = u"password" - - class AnonymousACRExchangeClient(object): """Class for handling oauth authentication requests @@ -27,39 +25,35 @@ class AnonymousACRExchangeClient(object): :type credential: :class:`~azure.core.credentials.TokenCredential` """ - BEARER = "Bearer" - AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - - def __init__(self, endpoint, credential=None, **kwargs): - # type: (str, TokenCredential, Dict[str, Any]) -> None + def __init__(self, endpoint, **kwargs): + # type: (str, Dict[str, Any]) -> None if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint self.credential_scope = "https://management.core.windows.net/.default" self._client = ContainerRegistry( - credential=credential, + credential=None, url=endpoint, sdk_moniker=USER_AGENT, authentication_policy=ExchangeClientAuthenticationPolicy(), credential_scopes=kwargs.pop("credential_scopes", self.credential_scope), **kwargs ) - self._credential = credential def get_acr_access_token(self, challenge, **kwargs): # type: (str, Dict[str, Any]) -> str parsed_challenge = _parse_challenge(challenge) - parsed_challenge["grant_type"] = PASSWORD + parsed_challenge["grant_type"] = TokenGrantType.PASSWORD return self.exchange_refresh_token_for_access_token( None, service=parsed_challenge["service"], scope=parsed_challenge["scope"], - grant_type=PASSWORD, + grant_type=TokenGrantType.PASSWORD, **kwargs ) def exchange_refresh_token_for_access_token( - self, refresh_token=None, service=None, scope=None, grant_type=PASSWORD, **kwargs + self, refresh_token=None, service=None, scope=None, grant_type=TokenGrantType.PASSWORD, **kwargs ): # type: (str, str, str, str, Dict[str, Any]) -> str access_token = self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py index 81cb9a6c57c6..352697e5cd53 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py @@ -25,9 +25,10 @@ def __init__(self, credential, endpoint): # type: (TokenCredential, str) -> None super(ContainerRegistryChallengePolicy, self).__init__() self._credential = credential - self._exchange_client = ACRExchangeClient(endpoint, self._credential) if self._credential is None: self._exchange_client = AnonymousACRExchangeClient(endpoint) + else: + self._exchange_client = ACRExchangeClient(endpoint, self._credential) def on_request(self, request): # type: (PipelineRequest) -> None diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py index 54ae6aff97c3..bc9dd09e8efa 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py @@ -40,9 +40,6 @@ class ACRExchangeClient(object): :type credential: :class:`~azure.core.credentials.TokenCredential` """ - BEARER = "Bearer" - AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - def __init__(self, endpoint, credential, **kwargs): # type: (str, TokenCredential, Dict[str, Any]) -> None if not endpoint.startswith("https://") and not endpoint.startswith("http://"): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py index 049f29ea4cf6..172c2805db39 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py @@ -8,6 +8,7 @@ from ._async_exchange_client import ExchangeClientAuthenticationPolicy from .._generated.aio import ContainerRegistry +from .._generated.models._container_registry_enums import TokenGrantType from .._helpers import _parse_challenge from .._user_agent import USER_AGENT @@ -15,45 +16,35 @@ from azure.core.credentials_async import AsyncTokenCredential -PASSWORD = u"password" - - - class AnonymousACRExchangeClient(object): """Class for handling oauth authentication requests :param endpoint: Azure Container Registry endpoint :type endpoint: str - :param credential: Credential which provides tokens to authenticate requests - :type credential: :class:`azure.core.credentials.TokenCredential` """ - BEARER = "Bearer" - AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - - def __init__(self, endpoint: str, credential: "AsyncTokencredential" = None, **kwargs: Dict[str, Any]) -> None: + def __init__(self, endpoint: str, **kwargs: Dict[str, Any]) -> None: if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint self._credential_scope = "https://management.core.windows.net/.default" self._client = ContainerRegistry( - credential=credential, + credential=None, url=endpoint, sdk_moniker=USER_AGENT, authentication_policy=ExchangeClientAuthenticationPolicy(), credential_scopes=kwargs.pop("credential_scopes", self._credential_scope), **kwargs ) - self._credential = credential async def get_acr_access_token(self, challenge: str, **kwargs: Dict[str, Any]) -> str: parsed_challenge = _parse_challenge(challenge) - parsed_challenge["grant_type"] = PASSWORD + parsed_challenge["grant_type"] = TokenGrantType.PASSWORD return await self.exchange_refresh_token_for_access_token( None, service=parsed_challenge["service"], scope=parsed_challenge["scope"], - grant_type=PASSWORD, + grant_type=TokenGrantType.PASSWORD, **kwargs ) @@ -62,7 +53,7 @@ async def exchange_refresh_token_for_access_token( refresh_token: str = None, service: str = None, scope: str = None, - grant_type: str = PASSWORD, + grant_type: str = TokenGrantType.PASSWORD, **kwargs: Any ) -> str: access_token = await self._client.authentication.exchange_acr_refresh_token_for_acr_access_token( diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py index 498232163acd..70766b12e8b4 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_authentication_policy.py @@ -22,9 +22,10 @@ class ContainerRegistryChallengePolicy(AsyncHTTPPolicy): def __init__(self, credential: "AsyncTokenCredential", endpoint: str) -> None: super().__init__() self._credential = credential - self._exchange_client = ACRExchangeClient(endpoint, self._credential) if self._credential is None: self._exchange_client = AnonymousACRExchangeClient(endpoint) + else: + self._exchange_client = ACRExchangeClient(endpoint, self._credential) async def on_request(self, request): # type: (PipelineRequest) -> None diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py index 4aad909ec0b1..6a74213e4752 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py @@ -37,9 +37,6 @@ class ACRExchangeClient(object): :type credential: :class:`azure.core.credentials.TokenCredential` """ - BEARER = "Bearer" - AUTHENTICATION_CHALLENGE_PARAMS_PATTERN = re.compile('(?:(\\w+)="([^""]*)")+') - def __init__(self, endpoint: str, credential: "AsyncTokencredential", **kwargs: Dict[str, Any]) -> None: if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint From 8a254ab89428bb31e40ea2e0b766a61edc1d1b5e Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 11 May 2021 14:57:20 -0400 Subject: [PATCH 42/42] lint fixes --- .../azure/containerregistry/_anonymous_exchange_client.py | 5 ++--- .../azure/containerregistry/_exchange_client.py | 1 - .../aio/_async_anonymous_exchange_client.py | 3 +-- .../azure/containerregistry/aio/_async_exchange_client.py | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py index bd568857bf7a..6ad07c0e8f9b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_anonymous_exchange_client.py @@ -3,8 +3,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import re -from typing import TYPE_CHECKING, Dict, Any, Optional +from typing import TYPE_CHECKING, Dict, Any from ._exchange_client import ExchangeClientAuthenticationPolicy from ._generated import ContainerRegistry @@ -25,7 +24,7 @@ class AnonymousACRExchangeClient(object): :type credential: :class:`~azure.core.credentials.TokenCredential` """ - def __init__(self, endpoint, **kwargs): + def __init__(self, endpoint, **kwargs): # pylint: disable=missing-client-constructor-parameter-credential # type: (str, Dict[str, Any]) -> None if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py index bc9dd09e8efa..c24f25a14043 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py @@ -3,7 +3,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import re import time from typing import TYPE_CHECKING diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py index 172c2805db39..0d9ba0e8463f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_anonymous_exchange_client.py @@ -3,7 +3,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import re from typing import TYPE_CHECKING, Dict, List, Any from ._async_exchange_client import ExchangeClientAuthenticationPolicy @@ -23,7 +22,7 @@ class AnonymousACRExchangeClient(object): :type endpoint: str """ - def __init__(self, endpoint: str, **kwargs: Dict[str, Any]) -> None: + def __init__(self, endpoint: str, **kwargs: Dict[str, Any]) -> None: # pylint: disable=missing-client-constructor-parameter-credential if not endpoint.startswith("https://") and not endpoint.startswith("http://"): endpoint = "https://" + endpoint self._endpoint = endpoint diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py index 6a74213e4752..af0a44fa2ac8 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_exchange_client.py @@ -3,7 +3,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import re import time from typing import TYPE_CHECKING, Dict, List, Any