From d7bcfe6a1a4fbeb85b70beb8f93896a0955c3147 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 27 Apr 2021 17:56:44 -0400 Subject: [PATCH 01/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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/25] 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 af8959d29c3c73bb43f5e27643dc3885fbb4bb87 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 16:01:17 -0400 Subject: [PATCH 13/25] adding enums --- .../azure/containerregistry/__init__.py | 4 + .../azure/containerregistry/_models.py | 90 ++++++++++++++++++- .../tests/test_registry_artifact.py | 6 +- .../tests/test_registry_artifact_async.py | 7 +- 4 files changed, 101 insertions(+), 6 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index b9b2ec95f1c8..bce7d6f9376f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -9,6 +9,8 @@ from ._container_registry_client import ContainerRegistryClient from ._container_repository import ContainerRepository from ._models import ( + ArtifactArchitecture, + ArtifactOperatingSystem, ContentPermissions, DeletedRepositoryResult, RegistryArtifactOrderBy, @@ -23,6 +25,8 @@ __version__ = VERSION __all__ = [ + "ArtifactArchitecture", + "ArtifactOperatingSystem", "ContainerRegistryClient", "ContainerRepository", "ContentPermissions", diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 23e75c4917ba..851cfd132413 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -6,6 +6,7 @@ from enum import Enum from typing import TYPE_CHECKING + from ._generated.models import ContentProperties from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties @@ -71,13 +72,15 @@ def _from_generated(cls, gen): class ArtifactManifestProperties(object): """Represents properties of a registry artifact - :ivar str cpu_architecture: CPU Architecture of an artifact + :ivar architecture: CPU Architecture of an artifact + :vartype architecture: :class:`azure.containerregistry.ArtifactArchitecture` :ivar created_on: Time and date an artifact was created :vartype created_on: :class:`~datetime.datetime` :ivar str digest: Digest for the artifact :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 operating_system: Operating system for the artifact + :vartype operating_system: :class:`azure.containerregistry.ArtifactOperatingSystem` :ivar List[str] references: References for the artifact :ivar str size: Size of the artifact :ivar List[str] tags: Tags associated with a registry artifact @@ -86,11 +89,11 @@ class ArtifactManifestProperties(object): """ def __init__(self, **kwargs): - self.cpu_architecture = kwargs.get("cpu_architecture", None) + self.architecture = _map_architecture(kwargs.get("cpu_architecture", 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.operating_system = kwargs.get("operating_system", None) + self.operating_system = _map_operating_system(kwargs.get("operating_system", None)) self.references = kwargs.get("references", None) self.size = kwargs.get("size", None) self.tags = kwargs.get("tags", None) @@ -211,3 +214,82 @@ def _from_generated(cls, generated): name=generated.name, writeable_properties=generated.writeable_properties, ) + + +def _map_architecture(arch): + # type: (str) -> ArtifactArchitecture + if arch is None: + return None + m = { + "amd64": ArtifactArchitecture.AMD64, + "arm": ArtifactArchitecture.ARM, + "arm64": ArtifactArchitecture.ARM64, + "386": ArtifactArchitecture.I386, + "mips": ArtifactArchitecture.MIPS, + "mips64": ArtifactArchitecture.MIPS64, + "mips64le": ArtifactArchitecture.MIPS64LE, + "mips64le": ArtifactArchitecture.MIPSLE, + "ppc64": ArtifactArchitecture.PPC64, + "ppc64le": ArtifactArchitecture.PPC64LE, + "riscv64": ArtifactArchitecture.RISCV64, + "s390x": ArtifactArchitecture.S390X, + "wasm": ArtifactArchitecture.WASM, + } + return m[arch] + + +def _map_operating_system(os): + # type: (str) -> ArtifactOperatingSystem + if os is None: + return None + m = { + "aix": ArtifactOperatingSystem.AIX, + "android": ArtifactOperatingSystem.ANDROID, + "darwin": ArtifactOperatingSystem.DARWIN, + "dragonfly": ArtifactOperatingSystem.DRAGONFLY, + "freebsd": ArtifactOperatingSystem.FREEBSD, + "illumos": ArtifactOperatingSystem.ILLUMOS, + "ios": ArtifactOperatingSystem.IOS, + "js": ArtifactOperatingSystem.JS, + "linux": ArtifactOperatingSystem.LINUX, + "netbsd": ArtifactOperatingSystem.NETBSD, + "openbsd": ArtifactOperatingSystem.OPENBSD, + "plan9": ArtifactOperatingSystem.PLAN9, + "solaris": ArtifactOperatingSystem.SOLARIS, + "windows": ArtifactOperatingSystem.WINDOWS, + } + return m[os] + +class ArtifactArchitecture(str, Enum): + + AMD64 = "amd64" + ARM = "arm" + ARM64 = "arm64" + I386 = "i386" + MIPS = "mips" + MIPS64 = "mips64" + MIPS64LE = "mips64le" + MIPSLE = "mips64le" + PPC64 = "ppc64" + PPC64LE = "ppc64le" + RISCV64 = "riscv64" + S390X = "s390x" + WASM = "wasm" + + +class ArtifactOperatingSystem(str, Enum): + + AIX = "aix" + ANDROID = "android" + DARWIN = "darwin" + DRAGONFLY = "dragonfly" + FREEBSD = "freebsd" + ILLUMOS = "illumos" + IOS = "ios" + JS = "js" + LINUX = "linux" + NETBSD = "netbsd" + OPENBSD = "openbsd" + PLAN9 = "plan9" + SOLARIS = "solaris" + WINDOWS = "windows" diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py index 7f602dd50cb9..58a8029efaab 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact.py @@ -6,8 +6,10 @@ import pytest from azure.containerregistry import ( - ContentPermissions, + ArtifactArchitecture, ArtifactManifestProperties, + ArtifactOperatingSystem, + ContentPermissions, TagProperties, ) from azure.core.exceptions import ResourceNotFoundError @@ -36,6 +38,8 @@ def test_get_manifest_properties(self, containerregistry_endpoint): assert isinstance(properties, ArtifactManifestProperties) assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.architecture, ArtifactArchitecture) + assert isinstance(properties.operating_system, ArtifactOperatingSystem) @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 b3a4bb6b604b..7056f5369fce 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_registry_artifact_async.py @@ -6,8 +6,10 @@ import pytest from azure.containerregistry import ( - ContentPermissions, + ArtifactArchitecture, ArtifactManifestProperties, + ArtifactOperatingSystem, + ContentPermissions, TagProperties, ) from azure.core.exceptions import ResourceNotFoundError @@ -36,6 +38,9 @@ async def test_get_manifest_properties(self, containerregistry_endpoint): assert isinstance(properties, ArtifactManifestProperties) assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.content_permissions, ContentPermissions) + assert isinstance(properties.architecture, ArtifactArchitecture) + assert isinstance(properties.operating_system, ArtifactOperatingSystem) @acr_preparer() async def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): From c355fddd17663d01222714be59defb6eacd93040 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Wed, 28 Apr 2021 16:28:06 -0400 Subject: [PATCH 14/25] updating enums --- .../azure/containerregistry/_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 851cfd132413..d6de68f7e3ce 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -228,7 +228,7 @@ def _map_architecture(arch): "mips": ArtifactArchitecture.MIPS, "mips64": ArtifactArchitecture.MIPS64, "mips64le": ArtifactArchitecture.MIPS64LE, - "mips64le": ArtifactArchitecture.MIPSLE, + "mipsle": ArtifactArchitecture.MIPSLE, "ppc64": ArtifactArchitecture.PPC64, "ppc64le": ArtifactArchitecture.PPC64LE, "riscv64": ArtifactArchitecture.RISCV64, @@ -265,11 +265,11 @@ class ArtifactArchitecture(str, Enum): AMD64 = "amd64" ARM = "arm" ARM64 = "arm64" - I386 = "i386" + I386 = "386" MIPS = "mips" MIPS64 = "mips64" MIPS64LE = "mips64le" - MIPSLE = "mips64le" + MIPSLE = "mipsle" PPC64 = "ppc64" PPC64LE = "ppc64le" RISCV64 = "riscv64" From 2ec30e146f94cf24d51d8eb30b390e8120d01091 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 12:31:28 -0400 Subject: [PATCH 15/25] merge conflicts --- .../azure/containerregistry/__init__.py | 1 - .../azure/containerregistry/_container_registry_client.py | 6 +++++- .../azure/containerregistry/_registry_artifact.py | 2 +- .../aio/_async_container_registry_client.py | 6 +++++- .../azure/containerregistry/aio/_async_registry_artifact.py | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py index a180e69e837b..7db39de0831d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/__init__.py @@ -14,7 +14,6 @@ ContentProperties, ManifestOrderBy, DeleteRepositoryResult, - ContentProperties, ArtifactManifestProperties, RepositoryProperties, TagOrderBy, 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 f603cf668b26..5fb2b9ef5c8c 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -58,7 +58,9 @@ def delete_repository(self, repository_name, **kwargs): :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + .. admonition:: Example: + .. literalinclude:: ../samples/sample_create_client.py :start-after: [START delete_repository] :end-before: [END delete_repository] @@ -84,7 +86,9 @@ def list_repository_names(self, **kwargs): :return: ItemPaged[str] :rtype: :class:`~azure.core.paging.ItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + .. admonition:: Example: + .. literalinclude:: ../samples/sample_delete_old_tags.py :start-after: [START list_repository_names] :end-before: [END list_repository_names] @@ -215,4 +219,4 @@ def get_artifact(self, repository_name, tag_or_digest, **kwargs): :returns: :class:`~azure.containerregistry.RegistryArtifact` :raises: None """ - return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) \ No newline at end of file + return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index 6e486f8900bc..c465cafddffe 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -348,4 +348,4 @@ def set_tag_properties(self, tag, permissions, **kwargs): self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ), repository=self.repository, - ) \ No newline at end of file + ) 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 62aa73655c1e..255cad2f0d44 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 @@ -58,7 +58,9 @@ async def delete_repository(self, repository_name: str, **kwargs: Dict[str, Any] :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + .. admonition:: Example: + .. literalinclude:: ../samples/async_samples/sample_create_client_async.py :start-after: [START delete_repository] :end-before: [END delete_repository] @@ -82,7 +84,9 @@ def list_repository_names(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[str] :return: ItemPaged[str] :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + .. admonition:: Example: + .. literalinclude:: ../samples/async_samples/sample_delete_old_tags_async.py :start-after: [START list_repository_names] :end-before: [END list_repository_names] @@ -210,4 +214,4 @@ def get_artifact(self, repository_name: str, tag_or_digest: str, **kwargs: Dict[ :returns: :class:`~azure.containerregistry.RegistryArtifact` :raises: None """ - return RegistryArtifact(self._endpoint, repository_name, tag_or_digest, self._credential, **kwargs) \ No newline at end of file + return RegistryArtifact(self._endpoint, repository_name, 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 index 497ce5930194..094210d3cc7e 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 @@ -350,4 +350,4 @@ async def set_tag_properties( self.repository, tag, value=permissions._to_generated(), **kwargs # pylint: disable=protected-access ), repository=self.repository, - ) \ No newline at end of file + ) From 09a7d4e66f399607ee37703421245c0fc98969ea Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Thu, 6 May 2021 12:49:01 -0400 Subject: [PATCH 16/25] added spacing between inline examples --- .../_container_registry_client.py | 4 ++++ .../containerregistry/_registry_artifact.py | 16 ++++++++++++++++ .../aio/_async_container_registry_client.py | 4 ++++ .../aio/_async_registry_artifact.py | 16 ++++++++++++++++ 4 files changed, 40 insertions(+) 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 5fb2b9ef5c8c..277c3b854ae1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -36,7 +36,9 @@ def __init__(self, endpoint, credential, **kwargs): :type credential: :class:`~azure.core.credentials.TokenCredential` :returns: None :raises: None + .. admonition:: Example: + .. literalinclude:: ../samples/sample_create_client.py :start-after: [START create_registry_client] :end-before: [END create_registry_client] @@ -194,7 +196,9 @@ def get_repository(self, repository_name, **kwargs): :param str repository_name: The repository to create a client for :returns: :class:`~azure.containerregistry.ContainerRepository` :raises: None + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py index c465cafddffe..b5d6a438065f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_registry_artifact.py @@ -43,7 +43,9 @@ def __init__(self, endpoint, repository, tag_or_digest, credential, **kwargs): :type credential: :class:`~azure.core.credentials.TokenCredential` :returns: None :raises: None + .. admonition:: Example: + .. literalinclude:: ../samples/sample_create_client.py :start-after: [START create_repository_client] :end-before: [END create_repository_client] @@ -74,7 +76,9 @@ def delete(self, **kwargs): :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -93,7 +97,9 @@ def delete_tag(self, tag, **kwargs): :param str tag: The tag to be deleted :returns: None :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -110,7 +116,9 @@ def get_manifest_properties(self, **kwargs): """Get the properties of a registry artifact :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -135,7 +143,9 @@ def get_tag_properties(self, tag, **kwargs): :type tag: str :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -163,7 +173,9 @@ def list_tags(self, **kwargs): :return: ItemPaged[:class:`~azure.containerregistry.ArtifactTagProperties`] :rtype: :class:`~azure.core.paging.ItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -286,7 +298,9 @@ def set_manifest_properties(self, permissions, **kwargs): :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential @@ -326,7 +340,9 @@ def set_tag_properties(self, tag, permissions, **kwargs): :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry import ContainerRepositoryClient from azure.identity import DefaultAzureCredential 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 255cad2f0d44..fca6cd0d6e27 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 @@ -37,7 +37,9 @@ def __init__(self, endpoint: str, credential: "AsyncTokenCredential", **kwargs: :type credential: :class:`~azure.core.credentials_async.AsyncTokenCredential` :returns: None :raises: None + .. admonition:: Example: + .. literalinclude:: ../samples/async_samples/sample_create_client_async.py :start-after: [START create_registry_client] :end-before: [END create_registry_client] @@ -188,7 +190,9 @@ def get_repository(self, repository_name: str, **kwargs: Any) -> ContainerReposi """Get a repository client :param str repository_name: The repository to create a client for :returns: :class:`~azure.containerregistry.aio.ContainerRepository` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential 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 094210d3cc7e..3c2670a07d77 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 @@ -50,7 +50,9 @@ def __init__( :type credential: :class:`~azure.core.credentials.TokenCredential` :returns: None :raises: None + .. admonition:: Example: + .. literalinclude:: ../samples/sample_create_client.py :start-after: [START create_registry_client] :end-before: [END create_registry_client] @@ -79,7 +81,9 @@ async def delete(self, **kwargs: Dict[str, Any]) -> DeleteRepositoryResult: :returns: Object containing information about the deleted repository :rtype: :class:`~azure.containerregistry.DeleteRepositoryResult` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -97,7 +101,9 @@ async def delete_tag(self, tag: str, **kwargs: Dict[str, Any]) -> None: :param str tag: The tag to be deleted :returns: None :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -113,7 +119,9 @@ async def get_manifest_properties(self, **kwargs: Dict[str, Any]) -> ArtifactMan """Get the properties of a registry artifact :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -137,7 +145,9 @@ async def get_tag_properties(self, tag: str, **kwargs: Dict[str, Any]) -> Artifa :type tag: str :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -163,7 +173,9 @@ def list_tags(self, **kwargs: Dict[str, Any]) -> AsyncItemPaged[ArtifactTagPrope :return: ItemPaged[:class:`~azure.containerregistry.ArtifactTagProperties`] :rtype: :class:`~azure.core.async_paging.AsyncItemPaged` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -287,7 +299,9 @@ async def set_manifest_properties( :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactManifestProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential @@ -328,7 +342,9 @@ async def set_tag_properties( :type permissions: ContentProperties :returns: :class:`~azure.containerregistry.ArtifactTagProperties` :raises: :class:`~azure.core.exceptions.ResourceNotFoundError` + Example + .. code-block:: python from azure.containerregistry.aio import ContainerRepositoryClient from azure.identity.aio import DefaultAzureCredential From 7d93184e0e6b2787437ef4c89c79c22bc4276dea Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:17:13 -0400 Subject: [PATCH 17/25] pylint fixes --- .../containerregistry/_container_registry_client.py | 11 ----------- .../azure/containerregistry/_models.py | 1 - .../aio/_async_container_registry_client.py | 10 ---------- 3 files changed, 22 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 86df8da0d4ed..0fe150565f64 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -238,14 +238,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/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 429ce611f21f..2c8afc3ad65d 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -9,7 +9,6 @@ from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties from ._generated.models import ContentProperties as GeneratedContentProperties -from ._generated.models import RepositoryProperties as GeneratedRepositoryProperties if TYPE_CHECKING: from ._generated.models import ManifestAttributesBase 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 05f77efcb701..89096e52f1a4 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 @@ -233,13 +233,3 @@ def get_artifact(self, repository_name: str, tag_or_digest: str, **kwargs: Dict[ pipeline=_pipeline, **kwargs ) - - @distributed_trace - 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 - :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) From c32799b23dcebe46c7e933f144e00b9afa850b0f Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:18:15 -0400 Subject: [PATCH 18/25] undoing changes to recording files --- ...egistry_client.test_delete_repository.yaml | 40 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...egistry_client.test_list_repositories.yaml | 32 +- ...client.test_list_repositories_by_page.yaml | 438 +++++++-- ...try_client.test_list_repository_names.yaml | 25 +- ...nt.test_list_repository_names_by_page.yaml | 314 ++----- ...lient.test_transport_closed_only_once.yaml | 40 +- ...y_client_async.test_delete_repository.yaml | 40 +- ...test_delete_repository_does_not_exist.yaml | 20 +- ...y_client_async.test_list_repositories.yaml | 32 +- ..._async.test_list_repositories_by_page.yaml | 368 ++++++-- ...ient_async.test_list_repository_names.yaml | 25 +- ...nc.test_list_repository_names_by_page.yaml | 274 ++---- ...async.test_transport_closed_only_once.yaml | 46 +- ...ner_repository.test_delete_repository.yaml | 62 +- ...y.test_delete_repository_doesnt_exist.yaml | 20 +- ...tainer_repository.test_get_properties.yaml | 24 +- ...ository.test_list_manifests_ascending.yaml | 73 +- ...sitory.test_list_manifests_descending.yaml | 63 +- ...pository.test_list_registry_artifacts.yaml | 71 +- ...est_list_registry_artifacts_ascending.yaml | 69 +- ....test_list_registry_artifacts_by_page.yaml | 867 ++---------------- ...st_list_registry_artifacts_descending.yaml | 75 +- ...tainer_repository.test_set_properties.yaml | 40 +- ...pository_async.test_delete_repository.yaml | 66 +- ...c.test_delete_repository_doesnt_exist.yaml | 20 +- ..._repository_async.test_get_properties.yaml | 24 +- ..._repository_async.test_list_manifests.yaml | 69 +- ...y_async.test_list_manifests_ascending.yaml | 73 +- ..._async.test_list_manifests_descending.yaml | 75 +- ...ry_async.test_list_registry_artifacts.yaml | 71 +- ...est_list_registry_artifacts_ascending.yaml | 73 +- ....test_list_registry_artifacts_by_page.yaml | 615 ++----------- ...st_list_registry_artifacts_descending.yaml | 75 +- ..._repository_async.test_set_properties.yaml | 40 +- ...t_async.test_delete_registry_artifact.yaml | 373 ++++++++ ...pository_client_async.test_delete_tag.yaml | 284 ++++++ ..._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 | 32 +- ...tifact.test_delete_tag_does_not_exist.yaml | 20 +- ...artifact.test_get_manifest_properties.yaml | 120 ++- ...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 | 112 ++- ...stry_artifact.test_set_tag_properties.yaml | 100 +- ...t_async.test_delete_registry_artifact.yaml | 115 ++- ...lete_registry_artifact_does_not_exist.yaml | 16 +- ...gistry_artifact_async.test_delete_tag.yaml | 34 +- ..._async.test_delete_tag_does_not_exist.yaml | 20 +- ...ct_async.test_get_manifest_properties.yaml | 63 +- ...et_manifest_properties_does_not_exist.yaml | 4 +- ...rtifact_async.test_get_tag_properties.yaml | 61 +- ...est_get_tag_properties_does_not_exist.yaml | 22 +- ...egistry_artifact_async.test_list_tags.yaml | 109 ++- ...ct_async.test_set_manifest_properties.yaml | 101 +- ...rtifact_async.test_set_tag_properties.yaml | 89 +- 60 files changed, 3251 insertions(+), 3397 deletions(-) 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_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 425402218bad..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: - - Fri, 07 May 2021 22:08:06 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: - - Fri, 07 May 2021 22:08:07 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: - - Fri, 07 May 2021 22:08:07 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: - - Fri, 07 May 2021 22:08:09 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: - - Fri, 07 May 2021 22:08:10 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: - - Fri, 07 May 2021 22:08:10 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,7 +273,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: @@ -282,8 +282,8 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -293,11 +293,11 @@ interactions: connection: - keep-alive content-length: - - '425' + - '384' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:10 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 ca326df17848..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: - - Fri, 07 May 2021 22:08:11 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: - - Fri, 07 May 2021 22:08:12 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: - - Fri, 07 May 2021 22:08:12 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: - - Fri, 07 May 2021 22:08:13 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_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repositories.yaml index b5d4104bc556..297da0e9b3c2 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 @@ -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: - - Thu, 06 May 2021 15:49:57 GMT + - Wed, 28 Apr 2021 22:03:39 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: - - Thu, 06 May 2021 15:49:59 GMT + - Wed, 28 Apr 2021 22:03:40 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.633333' + - '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.0b2 Python/3.9.0rc1 (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: - - Thu, 06 May 2021 15:49:59 GMT + - Wed, 28 Apr 2021 22:03:40 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.616667' + - '166.616667' status: code: 200 message: OK @@ -131,15 +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", "repo28471541", - "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3db51597", - "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", "repoaf9517b2", - "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' + 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"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -149,11 +151,11 @@ interactions: connection: - keep-alive content-length: - - '295' + - '384' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:00 GMT + - Wed, 28 Apr 2021 22:03:40 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 03c2f0899df3..0e7e2f6238a7 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 @@ -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: - - Thu, 06 May 2021 15:50:00 GMT + - Wed, 28 Apr 2021 22:03:41 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: - - Thu, 06 May 2021 15:50:02 GMT + - Wed, 28 Apr 2021 22:03:42 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' + - '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: - - Thu, 06 May 2021 15:50:02 GMT + - Wed, 28 Apr 2021 22:03:42 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.333333' + - '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/_catalog?n=2 response: @@ -150,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:02 GMT + - Wed, 28 Apr 2021 22:03:43 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: - - Thu, 06 May 2021 15:50:02 GMT + - Wed, 28 Apr 2021 22:03:43 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: - - Thu, 06 May 2021 15:50:02 GMT + - Wed, 28 Apr 2021 22:03:43 GMT server: - openresty strict-transport-security: @@ -245,7 +245,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.316667' + - '166.383333' status: code: 200 message: OK @@ -259,9 +259,137 @@ 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: + 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 22:03: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=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 22:03: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 22:03:43 GMT + server: + - openresty + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-ms-ratelimit-remaining-calls-per-second: + - '166.366667' + status: + code: 200 + message: OK +- request: + body: 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"]}' @@ -278,7 +406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:03 GMT + - Wed, 28 Apr 2021 22:03:43 GMT docker-distribution-api-version: - registry/2.0 link: @@ -303,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: @@ -324,7 +452,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:03 GMT + - Wed, 28 Apr 2021 22:03:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -353,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: @@ -365,7 +493,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:03 GMT + - Wed, 28 Apr 2021 22:03:44 GMT server: - openresty strict-transport-security: @@ -373,7 +501,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.3' + - '166.35' status: code: 200 message: OK @@ -387,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: @@ -406,7 +534,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:03 GMT + - Wed, 28 Apr 2021 22:03:44 GMT docker-distribution-api-version: - registry/2.0 link: @@ -431,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: @@ -452,7 +580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:03 GMT + - Wed, 28 Apr 2021 22:03:44 GMT docker-distribution-api-version: - registry/2.0 server: @@ -481,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: @@ -493,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:44 GMT server: - openresty strict-transport-security: @@ -501,7 +629,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.283333' + - '166.333333' status: code: 200 message: OK @@ -515,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 @@ -534,11 +662,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:44 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -559,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, @@ -580,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -609,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: @@ -621,7 +749,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:45 GMT server: - openresty strict-transport-security: @@ -629,7 +757,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.266667' + - '166.316667' status: code: 200 message: OK @@ -643,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 @@ -662,11 +790,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:45 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -687,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, @@ -708,7 +836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:45 GMT docker-distribution-api-version: - registry/2.0 server: @@ -737,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: @@ -749,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:04 GMT + - Wed, 28 Apr 2021 22:03:45 GMT server: - openresty strict-transport-security: @@ -757,7 +885,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.25' + - '166.3' status: code: 200 message: OK @@ -771,9 +899,137 @@ 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": ["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 22:03: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/_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 22:03: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=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 22:03:46 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=repo8b5a11da&n=2&orderby= response: body: string: '{"repositories": ["repo9b321760", "repo9cb4121e"]}' @@ -790,7 +1046,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT docker-distribution-api-version: - registry/2.0 link: @@ -815,7 +1071,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=repo9cb4121e&n=2&orderby= response: @@ -836,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -865,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: @@ -877,7 +1133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT server: - openresty strict-transport-security: @@ -885,7 +1141,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.233333' + - '166.266667' status: code: 200 message: OK @@ -899,7 +1155,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=repo9cb4121e&n=2&orderby= response: @@ -918,7 +1174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT docker-distribution-api-version: - registry/2.0 link: @@ -943,7 +1199,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=repob0a917be&n=2&orderby= response: @@ -964,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT docker-distribution-api-version: - registry/2.0 server: @@ -993,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: @@ -1005,7 +1261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:05 GMT + - Wed, 28 Apr 2021 22:03:46 GMT server: - openresty strict-transport-security: @@ -1013,7 +1269,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.216667' + - '166.25' status: code: 200 message: OK @@ -1027,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=repob0a917be&n=2&orderby= response: body: - string: '{"repositories": ["repob22512e7", "repoc28d1326"]}' + string: '{"repositories": ["repob22512e7", "repoc1b5131a"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1046,11 +1302,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:06 GMT + - Wed, 28 Apr 2021 22:03:47 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1071,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, @@ -1092,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:06 GMT + - Wed, 28 Apr 2021 22:03:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1121,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: @@ -1133,7 +1389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:06 GMT + - Wed, 28 Apr 2021 22:03:47 GMT server: - openresty strict-transport-security: @@ -1141,7 +1397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.2' + - '166.233333' status: code: 200 message: OK @@ -1155,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", "repos6ce51658"]}' + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1170,15 +1426,15 @@ interactions: connection: - keep-alive content-length: - - '50' + - '49' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:06 GMT + - Wed, 28 Apr 2021 22:03:47 GMT docker-distribution-api-version: - registry/2.0 link: - - ; rel="next" + - ; rel="next" server: - openresty strict-transport-security: @@ -1199,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=repos6ce51658&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, @@ -1220,7 +1476,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:07 GMT + - Wed, 28 Apr 2021 22:03:47 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1249,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: @@ -1261,7 +1517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:07 GMT + - Wed, 28 Apr 2021 22:03:48 GMT server: - openresty strict-transport-security: @@ -1269,7 +1525,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '165.183333' + - '166.216667' status: code: 200 message: OK @@ -1283,9 +1539,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=repos6ce51658&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"repositories": ["repo34ab0fa1", "repo3c82158b"]}' @@ -1298,11 +1554,11 @@ interactions: connection: - keep-alive content-length: - - '22' + - '49' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 15:50:07 GMT + - Wed, 28 Apr 2021 22:03:48 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 f8c741eb8407..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: - - Fri, 07 May 2021 22:08:13 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: - - Fri, 07 May 2021 22:08:15 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.616667' + - '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: - - Fri, 07 May 2021 22:08:15 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.6' + - '166.133333' 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/_catalog response: @@ -140,8 +140,7 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +150,11 @@ interactions: connection: - keep-alive content-length: - - '425' + - '354' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:15 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 20d396f3c105..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: - - Fri, 07 May 2021 22:08:15 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: - - Fri, 07 May 2021 22:08:17 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.583333' + - '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.0b2 Python/3.9.0rc1 (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: - - Fri, 07 May 2021 22:08:17 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.566667' + - '166.616667' 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/_catalog?n=2 response: @@ -150,7 +150,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:17 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: - - Fri, 07 May 2021 22:08:17 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: - - Fri, 07 May 2021 22:08:17 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.55' + - '166.6' status: code: 200 message: OK @@ -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: - - Fri, 07 May 2021 22:08:18 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: - - Fri, 07 May 2021 22:08:18 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: - - Fri, 07 May 2021 22:08:18 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.533333' + - '166.583333' status: code: 200 message: OK @@ -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: - - Fri, 07 May 2021 22:08:18 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: - - Fri, 07 May 2021 22:08:19 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: - - Fri, 07 May 2021 22:08:19 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.516667' + - '166.566667' status: code: 200 message: OK @@ -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: - - Fri, 07 May 2021 22:08:19 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: - - Fri, 07 May 2021 22:08:19 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: - - Fri, 07 May 2021 22:08:19 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.5' + - '166.55' status: code: 200 message: OK @@ -643,7 +643,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: @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:19 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -687,7 +687,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=repo3c82158b&n=2&orderby= response: @@ -708,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:19 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: - - Fri, 07 May 2021 22:08:20 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.483333' + - '166.533333' status: code: 200 message: OK @@ -771,7 +771,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=repo3c82158b&n=2&orderby= response: @@ -790,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:20 GMT + - Wed, 28 Apr 2021 21:16:08 GMT docker-distribution-api-version: - registry/2.0 link: @@ -815,7 +815,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=repo3e8d15a3&n=2&orderby= response: @@ -836,7 +836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:20 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: - - Fri, 07 May 2021 22:08:20 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.466667' + - '166.516667' status: code: 200 message: OK @@ -899,7 +899,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=repo3e8d15a3&n=2&orderby= response: @@ -918,7 +918,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:21 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -943,7 +943,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=repo8b5a11da&n=2&orderby= response: @@ -964,7 +964,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:21 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: - - Fri, 07 May 2021 22:08:21 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.45' + - '166.5' status: code: 200 message: OK @@ -1027,7 +1027,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=repo8b5a11da&n=2&orderby= response: @@ -1046,7 +1046,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:22 GMT + - Wed, 28 Apr 2021 21:16:09 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1071,7 +1071,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=repo9cb4121e&n=2&orderby= response: @@ -1092,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:22 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: - - Fri, 07 May 2021 22:08:22 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.433333' + - '166.483333' status: code: 200 message: OK @@ -1155,7 +1155,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=repo9cb4121e&n=2&orderby= response: @@ -1174,7 +1174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:22 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1199,7 +1199,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=repob0a917be&n=2&orderby= response: @@ -1220,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:22 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: - - Fri, 07 May 2021 22:08:22 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.416667' + - '166.466667' status: code: 200 message: OK @@ -1283,7 +1283,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=repob0a917be&n=2&orderby= response: @@ -1302,7 +1302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:22 GMT + - Wed, 28 Apr 2021 21:16:10 GMT docker-distribution-api-version: - registry/2.0 link: @@ -1327,7 +1327,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=repoc1b5131a&n=2&orderby= response: @@ -1348,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:23 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: - - Fri, 07 May 2021 22:08:23 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.4' + - '166.45' status: code: 200 message: OK @@ -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=repoc1b5131a&n=2&orderby= response: body: - string: '{"repositories": ["repoc28d1326", "repod2be1c42"]}' + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1430,139 +1430,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:23 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=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: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '196' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 07 May 2021 22:08:23 GMT - docker-distribution-api-version: - - registry/2.0 - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - - max-age=31536000; includeSubDomains - www-authenticate: - - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=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: - - Fri, 07 May 2021 22:08:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repod2be1c42&n=2&orderby= - response: - body: - string: '{"repositories": ["repoeb7113db", "repos6ce51658"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '50' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 07 May 2021 22:08:24 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: @@ -1583,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=repos6ce51658&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, @@ -1604,7 +1476,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:24 GMT + - Wed, 28 Apr 2021 21:16:11 GMT docker-distribution-api-version: - registry/2.0 server: @@ -1633,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: @@ -1645,7 +1517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:24 GMT + - Wed, 28 Apr 2021 21:16:11 GMT server: - openresty strict-transport-security: @@ -1653,7 +1525,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' + - '166.433333' status: code: 200 message: OK @@ -1667,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=repos6ce51658&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: - string: '{"repositories": ["reposetb7cc1bf8", "reposetmani160e197b"]}' + string: '{"repositories": null}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -1682,11 +1554,11 @@ interactions: connection: - keep-alive content-length: - - '59' + - '22' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:24 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 0cefc6ed033c..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: - - Fri, 07 May 2021 22:08:25 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: - - Fri, 07 May 2021 22:08:26 GMT + - Wed, 28 Apr 2021 22:03:50 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: - - Fri, 07 May 2021 22:08:26 GMT + - Wed, 28 Apr 2021 22:03:50 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 response: @@ -140,8 +140,8 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -151,11 +151,11 @@ interactions: connection: - keep-alive content-length: - - '425' + - '384' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:27 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: - - Fri, 07 May 2021 22:08:27 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: - - Fri, 07 May 2021 22:08:27 GMT + - Wed, 28 Apr 2021 22:03:50 GMT server: - openresty strict-transport-security: @@ -262,7 +262,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: @@ -271,8 +271,8 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -282,11 +282,11 @@ interactions: connection: - keep-alive content-length: - - '425' + - '384' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:08:27 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 b1d13a2bce44..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: Fri, 07 May 2021 22:08:42 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,11 +46,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:44 GMT + date: Wed, 28 Apr 2021 22:04:06 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 @@ -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: Fri, 07 May 2021 22:08:44 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.6' + 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: Fri, 07 May 2021 22:08:46 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: Fri, 07 May 2021 22:08:46 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: Fri, 07 May 2021 22:08:46 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.583333' + x-ms-ratelimit-remaining-calls-per-second: '166.6' status: code: 200 message: OK @@ -183,7 +183,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: @@ -192,14 +192,14 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "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: Fri, 07 May 2021 22:08:47 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 14465f89a119..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: Fri, 07 May 2021 22:08:48 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: Fri, 07 May 2021 22:08:48 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.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: Fri, 07 May 2021 22:08:49 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.5' + 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: Fri, 07 May 2021 22:08:49 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_repositories.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repositories.yaml index 0253d8fb57a2..1ea930227c6b 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 @@ -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: Thu, 06 May 2021 15:50:31 GMT + date: Wed, 28 Apr 2021 22:04:11 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: Thu, 06 May 2021 15:50:32 GMT + date: Wed, 28 Apr 2021 22:04:12 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 @@ -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: Thu, 06 May 2021 15:50:33 GMT + date: Wed, 28 Apr 2021 22:04:12 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.533333' status: code: 200 message: OK @@ -89,21 +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", "repo28471541", - "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3db51597", - "repo3e8d15a3", "repo84e316ff", "repo9b321760", "repo9cb4121e", "repoaf9517b2", - "repob0a917be", "repob22512e7", "repoc28d1326", "repod2be1c42", "repos6ce51658"]}' + 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"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '295' + content-length: '384' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:33 GMT + date: Wed, 28 Apr 2021 22:04: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_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 163935a1dd00..f4b100e5bdc9 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 @@ -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: Thu, 06 May 2021 15:50:33 GMT + date: Wed, 28 Apr 2021 22:04: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: Thu, 06 May 2021 15:50:34 GMT + date: Wed, 28 Apr 2021 22:04:14 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.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: Thu, 06 May 2021 15:50:34 GMT + date: Wed, 28 Apr 2021 22:04:14 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: 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: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:14 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: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:14 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: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:14 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 @@ -173,9 +173,93 @@ 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: + 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 22:04: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=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 22:04: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=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 22:04:15 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '166.6' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-containerregistry/1.0.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"]}' @@ -184,7 +268,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:15 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -193,14 +277,14 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= + 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.0b2 Python/3.9.0rc1 (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: @@ -213,7 +297,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -233,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: @@ -242,11 +326,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:15 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.583333' status: code: 200 message: OK @@ -257,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: @@ -268,7 +352,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:35 GMT + date: Wed, 28 Apr 2021 22:04:15 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -284,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: @@ -297,7 +381,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:15 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -317,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: @@ -326,11 +410,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:15 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.566667' status: code: 200 message: OK @@ -341,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: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:16 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 @@ -368,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, @@ -381,7 +465,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -390,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 @@ -401,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: @@ -410,11 +494,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:16 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.55' status: code: 200 message: OK @@ -425,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: Thu, 06 May 2021 15:50:36 GMT + date: Wed, 28 Apr 2021 22:04:16 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, @@ -465,7 +549,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:16 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -474,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 @@ -485,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: @@ -494,11 +578,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:16 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.533333' status: code: 200 message: OK @@ -509,9 +593,93 @@ 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": ["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 22:04: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=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 22:04: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=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 22:04:17 GMT + server: openresty + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + x-ms-ratelimit-remaining-calls-per-second: '166.516667' + status: + code: 200 + message: OK + url: https://fake_url.azurecr.io/oauth2/token +- request: + body: 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"]}' @@ -520,7 +688,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -529,14 +697,14 @@ interactions: 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=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=repo9cb4121e&n=2&orderby= response: @@ -549,7 +717,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -569,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: @@ -578,11 +746,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 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.5' status: code: 200 message: OK @@ -593,7 +761,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=repo9cb4121e&n=2&orderby= response: @@ -604,7 +772,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -620,7 +788,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=repob0a917be&n=2&orderby= response: @@ -633,7 +801,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -653,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: @@ -662,11 +830,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:37 GMT + date: Wed, 28 Apr 2021 22:04:17 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.483333' status: code: 200 message: OK @@ -677,20 +845,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=repob0a917be&n=2&orderby= response: body: - string: '{"repositories": ["repob22512e7", "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: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 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 @@ -704,9 +872,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=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, @@ -717,7 +885,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -726,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 @@ -737,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: @@ -746,11 +914,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 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.466667' status: code: 200 message: OK @@ -761,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", "repos6ce51658"]}' + string: '{"repositories": ["repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '50' + content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 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=repos6ce51658&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, @@ -801,7 +969,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -810,7 +978,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repos6ce51658&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= - request: body: grant_type: refresh_token @@ -821,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: @@ -830,11 +998,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 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 @@ -845,18 +1013,18 @@ 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=repos6ce51658&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: string: '{"repositories": ["repo3db51597", "repo3e8d15a3"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '22' + content-length: '49' content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:50:38 GMT + date: Wed, 28 Apr 2021 22:04:18 GMT docker-distribution-api-version: registry/2.0 server: openresty strict-transport-security: max-age=31536000; includeSubDomains @@ -864,5 +1032,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repos6ce51658&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_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml index 064a8392af12..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 @@ -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: Fri, 07 May 2021 22:08:49 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 @@ -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: Fri, 07 May 2021 22:08:50 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.583333' + 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.0b2 Python/3.9.0rc1 (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: Fri, 07 May 2021 22:08:51 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.333333' + 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/_catalog response: @@ -98,14 +98,13 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808"]}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '425' + content-length: '354' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:51 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 7d7ac049544a..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: Fri, 07 May 2021 22:08:52 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: Fri, 07 May 2021 22:08:53 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.65' + 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: Fri, 07 May 2021 22:08:53 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.633333' + 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: Fri, 07 May 2021 22:08:53 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: Fri, 07 May 2021 22:08:53 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: Fri, 07 May 2021 22:08:53 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.616667' + 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: Fri, 07 May 2021 22:08:54 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: Fri, 07 May 2021 22:08:54 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: Fri, 07 May 2021 22:08:54 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.6' + 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: Fri, 07 May 2021 22:08:54 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: Fri, 07 May 2021 22:08:54 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: Fri, 07 May 2021 22:08:54 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.583333' + 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: Fri, 07 May 2021 22:08:54 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: Fri, 07 May 2021 22:08:55 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: Fri, 07 May 2021 22:08:55 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.566667' + x-ms-ratelimit-remaining-calls-per-second: '165.75' status: code: 200 message: OK @@ -425,7 +425,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: @@ -436,7 +436,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:55 GMT + date: Wed, 28 Apr 2021 21:16:40 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -452,7 +452,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=repo3c82158b&n=2&orderby= response: @@ -465,7 +465,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:55 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 @@ -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: Fri, 07 May 2021 22:08:55 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.55' + x-ms-ratelimit-remaining-calls-per-second: '165.733333' status: code: 200 message: OK @@ -509,7 +509,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=repo3c82158b&n=2&orderby= response: @@ -520,7 +520,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:55 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -536,7 +536,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=repo3e8d15a3&n=2&orderby= response: @@ -549,7 +549,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:55 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 @@ -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: Fri, 07 May 2021 22:08:55 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.533333' + x-ms-ratelimit-remaining-calls-per-second: '165.716667' status: code: 200 message: OK @@ -593,7 +593,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=repo3e8d15a3&n=2&orderby= response: @@ -604,7 +604,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -620,7 +620,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=repo8b5a11da&n=2&orderby= response: @@ -633,7 +633,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 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 @@ -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: Fri, 07 May 2021 22:08:56 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.516667' + x-ms-ratelimit-remaining-calls-per-second: '165.7' status: code: 200 message: OK @@ -677,7 +677,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=repo8b5a11da&n=2&orderby= response: @@ -688,7 +688,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 GMT + date: Wed, 28 Apr 2021 21:16:41 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -704,7 +704,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=repo9cb4121e&n=2&orderby= response: @@ -717,7 +717,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 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 @@ -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: Fri, 07 May 2021 22:08:56 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 @@ -761,7 +761,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=repo9cb4121e&n=2&orderby= response: @@ -772,7 +772,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -788,7 +788,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=repob0a917be&n=2&orderby= response: @@ -801,7 +801,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:56 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 @@ -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: Fri, 07 May 2021 22:08:57 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 @@ -845,7 +845,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=repob0a917be&n=2&orderby= response: @@ -856,7 +856,7 @@ interactions: connection: keep-alive content-length: '49' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:57 GMT + date: Wed, 28 Apr 2021 21:16:42 GMT docker-distribution-api-version: registry/2.0 link: ; rel="next" server: openresty @@ -872,7 +872,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=repoc1b5131a&n=2&orderby= response: @@ -885,7 +885,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:57 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 @@ -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: Fri, 07 May 2021 22:08:57 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 @@ -929,20 +929,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=repoc1b5131a&n=2&orderby= response: body: - string: '{"repositories": ["repoc28d1326", "repod2be1c42"]}' + 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: Fri, 07 May 2021 22:08:57 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 @@ -956,93 +956,9 @@ interactions: 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=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: Fri, 07 May 2021 22:08: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/_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.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: Fri, 07 May 2021 22:08:57 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.0b2 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": ["repoeb7113db", "repos6ce51658"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '50' - content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:58 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=repod2be1c42&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=repos6ce51658&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, @@ -1053,7 +969,7 @@ interactions: connection: keep-alive content-length: '196' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:58 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 @@ -1062,7 +978,7 @@ interactions: status: code: 401 message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repos6ce51658&n=2&orderby= + url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= - request: body: grant_type: refresh_token @@ -1073,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: @@ -1082,11 +998,11 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:58 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.433333' + x-ms-ratelimit-remaining-calls-per-second: '165.633333' status: code: 200 message: OK @@ -1097,18 +1013,18 @@ 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=repos6ce51658&n=2&orderby= + uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc7611808&n=2&orderby= response: body: - string: '{"repositories": ["reposetb7cc1bf8", "reposetmani160e197b"]}' + string: '{"repositories": null}' headers: access-control-expose-headers: X-Ms-Correlation-Request-Id connection: keep-alive - content-length: '59' + content-length: '22' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:08:58 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 @@ -1116,5 +1032,5 @@ interactions: status: code: 200 message: OK - url: https://fake_url.azurecr.io/acr/v1/_catalog?last=repos6ce51658&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 e7f3141e9a50..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: Fri, 07 May 2021 22:08:59 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: Fri, 07 May 2021 22:09:00 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.566667' + 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: Fri, 07 May 2021 22:09:00 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.55' + x-ms-ratelimit-remaining-calls-per-second: '166.283333' 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 response: @@ -98,14 +98,14 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "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: Fri, 07 May 2021 22:09:00 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: Fri, 07 May 2021 22:09:00 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: Fri, 07 May 2021 22:09:00 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.533333' + x-ms-ratelimit-remaining-calls-per-second: '166.266667' status: code: 200 message: OK @@ -177,7 +177,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: @@ -186,14 +186,14 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "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: Fri, 07 May 2021 22:09:00 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 c98ef981331e..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: - - Fri, 07 May 2021 22:09:16 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: - - Fri, 07 May 2021 22:09:19 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.533333' + - '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: - - Fri, 07 May 2021 22:09:19 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.516667' + - '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/_catalog response: @@ -140,8 +140,8 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b", "to_be_deleted"]}' + "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: - - '441' + - '400' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:09:19 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: - - Fri, 07 May 2021 22:09:20 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: - - Fri, 07 May 2021 22:09:24 GMT + - Wed, 28 Apr 2021 22:04:59 GMT server: - openresty strict-transport-security: @@ -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: - - Fri, 07 May 2021 22:09:24 GMT + - Wed, 28 Apr 2021 22:04:59 GMT server: - openresty strict-transport-security: @@ -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: - - Fri, 07 May 2021 22:09:27 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: - - Fri, 07 May 2021 22:09:27 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: - - Fri, 07 May 2021 22:09:28 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: - - '166.5' + - '166.616667' status: code: 200 message: OK @@ -442,7 +442,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: @@ -451,8 +451,8 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "repob22512e7", "repoc1b5131a", "repoc28d1326", "repoc7611808", "repod2be1c42", + "repoeb7113db"]}' headers: access-control-expose-headers: - Docker-Content-Digest @@ -462,11 +462,11 @@ interactions: connection: - keep-alive content-length: - - '425' + - '384' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:09:28 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 3719e3a998d3..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: - - Fri, 07 May 2021 22:09:28 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: - - Fri, 07 May 2021 22:09:31 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.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: - - Fri, 07 May 2021 22:09:32 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.633333' + - '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: - - Fri, 07 May 2021 22:09:32 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 1a46e68eba10..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: - - Fri, 07 May 2021 22:21:17 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: - - Fri, 07 May 2021 22:21:18 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.65' + - '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: - - Fri, 07 May 2021 22:21:19 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.633333' + - '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: - - Fri, 07 May 2021 22:21:19 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_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_ascending.yaml index 87fc5bf24569..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: - - Thu, 06 May 2021 15:51:13 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: - - Thu, 06 May 2021 15:51:15 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.65' + - '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: - - Thu, 06 May 2021 15:51:15 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: - - '166.633333' + - '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: - - Thu, 06 May 2021 15:51:16 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_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository.test_list_manifests_descending.yaml index d0e8b43680fb..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: @@ -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: @@ -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: @@ -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 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 ed04650c1edf..36a8142622a1 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 @@ -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: - - Fri, 07 May 2021 22:09:36 GMT + - Wed, 28 Apr 2021 22:05: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.0b2 Python/3.9.0rc1 (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: - - Fri, 07 May 2021 22:09:38 GMT + - Wed, 28 Apr 2021 22:05:39 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' + - '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: - - Fri, 07 May 2021 22:09:38 GMT + - Wed, 28 Apr 2021 22:05: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.25' 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: - - Fri, 07 May 2021 22:09:39 GMT + - Wed, 28 Apr 2021 22:05:40 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 e1e783a139bb..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 @@ -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: - - Fri, 07 May 2021 22:21:53 GMT + - Wed, 28 Apr 2021 17:58:25 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: - - Fri, 07 May 2021 22:21:55 GMT + - Wed, 28 Apr 2021 17:58:27 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: - - Fri, 07 May 2021 22:21:55 GMT + - Wed, 28 Apr 2021 17:58:27 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/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: - - Fri, 07 May 2021 22:21:57 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 2ecbe2c04e76..0d679fe6fdc9 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 @@ -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: - - Fri, 07 May 2021 22:09:39 GMT + - Wed, 28 Apr 2021 22:05: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: - - Fri, 07 May 2021 22:09:41 GMT + - Wed, 28 Apr 2021 22:05:44 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' + - '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: - - Fri, 07 May 2021 22:09:41 GMT + - Wed, 28 Apr 2021 22:05:44 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.6' + - '166.266667' status: code: 200 message: OK @@ -131,580 +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?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: - - Fri, 07 May 2021 22:09: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.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: - - Fri, 07 May 2021 22:09: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=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: - - Fri, 07 May 2021 22:09:41 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%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: - - Fri, 07 May 2021 22:09: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: - - Fri, 07 May 2021 22:09: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: - - Fri, 07 May 2021 22:09:42 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%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: - - Fri, 07 May 2021 22:09: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%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: - - Fri, 07 May 2021 22:09: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: - - Fri, 07 May 2021 22:09:42 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.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: - - Fri, 07 May 2021 22:09: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%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: - - Fri, 07 May 2021 22:09: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: - - Fri, 07 May 2021 22:09:43 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.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: '{"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: - - Fri, 07 May 2021 22:09:43 GMT + - Wed, 28 Apr 2021 22:05:44 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: - - Fri, 07 May 2021 22:09:43 GMT + - Wed, 28 Apr 2021 22:05:44 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: - - Fri, 07 May 2021 22:09:43 GMT + - Wed, 28 Apr 2021 22:05:45 GMT server: - openresty strict-transport-security: @@ -817,7 +257,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' + - '166.25' 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: - - Fri, 07 May 2021 22:09: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%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: - - Fri, 07 May 2021 22:09:44 GMT - docker-distribution-api-version: - - registry/2.0 - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - - max-age=31536000; includeSubDomains - www-authenticate: - - Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=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: - - Fri, 07 May 2021 22:09:44 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.5' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/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: - - Fri, 07 May 2021 22:09:44 GMT + - Wed, 28 Apr 2021 22:05:45 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: - - Fri, 07 May 2021 22:09:44 GMT + - Wed, 28 Apr 2021 22:05:45 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: - - Fri, 07 May 2021 22:09:44 GMT + - Wed, 28 Apr 2021 22:05:45 GMT server: - openresty strict-transport-security: @@ -1095,7 +397,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' + - '166.233333' 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: - - Fri, 07 May 2021 22:09:44 GMT + - Wed, 28 Apr 2021 22:05:45 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: - - Fri, 07 May 2021 22:09:44 GMT + - Wed, 28 Apr 2021 22:05:45 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: - - Fri, 07 May 2021 22:09:45 GMT + - Wed, 28 Apr 2021 22:05:45 GMT server: - openresty strict-transport-security: @@ -1235,7 +536,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' + - '166.216667' 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: - - Fri, 07 May 2021 22:09:45 GMT + - Wed, 28 Apr 2021 22:05:46 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: - - Fri, 07 May 2021 22:09:45 GMT + - Wed, 28 Apr 2021 22:05:46 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: - - Fri, 07 May 2021 22:09:45 GMT + - Wed, 28 Apr 2021 22:05:46 GMT server: - openresty strict-transport-security: @@ -1375,7 +676,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.45' + - '166.2' 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: - - Fri, 07 May 2021 22:09:45 GMT + - Wed, 28 Apr 2021 22:05:46 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 2e6de2785adb..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 @@ -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: - - Fri, 07 May 2021 22:22:10 GMT + - Wed, 28 Apr 2021 17:58: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.0b2 Python/3.9.0rc1 (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: - - Fri, 07 May 2021 22:22:13 GMT + - Wed, 28 Apr 2021 17:58:35 GMT server: - openresty strict-transport-security: @@ -79,7 +79,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.65' + - '165.866667' 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: - - Fri, 07 May 2021 22:22:13 GMT + - Wed, 28 Apr 2021 17:58:35 GMT server: - openresty strict-transport-security: @@ -117,7 +117,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' + - '165.833333' 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: - - Fri, 07 May 2021 22:22:14 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 51276b83692f..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: - - Fri, 07 May 2021 22:19:29 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: - - Fri, 07 May 2021 22:19:33 GMT + - Mon, 03 May 2021 16:06:46 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: - - Fri, 07 May 2021 22:19:33 GMT + - Mon, 03 May 2021 16:06:46 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/repob22512e7 response: @@ -154,7 +154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:19:33 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: - - Fri, 07 May 2021 22:19:34 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: - - Fri, 07 May 2021 22:19:34 GMT + - Mon, 03 May 2021 16:06:47 GMT server: - openresty strict-transport-security: @@ -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: - - Fri, 07 May 2021 22:19:34 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: - - Fri, 07 May 2021 22:19:35 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: - - Fri, 07 May 2021 22:19:35 GMT + - Mon, 03 May 2021 16:06:47 GMT server: - openresty strict-transport-security: @@ -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: - - Fri, 07 May 2021 22:19:35 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 952ea2bcab81..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: Fri, 07 May 2021 22:10:18 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: Fri, 07 May 2021 22:10:19 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: Fri, 07 May 2021 22:10:19 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,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 response: @@ -98,14 +98,14 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b", "to_be_deleted"]}' + "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: Fri, 07 May 2021 22:10:19 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: Fri, 07 May 2021 22:10:20 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: Fri, 07 May 2021 22:10:22 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.65' + 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: Fri, 07 May 2021 22:10:22 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.633333' + 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: Fri, 07 May 2021 22:10:24 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: Fri, 07 May 2021 22:10:24 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: Fri, 07 May 2021 22:10:24 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,7 +298,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: @@ -307,14 +307,14 @@ interactions: "repo27331535", "repo28471541", "repo2c591564", "repo2e8319c5", "repo308e19dd", "repo34ab0fa1", "repo3c82158b", "repo3db51597", "repo3e8d15a3", "repo84e316ff", "repo8b5a11da", "repo9b321760", "repo9cb4121e", "repoaf9517b2", "repob0a917be", - "repob22512e7", "repoc1b5131a", "repoc28d1326", "repod2be1c42", "repoeb7113db", - "repos6ce51658", "reposetb7cc1bf8", "reposetmani160e197b"]}' + "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: Fri, 07 May 2021 22:10:25 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 c3c1a9774125..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: Fri, 07 May 2021 22:10:25 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: Fri, 07 May 2021 22:10:26 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.65' + 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: Fri, 07 May 2021 22:10:26 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.633333' + 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: Fri, 07 May 2021 22:10:26 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 3d905a607c64..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: Fri, 07 May 2021 22:18:16 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: Fri, 07 May 2021 22:18:17 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.65' + 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: Fri, 07 May 2021 22:18:18 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.633333' + 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: Fri, 07 May 2021 22:18:18 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 0394f471e5cc..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: Thu, 06 May 2021 15:52:11 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,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Thu, 06 May 2021 15:52:12 GMT + date: Wed, 28 Apr 2021 22:07:41 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: Thu, 06 May 2021 15:52:12 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.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: Thu, 06 May 2021 15:52:14 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 ace350cf2cb3..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: Thu, 06 May 2021 15:52:15 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: Thu, 06 May 2021 15:52:16 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.183333' + 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: Thu, 06 May 2021 15:52:16 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: '165.8' + 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: Thu, 06 May 2021 15:52:16 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_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_manifests_descending.yaml index 6c142058a683..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: Thu, 06 May 2021 15:52:23 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: Thu, 06 May 2021 15:52:25 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.6' + 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: Thu, 06 May 2021 15:52:25 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.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: Thu, 06 May 2021 15:52:26 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_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts.yaml index 4a95759d9c80..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 @@ -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: Fri, 07 May 2021 22:10:27 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 @@ -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: Fri, 07 May 2021 22:10:28 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.55' + 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: Fri, 07 May 2021 22:10:28 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: '165.7' 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: Fri, 07 May 2021 22:10:29 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 d6ee90b4b65a..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 @@ -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: Fri, 07 May 2021 22:10:29 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 @@ -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: Fri, 07 May 2021 22:10:31 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.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: Fri, 07 May 2021 22:10:31 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.466667' + 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/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: Fri, 07 May 2021 22:10:31 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 201c2c29375a..7d43ed371c25 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 @@ -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: Fri, 07 May 2021 22:10:32 GMT + date: Wed, 28 Apr 2021 22:07: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,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:10:33 GMT + date: Wed, 28 Apr 2021 22:07:45 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: Fri, 07 May 2021 22:10:33 GMT + date: Wed, 28 Apr 2021 22:07:45 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.45' 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: Fri, 07 May 2021 22:10:33 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://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: Fri, 07 May 2021 22:10: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/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: Fri, 07 May 2021 22:10:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/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: Fri, 07 May 2021 22:10:34 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: Fri, 07 May 2021 22:10: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/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: Fri, 07 May 2021 22:10:34 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/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: Fri, 07 May 2021 22:10:34 GMT + date: Wed, 28 Apr 2021 22:07:45 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: Fri, 07 May 2021 22:10:34 GMT + date: Wed, 28 Apr 2021 22:07:45 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: Fri, 07 May 2021 22:10:34 GMT + date: Wed, 28 Apr 2021 22:07:45 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.433333' 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: Fri, 07 May 2021 22:10:35 GMT + date: Wed, 28 Apr 2021 22:07:46 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: Fri, 07 May 2021 22:10:35 GMT + date: Wed, 28 Apr 2021 22:07:46 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: Fri, 07 May 2021 22:10:35 GMT + date: Wed, 28 Apr 2021 22:07:46 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.416667' 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: Fri, 07 May 2021 22:10:35 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: Fri, 07 May 2021 22:10: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/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: Fri, 07 May 2021 22:10:36 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.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: Fri, 07 May 2021 22:10:36 GMT + date: Wed, 28 Apr 2021 22:07:46 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: Fri, 07 May 2021 22:10:36 GMT + date: Wed, 28 Apr 2021 22:07:46 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: Fri, 07 May 2021 22:10:36 GMT + date: Wed, 28 Apr 2021 22:07:46 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.4' 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: Fri, 07 May 2021 22:10:36 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: Fri, 07 May 2021 22:10: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/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: Fri, 07 May 2021 22:10:37 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.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: Fri, 07 May 2021 22:10:37 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: Fri, 07 May 2021 22:10:37 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: Fri, 07 May 2021 22:10:37 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.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: Fri, 07 May 2021 22:10:37 GMT + date: Wed, 28 Apr 2021 22:07:46 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: Fri, 07 May 2021 22:10:37 GMT + date: Wed, 28 Apr 2021 22:07:47 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: Fri, 07 May 2021 22:10:37 GMT + date: Wed, 28 Apr 2021 22:07:47 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.383333' 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: Fri, 07 May 2021 22:10:38 GMT + date: Wed, 28 Apr 2021 22:07:47 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_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_repository_async.test_list_registry_artifacts_descending.yaml index 51b7cb7dd955..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 @@ -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: Fri, 07 May 2021 22: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 @@ -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: Fri, 07 May 2021 22: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.616667' + x-ms-ratelimit-remaining-calls-per-second: '165.1' 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: Fri, 07 May 2021 22: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.566667' + x-ms-ratelimit-remaining-calls-per-second: '164.616667' 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: Fri, 07 May 2021 22: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 70b421b3e1ba..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: Fri, 07 May 2021 22:18:03 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,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:18:04 GMT + date: Mon, 03 May 2021 16:09:09 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,7 +74,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:18:05 GMT + date: Mon, 03 May 2021 16:09:09 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/repo2c591564 response: @@ -104,7 +104,7 @@ interactions: connection: keep-alive content-length: '315' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:18:05 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: Fri, 07 May 2021 22:18:06 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,7 +166,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:18:06 GMT + date: Mon, 03 May 2021 16:09:09 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -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: Fri, 07 May 2021 22:18:06 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: Fri, 07 May 2021 22:18:06 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,7 +263,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:18:06 GMT + date: Mon, 03 May 2021 16:09:10 GMT server: openresty strict-transport-security: max-age=31536000; includeSubDomains transfer-encoding: chunked @@ -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: Fri, 07 May 2021 22:18:06 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_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_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 f301b1aab4d2..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: - - Fri, 07 May 2021 22:11:13 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: - - Fri, 07 May 2021 22:11:15 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.65' + - '166.633333' status: code: 200 message: OK @@ -109,7 +109,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:11:15 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.633333' + - '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-07T22:02:10.6880301Z", "lastUpdateTime": - "2021-05-07T22:02:10.6880301Z", "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-07T22:02:10.5968075Z", "lastUpdateTime": - "2021-05-07T22:02:10.5968075Z", "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-07T22:02:11.0986473Z", "lastUpdateTime": - "2021-05-07T22:02:11.0986473Z", "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-07T22:02:10.8031678Z", "lastUpdateTime": - "2021-05-07T22:02:10.8031678Z", "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-07T22:02:11.0022795Z", "lastUpdateTime": - "2021-05-07T22:02:11.0022795Z", "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-07T22:02:11.1449521Z", "lastUpdateTime": - "2021-05-07T22:02:11.1449521Z", "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-07T22:02:11.1845391Z", "lastUpdateTime": - "2021-05-07T22:02:11.1845391Z", "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-07T22:02:10.6394668Z", "lastUpdateTime": - "2021-05-07T22:02:10.6394668Z", "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-07T22:02:11.0497266Z", "lastUpdateTime": - "2021-05-07T22:02:11.0497266Z", "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-07T22:02:10.2784294Z", "lastUpdateTime": - "2021-05-07T22:02:10.2784294Z", "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: - - Fri, 07 May 2021 22:11:16 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: - - Fri, 07 May 2021 22:11:16 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: - - Fri, 07 May 2021 22:11:16 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.616667' + - '165.466667' status: code: 200 message: OK @@ -340,7 +378,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:11:17 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: - - Fri, 07 May 2021 22:11:28 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: - - Fri, 07 May 2021 22:11:28 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: - - '166.6' + - '165.45' status: code: 200 message: OK @@ -468,7 +506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:11:28 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 ffc0fff83aef..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: - - Fri, 07 May 2021 22:11:29 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: - - Fri, 07 May 2021 22:11:30 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.65' + - '166.116667' status: code: 200 message: OK @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:11:30 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.633333' + - '166.066667' status: code: 200 message: OK @@ -155,7 +155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:11:31 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 0524d9179d80..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: - - Fri, 07 May 2021 22:11:46 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: - - Fri, 07 May 2021 22:11:48 GMT + - Mon, 03 May 2021 16:11:11 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: - - Fri, 07 May 2021 22:11:48 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.566667' + - '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: - - Fri, 07 May 2021 22:11:49 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: - - Fri, 07 May 2021 22:11:49 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: - - Fri, 07 May 2021 22:11:49 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: - - '166.55' + - '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: - - Fri, 07 May 2021 22:11:49 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 612c93b58aba..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: - - Fri, 07 May 2021 22:11:50 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: - - Fri, 07 May 2021 22:11:51 GMT + - Mon, 03 May 2021 16:11:52 GMT server: - openresty strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' + - '165.883333' 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: - - Fri, 07 May 2021 22:11:52 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: - - '166.566667' + - '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: - - Fri, 07 May 2021 22:11:52 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 12f0a3c6f53d..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: - - Fri, 07 May 2021 22:12:08 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: - - Fri, 07 May 2021 22:12:10 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.65' + - '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: - - Fri, 07 May 2021 22:12:10 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.633333' + - '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: - - Fri, 07 May 2021 22:12:10 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: - - Fri, 07 May 2021 22:12:10 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: - - Fri, 07 May 2021 22:12:11 GMT + - Wed, 28 Apr 2021 21:19:45 GMT server: - openresty strict-transport-security: @@ -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/7/2021 10:02:49 + 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: - - '818' + - '812' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:12:11 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 97ef1f334069..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: - - Fri, 07 May 2021 22:12:11 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 f62dbb288a40..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: - - Fri, 07 May 2021 22:12:27 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: - - Fri, 07 May 2021 22:12:29 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.65' + - '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: - - Fri, 07 May 2021 22:12:29 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.633333' + - '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: - - Fri, 07 May 2021 22:12:30 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: - - Fri, 07 May 2021 22:12:30 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: - - Fri, 07 May 2021 22:12:30 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.616667' + - '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: - - Fri, 07 May 2021 22:12:30 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 983c893e0a2b..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: - - Fri, 07 May 2021 22:12:31 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: - - Fri, 07 May 2021 22:12:32 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: - - '166.65' + - '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: - - Fri, 07 May 2021 22:12:32 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: - - '166.633333' + - '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: - - Fri, 07 May 2021 22:12:33 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 6a13717a8146..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: - - Fri, 07 May 2021 22:12:48 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: - - Fri, 07 May 2021 22:12:50 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: - - '166.65' + - '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: - - Fri, 07 May 2021 22:12:50 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: - - '166.633333' + - '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: - - Fri, 07 May 2021 22:12:50 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: - - Fri, 07 May 2021 22:12:51 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: - - Fri, 07 May 2021 22:12:51 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: - - '166.616667' + - '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: - - Fri, 07 May 2021 22:12:51 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 f3da22dd0e5b..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: - - Fri, 07 May 2021 22:13:11 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: - - Fri, 07 May 2021 22:13:12 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.65' + - '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: - - Fri, 07 May 2021 22:13:12 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.633333' + - '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: - - Fri, 07 May 2021 22:13:13 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: - - Fri, 07 May 2021 22:13:13 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: - - Fri, 07 May 2021 22:13:13 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.616667' + - '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/7/2021 10:03:40 + 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: @@ -331,11 +369,11 @@ interactions: connection: - keep-alive content-length: - - '816' + - '815' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:13:13 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: - - Fri, 07 May 2021 22:13:13 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: - - Fri, 07 May 2021 22:13:14 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.6' + - '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/7/2021 10:03:40 + 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: @@ -476,11 +514,11 @@ interactions: connection: - keep-alive content-length: - - '820' + - '819' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:13:14 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: - - Fri, 07 May 2021 22:13:14 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: - - Fri, 07 May 2021 22:13:14 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.583333' + - '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/7/2021 10:03:40 + 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: @@ -621,11 +659,11 @@ interactions: connection: - keep-alive content-length: - - '816' + - '815' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 22:13:15 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 731bb213cd30..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: - - Fri, 07 May 2021 22:13:30 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: - - Fri, 07 May 2021 22:13:31 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.65' + - '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: - - Fri, 07 May 2021 22:13:32 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.633333' + - '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: - - Fri, 07 May 2021 22:13:32 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: - - Fri, 07 May 2021 22:13:32 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: - - Fri, 07 May 2021 22:13:32 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.616667' + - '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: - - Fri, 07 May 2021 22:13:32 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: - - Fri, 07 May 2021 22:13:33 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: - - Fri, 07 May 2021 22:13:33 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.6' + - '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: - - Fri, 07 May 2021 22:13:33 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: - - Fri, 07 May 2021 22:13:33 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: - - Fri, 07 May 2021 22:13:33 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.583333' + - '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: - - Fri, 07 May 2021 22:13:34 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 c1e43ea36897..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: Fri, 07 May 2021 22:13:50 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: Fri, 07 May 2021 22:13:51 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.333333' + 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: Fri, 07 May 2021 22:13:51 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.316667' + 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-07T22:13:40.6958852Z", "lastUpdateTime": - "2021-05-07T22:13:40.6958852Z", "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-07T22:13:40.8258062Z", "lastUpdateTime": - "2021-05-07T22:13:40.8258062Z", "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-07T22:13:40.9806391Z", "lastUpdateTime": - "2021-05-07T22:13:40.9806391Z", "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-07T22:13:40.4295402Z", "lastUpdateTime": - "2021-05-07T22:13:40.4295402Z", "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-07T22:13:40.3954857Z", "lastUpdateTime": - "2021-05-07T22:13:40.3954857Z", "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-07T22:13:40.3291312Z", "lastUpdateTime": - "2021-05-07T22:13:40.3291312Z", "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-07T22:13:41.5368534Z", "lastUpdateTime": - "2021-05-07T22:13:41.5368534Z", "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-07T22:13:40.5711732Z", "lastUpdateTime": - "2021-05-07T22:13:40.5711732Z", "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-07T22:13:40.9274938Z", "lastUpdateTime": - "2021-05-07T22:13:40.9274938Z", "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-07T22:13:39.7286374Z", "lastUpdateTime": - "2021-05-07T22:13:39.7286374Z", "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: Fri, 07 May 2021 22:13:52 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: Fri, 07 May 2021 22:13:52 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: Fri, 07 May 2021 22:13:53 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.3' + 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: Fri, 07 May 2021 22:13:54 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: Fri, 07 May 2021 22:14:04 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: Fri, 07 May 2021 22:14:04 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.2' + 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: Fri, 07 May 2021 22:14:04 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 ade5f3be591f..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: Fri, 07 May 2021 22:14:05 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,7 +46,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:14:06 GMT + date: Mon, 03 May 2021 20:11:38 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,7 +74,7 @@ interactions: headers: connection: keep-alive content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:14:07 GMT + date: Mon, 03 May 2021 20:11:38 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: 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: Fri, 07 May 2021 22:14:07 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 280e15c91751..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: Fri, 07 May 2021 22:14:22 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: Fri, 07 May 2021 22:14:23 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: '165.366667' + 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: Fri, 07 May 2021 22:14:23 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: '165.333333' + 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: Fri, 07 May 2021 22:14:23 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: Fri, 07 May 2021 22:14:24 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: Fri, 07 May 2021 22:14:24 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: '165.283333' + 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: Fri, 07 May 2021 22:14:24 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 8fd5fbf77d83..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: Fri, 07 May 2021 22:14:25 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: Fri, 07 May 2021 22:14:26 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.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: Fri, 07 May 2021 22:14:26 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: '165.166667' + 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: Fri, 07 May 2021 22:14:27 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 624b203b3f81..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: Fri, 07 May 2021 22:14:42 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: Fri, 07 May 2021 22:14:43 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: '165.266667' + 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: Fri, 07 May 2021 22:14:43 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: '165.25' + 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: Fri, 07 May 2021 22:14:44 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: Fri, 07 May 2021 22:14:44 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: Fri, 07 May 2021 22:14:44 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: '165.233333' + 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,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/7/2021 10:05:01 + 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: @@ -242,7 +269,7 @@ interactions: connection: keep-alive content-length: '818' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:14:44 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 88c179ee1afe..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: Fri, 07 May 2021 22:14:45 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 f28f6b01b36d..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: Fri, 07 May 2021 22:15:00 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: Fri, 07 May 2021 22:15:01 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 @@ -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: Fri, 07 May 2021 22:15:02 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 @@ -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: Fri, 07 May 2021 22:15:03 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: Fri, 07 May 2021 22:15:03 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: Fri, 07 May 2021 22:15:03 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: '166.616667' + 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: Fri, 07 May 2021 22:15:03 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 83b977e412b8..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: Fri, 07 May 2021 22:15:04 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: Fri, 07 May 2021 22:15:06 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.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: Fri, 07 May 2021 22:15:06 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.55' + 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: Fri, 07 May 2021 22:15:07 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 90e230fd881f..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: Fri, 07 May 2021 22:15:22 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: Fri, 07 May 2021 22:15:26 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.65' + 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: Fri, 07 May 2021 22:15:27 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.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: Fri, 07 May 2021 22:15:27 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: Fri, 07 May 2021 22:15:27 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: Fri, 07 May 2021 22:15:27 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.616667' + 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: Fri, 07 May 2021 22:15:27 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 40327a039aee..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: Fri, 07 May 2021 22:15:43 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: Fri, 07 May 2021 22:15:45 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.233333' + 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: Fri, 07 May 2021 22:15:46 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.216667' + 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: Fri, 07 May 2021 22:15:46 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: Fri, 07 May 2021 22:15:46 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: Fri, 07 May 2021 22:15:47 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.2' + 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,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/7/2021 10:05:58 + 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: '817' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:15:47 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: Fri, 07 May 2021 22:15:47 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: Fri, 07 May 2021 22:15:48 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.183333' + 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,15 +363,15 @@ 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/7/2021 10:05:58 + 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: '821' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:15:48 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: Fri, 07 May 2021 22:15:48 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: Fri, 07 May 2021 22:15:48 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.166667' + 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,15 +465,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/7/2021 10:05:58 + 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: '817' content-type: application/json; charset=utf-8 - date: Fri, 07 May 2021 22:15:49 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 73d2a23ab402..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: Fri, 07 May 2021 22:16:06 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: Fri, 07 May 2021 22:16:07 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.15' + 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: Fri, 07 May 2021 22:16:08 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: '166.133333' + 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: Fri, 07 May 2021 22:16:08 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: Fri, 07 May 2021 22:16:08 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: Fri, 07 May 2021 22:16:08 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.116667' + 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: Fri, 07 May 2021 22:16:08 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: Fri, 07 May 2021 22:16:09 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: Fri, 07 May 2021 22:16:09 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.1' + 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: Fri, 07 May 2021 22:16:09 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: Fri, 07 May 2021 22:16:09 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: Fri, 07 May 2021 22:16:09 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.083333' + 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: Fri, 07 May 2021 22:16:09 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 From ff9fa17acea861cabe6307e59ac39806e1ae44d3 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:20:22 -0400 Subject: [PATCH 19/25] undoing changes to two generated files --- .../azure/containerregistry/_generated/models/__init__.py | 4 ++-- .../_generated/models/_container_registry_enums.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 1c067e9ec395..32c235c4c0d9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -85,7 +85,7 @@ ArtifactArchitecture, ArtifactOperatingSystem, Enum2, - ManifestOrder, + ManifestOrderBy, TagOrderBy, ) @@ -130,6 +130,6 @@ 'ArtifactArchitecture', 'ArtifactOperatingSystem', 'Enum2', - 'ManifestOrder', + 'ManifestOrderBy', 'TagOrderBy', ] 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 ef793de9b321..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 @@ -64,7 +64,7 @@ class Enum2(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): REFRESH_TOKEN = "refresh_token" PASSWORD = "password" -class ManifestOrder(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ManifestOrderBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Sort options for ordering manifests in a collection. """ From cc2396fff62d98a51e986128453510c88c711c2c Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Sun, 9 May 2021 15:23:13 -0400 Subject: [PATCH 20/25] removing early return --- sdk/containerregistry/azure-containerregistry/tests/testcase.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 0792eb6b134d..c3132a83d94e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -312,7 +312,6 @@ def import_image(repository, tags): @pytest.fixture(scope="session") def load_registry(): - return repos = [ "library/hello-world", "library/alpine", From cf8d784cb9e8a7d419dc1ccb5b1d60ce051c888b Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Mon, 10 May 2021 17:52:35 -0400 Subject: [PATCH 21/25] fixing based on laurents feedback --- .../azure/containerregistry/_models.py | 70 +++++-------------- 1 file changed, 18 insertions(+), 52 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 2c8afc3ad65d..e7ba21c81bb2 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -82,10 +82,10 @@ class ArtifactManifestProperties(object): :ivar architecture: CPU Architecture of an artifact :vartype architecture: :class:`azure.containerregistry.ArtifactArchitecture` :ivar created_on: Time and date an artifact was created - :vartype created_on: :class:`~datetime.datetime` + :vartype created_on: datetime.datetime :ivar str digest: Digest for the artifact :ivar last_updated_on: Time and date an artifact was last updated - :vartype last_updated_on: :class:`~datetime.datetime` + :vartype last_updated_on: datetime.datetime :ivar operating_system: Operating system for the artifact :vartype operating_system: :class:`azure.containerregistry.ArtifactOperatingSystem` :ivar str repository_name: Repository name the artifact belongs to @@ -96,11 +96,11 @@ class ArtifactManifestProperties(object): """ def __init__(self, **kwargs): - self.architecture = _map_architecture(kwargs.get("cpu_architecture", None)) + self.architecture = kwargs.get("cpu_architecture", 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.operating_system = _map_operating_system(kwargs.get("operating_system", None)) + self.operating_system = kwargs.get("operating_system", None) self.repository_name = kwargs.get("repository_name", None) self.size = kwargs.get("size", None) self.tags = kwargs.get("tags", None) @@ -108,6 +108,16 @@ def __init__(self, **kwargs): if self.writeable_properties: self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) + for data in ArtifactArchitecture: + if data.value == self.architecture: + self.architecture = data + break + + for data in ArtifactOperatingSystem: + if data.value == self.operating_system: + self.operating_system = data + break + @classmethod def _from_generated(cls, generated, **kwargs): # type: (ManifestAttributesBase, Dict[str, Any]) -> ArtifactManifestProperties @@ -130,9 +140,9 @@ class RepositoryProperties(object): :ivar writeable_properties: Read/Write/List/Delete permissions for the repository :vartype writeable_properties: :class:`~azure.containerregistry.ContentProperties` :ivar created_on: Time the repository was created - :vartype created_on: :class:`datetime.datetime` + :vartype created_on: datetime.datetime :ivar last_updated_on: Time the repository was last updated - :vartype last_updated_on: :class:`datetime.datetime` + :vartype last_updated_on: datetime.datetime :ivar int manifest_count: Number of manifest in the repository :ivar str name: Name of the repository :ivar int tag_count: Number of tags associated with the repository @@ -203,10 +213,10 @@ class ArtifactTagProperties(object): :ivar writeable_properties: Read/Write/List/Delete permissions for the tag :vartype writeable_properties: :class:`~azure.containerregistry.ContentProperties` :ivar created_on: Time the tag was created - :vartype created_on: :class:`datetime.datetime` + :vartype created_on: 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` + :vartype last_updated_on: datetime.datetime :ivar str name: Name of the image the tag corresponds to :ivar str repository: Repository the tag belongs to """ @@ -234,50 +244,6 @@ def _from_generated(cls, generated, **kwargs): ) -def _map_architecture(arch): - # type: (str) -> ArtifactArchitecture - if arch is None: - return None - m = { - "amd64": ArtifactArchitecture.AMD64, - "arm": ArtifactArchitecture.ARM, - "arm64": ArtifactArchitecture.ARM64, - "386": ArtifactArchitecture.I386, - "mips": ArtifactArchitecture.MIPS, - "mips64": ArtifactArchitecture.MIPS64, - "mips64le": ArtifactArchitecture.MIPS64LE, - "mipsle": ArtifactArchitecture.MIPSLE, - "ppc64": ArtifactArchitecture.PPC64, - "ppc64le": ArtifactArchitecture.PPC64LE, - "riscv64": ArtifactArchitecture.RISCV64, - "s390x": ArtifactArchitecture.S390X, - "wasm": ArtifactArchitecture.WASM, - } - return m[arch] - - -def _map_operating_system(os): - # type: (str) -> ArtifactOperatingSystem - if os is None: - return None - m = { - "aix": ArtifactOperatingSystem.AIX, - "android": ArtifactOperatingSystem.ANDROID, - "darwin": ArtifactOperatingSystem.DARWIN, - "dragonfly": ArtifactOperatingSystem.DRAGONFLY, - "freebsd": ArtifactOperatingSystem.FREEBSD, - "illumos": ArtifactOperatingSystem.ILLUMOS, - "ios": ArtifactOperatingSystem.IOS, - "js": ArtifactOperatingSystem.JS, - "linux": ArtifactOperatingSystem.LINUX, - "netbsd": ArtifactOperatingSystem.NETBSD, - "openbsd": ArtifactOperatingSystem.OPENBSD, - "plan9": ArtifactOperatingSystem.PLAN9, - "solaris": ArtifactOperatingSystem.SOLARIS, - "windows": ArtifactOperatingSystem.WINDOWS, - } - return m[os] - class ArtifactArchitecture(str, Enum): AMD64 = "amd64" From ec45042bf53e9a3cc82c995a2bfc495ae4c67440 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Mon, 10 May 2021 17:58:58 -0400 Subject: [PATCH 22/25] fixing vartype docs --- .../azure/containerregistry/_models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index e7ba21c81bb2..1ce1b90f864e 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -80,19 +80,19 @@ class ArtifactManifestProperties(object): """Represents properties of a registry artifact :ivar architecture: CPU Architecture of an artifact - :vartype architecture: :class:`azure.containerregistry.ArtifactArchitecture` + :vartype architecture: ~azure.containerregistry.ArtifactArchitecture :ivar created_on: Time and date an artifact was created :vartype created_on: datetime.datetime :ivar str digest: Digest for the artifact :ivar last_updated_on: Time and date an artifact was last updated :vartype last_updated_on: datetime.datetime :ivar operating_system: Operating system for the artifact - :vartype operating_system: :class:`azure.containerregistry.ArtifactOperatingSystem` + :vartype writeable_properties: ~azure.containerregistry.ArtifactOperatingSystem :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 writeable_properties: Permissions for an artifact - :vartype writeable_properties: :class:`~azure.containerregistry.ContentProperties` + :vartype writeable_properties: ~azure.containerregistry.ContentProperties """ def __init__(self, **kwargs): @@ -138,7 +138,7 @@ class RepositoryProperties(object): """Model for storing properties of a single repository :ivar writeable_properties: Read/Write/List/Delete permissions for the repository - :vartype writeable_properties: :class:`~azure.containerregistry.ContentProperties` + :vartype writeable_properties: ~azure.containerregistry.ContentProperties :ivar created_on: Time the repository was created :vartype created_on: datetime.datetime :ivar last_updated_on: Time the repository was last updated @@ -211,7 +211,7 @@ class ArtifactTagProperties(object): """Model for storing properties of a single tag :ivar writeable_properties: Read/Write/List/Delete permissions for the tag - :vartype writeable_properties: :class:`~azure.containerregistry.ContentProperties` + :vartype writeable_properties: ~azure.containerregistry.ContentProperties :ivar created_on: Time the tag was created :vartype created_on: datetime.datetime :ivar str digest: Digest for the tag From 5899334ee71cfa9c55d50805cb5e28f9843078ae Mon Sep 17 00:00:00 2001 From: Sean Kane <68240067+seankane-msft@users.noreply.github.com> Date: Tue, 11 May 2021 08:08:15 -0400 Subject: [PATCH 23/25] Update sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py Co-authored-by: Krista Pratico --- .../azure-containerregistry/azure/containerregistry/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 1ce1b90f864e..6be3deb4d6fa 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -87,7 +87,7 @@ class ArtifactManifestProperties(object): :ivar last_updated_on: Time and date an artifact was last updated :vartype last_updated_on: datetime.datetime :ivar operating_system: Operating system for the artifact - :vartype writeable_properties: ~azure.containerregistry.ArtifactOperatingSystem + :vartype operating_system: ~azure.containerregistry.ArtifactOperatingSystem :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 From 27888978d19b00252d0382fc73dbae2c0060e2fb Mon Sep 17 00:00:00 2001 From: Sean Kane <68240067+seankane-msft@users.noreply.github.com> Date: Tue, 11 May 2021 08:08:22 -0400 Subject: [PATCH 24/25] Update sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py Co-authored-by: Krista Pratico --- .../azure-containerregistry/azure/containerregistry/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 6be3deb4d6fa..4aaf349931b3 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -82,7 +82,7 @@ class ArtifactManifestProperties(object): :ivar architecture: CPU Architecture of an artifact :vartype architecture: ~azure.containerregistry.ArtifactArchitecture :ivar created_on: Time and date an artifact was created - :vartype created_on: datetime.datetime + :vartype created_on: ~datetime.datetime :ivar str digest: Digest for the artifact :ivar last_updated_on: Time and date an artifact was last updated :vartype last_updated_on: datetime.datetime From a186814a00d558b9eacc47fee50ba5a80bd46239 Mon Sep 17 00:00:00 2001 From: seankane-msft Date: Tue, 11 May 2021 08:17:35 -0400 Subject: [PATCH 25/25] kristas comments --- .../azure/containerregistry/_models.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 4aaf349931b3..f0907c3018d7 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -97,10 +97,14 @@ class ArtifactManifestProperties(object): def __init__(self, **kwargs): self.architecture = kwargs.get("cpu_architecture", None) + if self.architecture is not None: + self.architecture = ArtifactArchitecture(self.architecture) 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.operating_system = kwargs.get("operating_system", None) + if self.operating_system is not None: + self.operating_system = ArtifactOperatingSystem(self.operating_system) self.repository_name = kwargs.get("repository_name", None) self.size = kwargs.get("size", None) self.tags = kwargs.get("tags", None) @@ -108,16 +112,6 @@ def __init__(self, **kwargs): if self.writeable_properties: self.writeable_properties = ContentProperties._from_generated(self.writeable_properties) - for data in ArtifactArchitecture: - if data.value == self.architecture: - self.architecture = data - break - - for data in ArtifactOperatingSystem: - if data.value == self.operating_system: - self.operating_system = data - break - @classmethod def _from_generated(cls, generated, **kwargs): # type: (ManifestAttributesBase, Dict[str, Any]) -> ArtifactManifestProperties