-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52258ca
commit d040674
Showing
12 changed files
with
122 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
.../tests/recordings/test_container_registry_client.test_incorrect_authentication_scope.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
method: GET | ||
uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world | ||
response: | ||
body: | ||
string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, | ||
visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": | ||
"repository", "Name": "library/hello-world", "Action": "metadata_read"}]}]}' | ||
headers: | ||
access-control-expose-headers: | ||
- Docker-Content-Digest | ||
- WWW-Authenticate | ||
- Link | ||
- X-Ms-Correlation-Request-Id | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '222' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 04 Jun 2021 14:58:10 GMT | ||
docker-distribution-api-version: | ||
- registry/2.0 | ||
server: | ||
- openresty | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
- max-age=31536000; includeSubDomains | ||
www-authenticate: | ||
- Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" | ||
x-content-type-options: | ||
- nosniff | ||
status: | ||
code: 401 | ||
message: Unauthorized | ||
version: 1 |
31 changes: 31 additions & 0 deletions
31
.../recordings/test_container_registry_client_async.test_incorrect_authentication_scope.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
method: GET | ||
uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world | ||
response: | ||
body: | ||
string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, | ||
visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": | ||
"repository", "Name": "library/hello-world", "Action": "metadata_read"}]}]}' | ||
headers: | ||
access-control-expose-headers: X-Ms-Correlation-Request-Id | ||
connection: keep-alive | ||
content-length: '222' | ||
content-type: application/json; charset=utf-8 | ||
date: Fri, 04 Jun 2021 14:58:11 GMT | ||
docker-distribution-api-version: registry/2.0 | ||
server: openresty | ||
strict-transport-security: max-age=31536000; includeSubDomains | ||
www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" | ||
x-content-type-options: nosniff | ||
status: | ||
code: 401 | ||
message: Unauthorized | ||
url: https://seankane.azurecr.io/acr/v1/library%2Fhello-world | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters