From d77be5c764ad39571dc024c07d805b54d6f0cdd5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 29 Jul 2019 20:36:08 -0700 Subject: [PATCH 1/4] Generated from 12e10c0d5164313643bdeec849ce0c888312ac76 (#6542) Revert "set a default api version (#6588)" This reverts commit 2200abdf279149ec722a78151005286bf65d223f. --- .../_container_registry_management_client.py | 5 ++++- .../azure/mgmt/containerregistry/models.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py index 271d166eb78e..b73c8228f1d8 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py @@ -46,11 +46,14 @@ class ContainerRegistryManagementClient(MultiApiClientMixin, SDKClient): :type profile: azure.profiles.KnownProfiles """ - DEFAULT_API_VERSION = '2017-10-01' + DEFAULT_API_VERSION = '2019-05-01' _PROFILE_TAG = "azure.mgmt.containerregistry.ContainerRegistryManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, + 'build_steps': '2018-02-01-preview', + 'build_tasks': '2018-02-01-preview', + 'builds': '2018-02-01-preview', }}, _PROFILE_TAG + " latest" ) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/models.py index d7da260454de..0bccf9821e10 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/models.py @@ -4,4 +4,5 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2017_10_01.models import * +from .v2018_02_01_preview.models import * +from .v2019_05_01.models import * From b7e7ab6f11c61b25ab535579fde4eb391eea39f9 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Fri, 2 Aug 2019 00:04:29 +0000 Subject: [PATCH 2/4] next version rc5 --- .../azure-mgmt-containerregistry/HISTORY.rst | 7 +++++++ .../azure/mgmt/containerregistry/version.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/HISTORY.rst b/sdk/containerregistry/azure-mgmt-containerregistry/HISTORY.rst index 2e4bb7f24b90..90f7e16d1eb0 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/HISTORY.rst +++ b/sdk/containerregistry/azure-mgmt-containerregistry/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +3.0.4rc5 (2019-08-02) ++++++++++++++++++++++ + +**Bugfixes** + +- Reverting API version back to 2019-05-01 + 3.0.0rc4 (2019-07-10) +++++++++++++++++++++ diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py index fc43877054a5..936dbeb88fea 100755 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "3.0.0rc4" +VERSION = "3.0.0rc5" From 1341af253e4fd72ba6cab7fd77b896ed3025355d Mon Sep 17 00:00:00 2001 From: zikalino Date: Tue, 6 Aug 2019 18:43:17 +0800 Subject: [PATCH 3/4] disable tests --- .../tests/test_mgmt_containerregistry.py | 4 ++-- .../tests/test_mgmt_containerregistry_2017_03_01.py | 2 +- .../tests/test_mgmt_containerregistry_2018_02_01_preview.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry.py b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry.py index acb9a6e42d73..d2eca06489b1 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry.py @@ -54,7 +54,7 @@ def setUp(self): @ResourceGroupPreparer(location=DEFAULT_LOCATION) @StorageAccountPreparer(name_prefix='pyacr', location=DEFAULT_LOCATION, playback_fake_resource=FAKE_STORAGE) - def test_classic_registry(self, resource_group, location, storage_account): + def _disabled_test_classic_registry(self, resource_group, location, storage_account): registry_name = self.get_resource_name('pyacr') name_status = self.client.registries.check_name_availability(registry_name) @@ -216,7 +216,7 @@ def test_webhook(self, resource_group, location): @ResourceGroupPreparer(location=DEFAULT_LOCATION) - def test_replication(self, resource_group, location): + def _disabled_test_replication(self, resource_group, location): registry_name = self.get_resource_name('pyacr') replication_name = DEFAULT_REPLICATION_LOCATION diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2017_03_01.py b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2017_03_01.py index 57551acfcc82..7f276b4ac744 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2017_03_01.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2017_03_01.py @@ -48,7 +48,7 @@ def setUp(self): @ResourceGroupPreparer(location=DEFAULT_LOCATION) @StorageAccountPreparer(name_prefix='pyacr', location=DEFAULT_LOCATION, playback_fake_resource=FAKE_STORAGE) - def test_basic_registry(self, resource_group, location, storage_account, storage_account_key): + def _disabled_test_basic_registry(self, resource_group, location, storage_account, storage_account_key): registry_name = self.get_resource_name('pyacr') name_status = self.client.registries.check_name_availability(registry_name) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py index fc307fdf429c..52978845426d 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/test_mgmt_containerregistry_2018_02_01_preview.py @@ -305,7 +305,7 @@ def _create_build_step(self, build_step_name, build_task_name, registry_name, re @ResourceGroupPreparer(location=DEFAULT_LOCATION) - def test_build_task(self, resource_group, location): + def _disabled_test_build_task(self, resource_group, location): registry_name = self.get_resource_name('pyacr') build_task_name = self.get_resource_name('pyacr') @@ -384,7 +384,7 @@ def test_build_task(self, resource_group, location): @ResourceGroupPreparer(location=DEFAULT_LOCATION) - def test_build_step(self, resource_group, location): + def _disabled_test_build_step(self, resource_group, location): registry_name = self.get_resource_name('pyacr') build_task_name = self.get_resource_name('pyacr') build_step_name = self.get_resource_name('pyacr') From eb76231b018c5565a3d82f680056fd46cecd450c Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 6 Aug 2019 10:48:09 +0000 Subject: [PATCH 4/4] updated test recordings --- ...ntainerregistry.test_classic_registry.yaml | 297 +++---- ...ntainerregistry.test_managed_registry.yaml | 585 +++++++++----- ...mt_containerregistry.test_replication.yaml | 404 ++++------ ...t_mgmt_containerregistry.test_webhook.yaml | 582 +++++++++----- ...gistry_2017_03_01.test_basic_registry.yaml | 301 +++----- ...egistry_2018_02_01_preview.test_build.yaml | 555 ++++++++----- ...ry_2018_02_01_preview.test_build_step.yaml | 384 +++------ ...ry_2018_02_01_preview.test_build_task.yaml | 325 +++----- ...8_02_01_preview.test_managed_registry.yaml | 572 +++++++++----- ...y_2018_02_01_preview.test_replication.yaml | 731 ++++++++++-------- ...istry_2018_02_01_preview.test_webhook.yaml | 574 +++++++++----- 11 files changed, 2780 insertions(+), 2530 deletions(-) diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_classic_registry.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_classic_registry.yaml index 940ae0342997..c587a95c0ecc 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_classic_registry.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_classic_registry.yaml @@ -2,222 +2,99 @@ interactions: - request: body: '{"name": "pyacrff1e1477", "type": "Microsoft.ContainerRegistry/registries"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['75'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2019-05-01 response: - body: {string: '{"nameAvailable":true}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36: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} + body: + string: '{"nameAvailable":true}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:22: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: 'b''b\''b\\\''b\\\\\\\''{"location": "westcentralus", "sku": {"name": "Classic"}, "properties": {"adminUserEnabled": false, "storageAccount": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.Storage/storageAccounts/pyacrff1e1477"}}}\\\\\\\''\\\''\''''' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['312'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '312' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Classic","tier":"Classic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477","name":"pyacrff1e1477","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrff1e1477.azurecr.io","creationDate":"2018-09-11T16:36:32.7491697Z","provisioningState":"Succeeded","adminUserEnabled":false,"storageAccount":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.Storage/storageAccounts/pyacrff1e1477"},"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['762'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries?api-version=2017-10-01 - response: - body: {string: '{"value":[{"sku":{"name":"Classic","tier":"Classic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477","name":"pyacrff1e1477","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrff1e1477.azurecr.io","creationDate":"2018-09-11T16:36:32.7491697Z","provisioningState":"Succeeded","adminUserEnabled":false,"storageAccount":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.Storage/storageAccounts/pyacrff1e1477"},"firewallRulesEnabled":false,"firewallRules":[]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['774'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"tags": {"key": "value"}, "properties": {"adminUserEnabled": true}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['68'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Classic","tier":"Classic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477","name":"pyacrff1e1477","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrff1e1477.azurecr.io","creationDate":"2018-09-11T16:36:32.7491697Z","provisioningState":"Succeeded","adminUserEnabled":true,"storageAccount":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.Storage/storageAccounts/pyacrff1e1477"},"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['774'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Classic","tier":"Classic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477","name":"pyacrff1e1477","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrff1e1477.azurecr.io","creationDate":"2018-09-11T16:36:32.7491697Z","provisioningState":"Succeeded","adminUserEnabled":true,"storageAccount":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.Storage/storageAccounts/pyacrff1e1477"},"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['774'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:36 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: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477/listCredentials?api-version=2017-10-01 - response: - body: {string: '{"username":"pyacrff1e1477","passwords":[{"name":"password","value":"260=0Xgx0kOj7UzaMFqvsM6IqwPjS7sO"},{"name":"password2","value":"rWjicosWU8QUmjMSeEQRR=G8nT0Wjd51"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"name": "password"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477/regenerateCredential?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477?api-version=2019-05-01 response: - body: {string: '{"username":"pyacrff1e1477","passwords":[{"name":"password","value":"bmT7IFanYxGqqCl8sPJ107FnLhg2G6s+"},{"name":"password2","value":"rWjicosWU8QUmjMSeEQRR=G8nT0Wjd51"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_classic_registryff1e1477/providers/Microsoft.ContainerRegistry/registries/pyacrff1e1477?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:36:39 GMT'] - expires: ['-1'] - 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-deletes: ['14999'] - status: {code: 200, message: OK} + body: + string: '{"error":{"code":"ClassicSkuDeprecated","message":"Classic SKU is now + deprecated. Please select a managed SKU."},"status":"Failed"}' + headers: + cache-control: + - no-cache + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:22:26 GMT + expires: + - '-1' + 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: 400 + message: Bad Request version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_managed_registry.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_managed_registry.yaml index 69ec33c15418..48a5e1d25911 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_managed_registry.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_managed_registry.yaml @@ -2,248 +2,431 @@ interactions: - request: body: '{"name": "pyacrfe331462", "type": "Microsoft.ContainerRegistry/registries"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['75'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2019-05-01 response: - body: {string: '{"nameAvailable":true}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36: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} + body: + string: '{"nameAvailable":true}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44: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: '{"location": "westcentralus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['100'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '100' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2019-05-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2018-09-11T16:36:48.0738284Z","provisioningState":"Succeeded","adminUserEnabled":false,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['553'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2019-08-06T10:44:19.1257408Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}' + headers: + cache-control: + - no-cache + content-length: + - '600' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries?api-version=2019-05-01 response: - body: {string: '{"value":[{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2018-09-11T16:36:48.0738284Z","provisioningState":"Succeeded","adminUserEnabled":false,"firewallRulesEnabled":false,"firewallRules":[]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:49 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} + body: + string: '{"value":[{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2019-08-06T10:44:19.1257408Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:23 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: '{"tags": {"key": "value"}, "properties": {"adminUserEnabled": true}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['68'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2019-05-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2018-09-11T16:36:48.0738284Z","provisioningState":"Succeeded","adminUserEnabled":true,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2019-08-06T10:44:19.1257408Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}' + headers: + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2019-05-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2018-09-11T16:36:48.0738284Z","provisioningState":"Succeeded","adminUserEnabled":true,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['565'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36: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} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462","name":"pyacrfe331462","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacrfe331462.azurecr.io","creationDate":"2019-08-06T10:44:19.1257408Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}' + headers: + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/listCredentials?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/listCredentials?api-version=2019-05-01 response: - body: {string: '{"username":"pyacrfe331462","passwords":[{"name":"password","value":"3WMODMj0sSD0azNxg01U8Fo02/MYAMSK"},{"name":"password2","value":"zJLdrI8YdaD+hus5DExiJN1AWtWBqmt4"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"username":"pyacrfe331462","passwords":[{"name":"password","value":"Ulr4w3=lG62iBYv3i4pP2vnmgnuPAcHl"},{"name":"password2","value":"maktV2=uHbZk7mn8oUjvCbGnwyIRGSjK"}]}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: '{"name": "password"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/regenerateCredential?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/regenerateCredential?api-version=2019-05-01 response: - body: {string: '{"username":"pyacrfe331462","passwords":[{"name":"password","value":"f7xq0ZLz4eTaxQaMkk/SuEqSqq642xm4"},{"name":"password2","value":"zJLdrI8YdaD+hus5DExiJN1AWtWBqmt4"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"username":"pyacrfe331462","passwords":[{"name":"password","value":"=g0q6vn=4woFLt9qXzH/Fqz47SP/pWW3"},{"name":"password2","value":"maktV2=uHbZk7mn8oUjvCbGnwyIRGSjK"}]}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/listUsages?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462/listUsages?api-version=2019-05-01 response: - body: {string: '{"value":[{"name":"Size","limit":536870912000,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":100,"currentValue":0,"unit":"Count"}]}'} - headers: - cache-control: [no-cache] - content-length: ['144'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:36:52 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} + body: + string: '{"value":[{"name":"Size","limit":536870912000,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":100,"currentValue":0,"unit":"Count"}]}' + headers: + cache-control: + - no-cache + content-length: + - '144' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_managed_registryfe331462/providers/Microsoft.ContainerRegistry/registries/pyacrfe331462?api-version=2019-05-01 response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:36:54 GMT'] - expires: ['-1'] - 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-deletes: ['14999'] - status: {code: 200, message: OK} + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:44:31 GMT + expires: + - '-1' + 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-deletes: + - '14999' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_replication.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_replication.yaml index 6f2999bfdc51..f4a022e3d572 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_replication.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_replication.yaml @@ -3,288 +3,148 @@ interactions: body: '{"location": "westcentralus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['100'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '100' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257?api-version=2019-05-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257","name":"pyacr9dee1257","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr9dee1257.azurecr.io","creationDate":"2018-09-11T16:37:00.5393939Z","provisioningState":"Succeeded","adminUserEnabled":false,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['548'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257","name":"pyacr9dee1257","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr9dee1257.azurecr.io","creationDate":"2019-08-06T10:23:03.4379265Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:23:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: '{"location": "southcentralus"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['30'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2017-10-01 - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Creating","status":{"timestamp":"2018-09-11T16:37:05.00876Z"}}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus/operationStatuses/replications-e9779cb8-b5e0-11e8-94a3-1831bf6ae40e?api-version=2017-10-01'] - cache-control: [no-cache] - content-length: ['440'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:04 GMT'] - expires: ['-1'] - 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: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus/operationStatuses/replications-e9779cb8-b5e0-11e8-94a3-1831bf6ae40e?api-version=2017-10-01 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus/operationStatuses/replications-e9779cb8-b5e0-11e8-94a3-1831bf6ae40e?api-version=2017-10-01'] - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2017-10-01 - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Syncing","timestamp":"2018-09-11T16:37:14.2871247Z"}}}'} - headers: - cache-control: [no-cache] - content-length: ['469'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications?api-version=2017-10-01 - response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Syncing","timestamp":"2018-09-11T16:37:14.2871247Z"}}},{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/westcentralus","name":"westcentralus","location":"westcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-09-11T16:37:08.4629315Z"}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['946'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37: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: '{"tags": {"key": "value"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['26'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2019-05-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-09-11T16:37:18.3061495Z"}}}'} - headers: - cache-control: [no-cache] - content-length: ['480'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2019-08-02T00:55:11.0470389Z"}}}' + headers: + cache-control: + - no-cache + content-length: + - '467' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:23:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications?api-version=2019-05-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-09-11T16:37:18.3061495Z"}}}'} - headers: - cache-control: [no-cache] - content-length: ['480'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257/replications/southcentralus?api-version=2017-10-01 - response: - body: {string: 'null'} - headers: - cache-control: [no-cache] - content-length: ['4'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:20 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-f4357a38-b5e0-11e8-975f-1831bf6ae40e?api-version=2017-10-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-deletes: ['14999'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-f4357a38-b5e0-11e8-975f-1831bf6ae40e?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:37:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [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: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257?api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_replication9dee1257/providers/Microsoft.ContainerRegistry/registries/pyacr9dee1257","name":"pyacr9dee1257","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr9dee1257.azurecr.io","creationDate":"2018-09-11T16:37:00.5393939Z","provisioningState":"Deleting","adminUserEnabled":false,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['547'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:36 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/westcentralus/operationResults/registries-fb67c9b4-b5e0-11e8-944b-1831bf6ae40e?api-version=2017-10-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-deletes: ['14999'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/westcentralus/operationResults/registries-fb67c9b4-b5e0-11e8-944b-1831bf6ae40e?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:37:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:23:09 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 version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_webhook.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_webhook.yaml index 060f533e637c..1d659f12cdc3 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_webhook.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry.test_webhook.yaml @@ -3,248 +3,430 @@ interactions: body: '{"location": "westcentralus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['100'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '100' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac?api-version=2019-05-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr572410ac.azurecr.io","creationDate":"2018-09-11T16:37:53.6028643Z","provisioningState":"Succeeded","adminUserEnabled":false,"firewallRulesEnabled":false,"firewallRules":[]}}'} - headers: - cache-control: [no-cache] - content-length: ['544'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr572410ac.azurecr.io","creationDate":"2019-08-06T10:44:40.2843322Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]},"policies":{}}}' + headers: + cache-control: + - no-cache + content-length: + - '591' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK - request: body: '{"location": "westcentralus", "properties": {"serviceUri": "http://www.microsoft.com", "actions": ["push"]}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['108'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2019-05-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['423'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks?api-version=2019-05-01 response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['435'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:56 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} + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"tags": {"key": "value"}, "properties": {"customHeaders": {"key": "value"}, "scope": "hello-world"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['101'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2019-05-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['447'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '447' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2019-05-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['447'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac","name":"pyacr572410ac","location":"westcentralus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '447' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac/getCallbackConfig?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac/getCallbackConfig?api-version=2019-05-01 response: - body: {string: '{"serviceUri":"http://www.microsoft.com","customHeaders":{"key":"value"}}'} - headers: - cache-control: [no-cache] - content-length: ['73'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"serviceUri":"http://www.microsoft.com","customHeaders":{"key":"value"}}' + headers: + cache-control: + - no-cache + content-length: + - '73' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac/ping?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac/ping?api-version=2019-05-01 response: - body: {string: '{"id":"5129a176-e5cb-4d31-9472-6ad7c53f0eaf"}'} - headers: - cache-control: [no-cache] - content-length: ['45'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 16:37:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"8ee989bf-5264-44dc-9b26-a2026800f7b0"}' + headers: + cache-control: + - no-cache + content-length: + - '45' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:44:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac/webhooks/pyacr572410ac?api-version=2019-05-01 response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:38:00 GMT'] - expires: ['-1'] - 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-deletes: ['14999'] - status: {code: 200, message: OK} + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:44:50 GMT + expires: + - '-1' + 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-deletes: + - '14997' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 containerregistrymanagementclient/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_test_webhook572410ac/providers/Microsoft.ContainerRegistry/registries/pyacr572410ac?api-version=2019-05-01 response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 11 Sep 2018 16:38:01 GMT'] - expires: ['-1'] - 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-deletes: ['14998'] - status: {code: 200, message: OK} + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:44:52 GMT + expires: + - '-1' + 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-deletes: + - '14996' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2017_03_01.test_basic_registry.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2017_03_01.test_basic_registry.yaml index 3a375c3c1d85..54a1ded2e8d2 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2017_03_01.test_basic_registry.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2017_03_01.test_basic_registry.yaml @@ -2,226 +2,99 @@ interactions: - request: body: '{"name": "pyacr99e51642", "type": "Microsoft.ContainerRegistry/registries"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['75'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01 response: - body: {string: '{"nameAvailable":true}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:23 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} + body: + string: '{"nameAvailable":true}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:24:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"location": "westcentralus", "sku": {"name": "Basic"}, "properties": {"adminUserEnabled": - false, "storageAccount": {"name": "pyacr99e51642", "accessKey": "64+JdQQocCsG4M9QF45FiYDX36ccAUYzHJp6XGMtkGF/w7eLjuvhg2iRNtPySb0lAIpCxbjxetqwo392UCrE3Q=="}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['248'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + false, "storageAccount": {"name": "pyacr99e51642", "accessKey": "ltwOUQ11FSoA8Pb18g2P5lKmSgzvr5ENP+piICuBFDIQUvkLVDqZQykCZjx0KiDOWdwUdiaGtsM8+O4aIgeexg=="}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642?api-version=2017-03-01 response: - body: {string: '{"sku":{"name":"Basic","tier":"Basic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642","name":"pyacr99e51642","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr99e51642.azurecr.io","creationDate":"2018-04-28T06:18:27.2564504Z","provisioningState":"Succeeded","adminUserEnabled":false,"storageAccount":{"name":"pyacr99e51642"}}}'} - headers: - cache-control: [no-cache] - content-length: ['552'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01 - response: - body: {string: '{"value":[{"sku":{"name":"Basic","tier":"Basic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642","name":"pyacr99e51642","location":"westcentralus","tags":{},"properties":{"loginServer":"pyacr99e51642.azurecr.io","creationDate":"2018-04-28T06:18:27.2564504Z","provisioningState":"Succeeded","adminUserEnabled":false,"storageAccount":{"name":"pyacr99e51642"}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['564'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:30 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: '{"tags": {"key": "value"}, "properties": {"adminUserEnabled": true}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['68'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642?api-version=2017-03-01 - response: - body: {string: '{"sku":{"name":"Basic","tier":"Basic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642","name":"pyacr99e51642","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacr99e51642.azurecr.io","creationDate":"2018-04-28T06:18:27.2564504Z","provisioningState":"Succeeded","adminUserEnabled":true,"storageAccount":{"name":"pyacr99e51642"}}}'} - headers: - cache-control: [no-cache] - content-length: ['564'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642?api-version=2017-03-01 - response: - body: {string: '{"sku":{"name":"Basic","tier":"Basic"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642","name":"pyacr99e51642","location":"westcentralus","tags":{"key":"value"},"properties":{"loginServer":"pyacr99e51642.azurecr.io","creationDate":"2018-04-28T06:18:27.2564504Z","provisioningState":"Succeeded","adminUserEnabled":true,"storageAccount":{"name":"pyacr99e51642"}}}'} - headers: - cache-control: [no-cache] - content-length: ['564'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:32 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642/listCredentials?api-version=2017-03-01 - response: - body: {string: '{"username":"pyacr99e51642","passwords":[{"name":"password","value":"=iMNS0gG6cm4GXrPpNKp3wlFesdiQAkW"},{"name":"password2","value":"cjnspqKnC=WPOo9x62wh0HQUoB5Tb00d"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: '{"name": "password"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642/regenerateCredential?api-version=2017-03-01 - response: - body: {string: '{"username":"pyacr99e51642","passwords":[{"name":"password","value":"Ls3SbjvAyMrKPTt7i6kw+HkOfdidf38v"},{"name":"password2","value":"cjnspqKnC=WPOo9x62wh0HQUoB5Tb00d"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:18:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2017_03_01_test_basic_registry99e51642/providers/Microsoft.ContainerRegistry/registries/pyacr99e51642?api-version=2017-03-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:18:41 GMT'] - expires: ['-1'] - 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: 200, message: OK} + body: + string: '{"error":{"code":"ClassicSkuDeprecated","message":"Classic SKU is now + deprecated. Please select a managed SKU."},"status":"Failed"}' + headers: + cache-control: + - no-cache + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:24:10 GMT + expires: + - '-1' + 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: + - '1194' + status: + code: 400 + message: Bad Request version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build.yaml index 8c77a9aaf7b8..c1182aca597e 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build.yaml @@ -3,257 +3,430 @@ interactions: body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9","name":"pyacr86c515d9","location":"eastus","tags":{},"properties":{"loginServer":"pyacr86c515d9.azurecr.io","creationDate":"2018-04-28T06:45:04.1327424Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9","name":"pyacr86c515d9","location":"eastus","tags":{},"properties":{"loginServer":"pyacr86c515d9.azurecr.io","creationDate":"2019-08-06T10:45:05.9697984Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' headers: - cache-control: [no-cache] - content-length: ['506'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45: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] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '587' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/getBuildSourceUploadUrl?api-version=2018-02-01-preview response: - body: {string: '{"uploadUrl":"https://eusmanaged107.blob.core.windows.net/48eb07104794444d9d2ae1b019f2be40-0mabple6mj/source/201804280000/2866dc3a-d5e8-43b5-a2b2-00b33b0f9e16.tar.gz?sv=2017-04-17&sr=b&sig=r88j2I6XhkTZ9hAyvl6U21MrufTZ0WTR9iH0RevOfKQ%3D&se=2018-04-28T07%3A45%3A07Z&sp=cw","relativePath":"source/201804280000/2866dc3a-d5e8-43b5-a2b2-00b33b0f9e16.tar.gz"}'} + body: + string: '{"uploadUrl":"https://eusmanaged80.blob.core.windows.net/a8ec2c3f28be49f48f8fb96ae4bbde4f-t5oacs796n/source/201908060000/88a64d41-81d1-4cff-97bf-6842b8794eb2.tar.gz?sv=2018-03-28&sr=b&sig=8GUMyZC5VSXVcQTkM2AbSj9a3EWpy2fbHq8V17PrDVY%3D&se=2019-08-06T11%3A45%3A10Z&sp=cw","relativePath":"source/201908060000/88a64d41-81d1-4cff-97bf-6842b8794eb2.tar.gz"}' headers: - cache-control: [no-cache] - content-length: ['352'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '351' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK - request: body: '{"type": "QuickBuild", "imageNames": ["repo:tag"], "sourceLocation": "https://github.com/djyou/BuildTest", "buildArguments": [], "isPushEnabled": true, "noCache": false, "timeout": 3600, "platform": {"osType": "Linux"}, "dockerFilePath": "Dockerfile"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['251'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '251' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/queueBuild?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Queued","lastUpdatedTime":"2018-04-28T06:45:08+00:00","buildType":null,"createTime":null,"startTime":null,"finishTime":null,"outputImages":null,"buildTask":null,"imageUpdateTrigger":null,"gitCommitTrigger":null,"isArchiveEnabled":false,"platform":null,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Queued","lastUpdatedTime":"2019-08-06T10:45:11+00:00","isArchiveEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}' headers: - cache-control: [no-cache] - content-length: ['608'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds?api-version=2018-02-01-preview response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Queued","lastUpdatedTime":"2018-04-28T06:45:08+00:00","buildType":"QuickBuild","createTime":"2018-04-28T06:45:08.2970383+00:00","startTime":null,"finishTime":null,"outputImages":null,"buildTask":null,"imageUpdateTrigger":null,"gitCommitTrigger":null,"isArchiveEnabled":false,"platform":{"osType":null,"cpu":null},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}],"nextLink":null}'} + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Running","lastUpdatedTime":"2019-08-06T10:45:11+00:00","buildType":"QuickBuild","createTime":"2019-08-06T10:45:11.1992422+00:00","startTime":"2019-08-06T10:45:11.30906+00:00","isArchiveEnabled":false,"platform":{"osType":"Linux","cpu":2},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}]}' headers: - cache-control: [no-cache] - content-length: ['697'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:08 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '606' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Queued","lastUpdatedTime":"2018-04-28T06:45:08+00:00","buildType":"QuickBuild","createTime":"2018-04-28T06:45:08.2970383+00:00","startTime":null,"finishTime":null,"outputImages":null,"buildTask":null,"imageUpdateTrigger":null,"gitCommitTrigger":null,"isArchiveEnabled":false,"platform":{"osType":null,"cpu":null},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Running","lastUpdatedTime":"2019-08-06T10:45:11+00:00","buildType":"QuickBuild","createTime":"2019-08-06T10:45:11.1992422+00:00","startTime":"2019-08-06T10:45:11.30906+00:00","isArchiveEnabled":false,"platform":{"osType":"Linux","cpu":2},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}' headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:09 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '594' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"isArchiveEnabled": true}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['26'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '26' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Queued","lastUpdatedTime":"2018-04-28T06:45:11+00:00","buildType":"QuickBuild","createTime":"2018-04-28T06:45:08.2970383+00:00","startTime":null,"finishTime":null,"outputImages":null,"buildTask":null,"imageUpdateTrigger":null,"gitCommitTrigger":null,"isArchiveEnabled":true,"platform":{"osType":null,"cpu":null},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Running","lastUpdatedTime":"2019-08-06T10:45:12+00:00","buildType":"QuickBuild","createTime":"2019-08-06T10:45:11.1992422+00:00","startTime":"2019-08-06T10:45:11.30906+00:00","isArchiveEnabled":true,"platform":{"osType":"Linux","cpu":2},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}' headers: - cache-control: [no-cache] - content-length: ['668'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '593' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1191' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1/getLogLink?api-version=2018-02-01-preview response: - body: {string: '{"logLink":"https://eusmanaged107.blob.core.windows.net/48eb07104794444d9d2ae1b019f2be40-0mabple6mj/logs/aa1/rawtext.log?sv=2017-04-17&sr=b&sig=Dn6ltR5kTq6uBD1J6PdOH1MpVrCrOaDF2rmXdj5DlMc%3D&se=2018-04-28T07%3A45%3A12Z&sp=rl"}'} + body: + string: '{"logLink":"https://eusmanaged80.blob.core.windows.net/a8ec2c3f28be49f48f8fb96ae4bbde4f-t5oacs796n/logs/aa1/rawtext.log?sv=2018-03-28&sr=b&sig=aCQq3r3LemEZuPHTDo0fGDDiXMb3VE0HIxd991bnBOM%3D&se=2019-08-06T11%3A45%3A13Z&sp=rl"}' headers: - cache-control: [no-cache] - content-length: ['226'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '225' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1/cancel?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/builds","properties":{"buildId":"aa1","status":"Running","lastUpdatedTime":"2018-04-28T06:45:13+00:00","buildType":"QuickBuild","createTime":"2018-04-28T06:45:08.2970383+00:00","startTime":"2018-04-28T06:45:11.5374769+00:00","finishTime":null,"outputImages":null,"buildTask":null,"imageUpdateTrigger":null,"gitCommitTrigger":null,"isArchiveEnabled":true,"platform":{"osType":null,"cpu":null},"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9/builds/aa1","name":"aa1"}'} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['700'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:45:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build86c515d9/providers/Microsoft.ContainerRegistry/registries/pyacr86c515d9?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:45:18 GMT'] - expires: ['-1'] - 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: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:45:17 GMT + expires: + - '-1' + 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-deletes: + - '14994' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_step.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_step.yaml index c25c861ea008..0ea968d1b511 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_step.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_step.yaml @@ -3,32 +3,54 @@ interactions: body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4","name":"pyacrfa3f17f4","location":"eastus","tags":{},"properties":{"loginServer":"pyacrfa3f17f4.azurecr.io","creationDate":"2018-04-28T06:45:27.3202445Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} - headers: - cache-control: [no-cache] - content-length: ['511'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4","name":"pyacrfa3f17f4","location":"eastus","tags":{},"properties":{"loginServer":"pyacrfa3f17f4.azurecr.io","creationDate":"2019-08-06T10:24:52.9507322Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' + headers: + cache-control: + - no-cache + content-length: + - '592' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:24:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK - request: body: '{"location": "eastus", "properties": {"alias": "pyacrfa3f17f4", "status": "Enabled", "sourceRepository": {"sourceControlType": "Github", "repositoryUrl": @@ -37,277 +59,53 @@ interactions: "", "scope": "repo", "expiresIn": 1313141}}, "platform": {"osType": "Linux", "cpu": 1}, "timeout": 3600}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['450'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '450' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks","properties":{"provisioningState":"Succeeded","creationDate":"2018-04-28T06:45:32.7830152+00:00","alias":"pyacrfa3f17f4","status":"Enabled","sourceRepository":{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":true,"sourceControlAuthProperties":null},"platform":{"osType":"Linux","cpu":1},"timeout":3600},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4","name":"pyacrfa3f17f4","tags":null,"location":"eastus"}'} - headers: - cache-control: [no-cache] - content-length: ['710'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"type": "Docker", "branch": "master", "imageNames": ["repo:tag"], - "isPushEnabled": true, "noCache": false, "dockerFilePath": "Dockerfile", "buildArguments": - [], "baseImageTrigger": "Runtime"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['208'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4?api-version=2018-02-01-preview - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks/steps","properties":{"type":"Docker","branch":"master","imageName":null,"imageNames":["repo:tag"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","contextPath":null,"buildArguments":[],"baseImageDependencies":null,"baseImageTrigger":"Runtime","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4","name":"pyacrfa3f17f4"}'} - headers: - cache-control: [no-cache] - content-length: ['630'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps?api-version=2018-02-01-preview - response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/buildTasks/steps","properties":{"type":"Docker","branch":"master","imageName":null,"imageNames":["repo:tag"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","contextPath":null,"buildArguments":[],"baseImageDependencies":null,"baseImageTrigger":"Runtime","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4","name":"pyacrfa3f17f4"}],"nextLink":null}'} - headers: - cache-control: [no-cache] - content-length: ['658'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,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: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxBMkY2RkI4OTFCNTc2RjU0LUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:45:36 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxBMkY2RkI4OTFCNTc2RjU0LUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 202, message: Accepted} -- request: - body: '{"properties": {"type": "Docker", "branch": "dev", "imageNames": ["repo1:tag1", - "repo2:tag2"], "isPushEnabled": false, "noCache": true, "dockerFilePath": "src\\Dockerfile", - "buildArguments": [{"type": "DockerBuildArgument", "name": "key1", "value": - "value1", "isSecret": false}, {"type": "DockerBuildArgument", "name": "key2", - "value": "value2", "isSecret": true}], "baseImageTrigger": "None"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['394'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4?api-version=2018-02-01-preview - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks/steps","properties":{"type":"Docker","branch":"dev","imageName":null,"imageNames":["repo1:tag1","repo2:tag2"],"isPushEnabled":false,"noCache":true,"dockerFilePath":"src\\Dockerfile","contextPath":null,"buildArguments":[{"type":"DockerBuildArgument","name":"key1","value":"value1","isSecret":false}],"baseImageDependencies":null,"baseImageTrigger":"None","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4","name":"pyacrfa3f17f4"}'} - headers: - cache-control: [no-cache] - content-length: ['722'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4?api-version=2018-02-01-preview - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks/steps","properties":{"type":"Docker","branch":"dev","imageName":null,"imageNames":["repo1:tag1","repo2:tag2"],"isPushEnabled":false,"noCache":true,"dockerFilePath":"src\\Dockerfile","contextPath":null,"buildArguments":[{"type":"DockerBuildArgument","name":"key1","value":"value1","isSecret":false}],"baseImageDependencies":null,"baseImageTrigger":"None","provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4","name":"pyacrfa3f17f4"}'} - headers: - cache-control: [no-cache] - content-length: ['722'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4/listBuildArguments?api-version=2018-02-01-preview - response: - body: {string: '{"value":[{"type":"DockerBuildArgument","name":"key1","value":"value1","isSecret":false},{"type":"DockerBuildArgument","name":"key2","value":"value2","isSecret":true}],"nextLink":null}'} - headers: - cache-control: [no-cache] - content-length: ['184'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1194'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4/steps/pyacrfa3f17f4?api-version=2018-02-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:45:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4/buildTasks/pyacrfa3f17f4?api-version=2018-02-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:45:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_stepfa3f17f4/providers/Microsoft.ContainerRegistry/registries/pyacrfa3f17f4?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:45:46 GMT'] - expires: ['-1'] - 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: 200, message: OK} + body: + string: '"{\"error\":{\"code\":\"Unauthorized\",\"message\":\"Failed to create + webhook for repository: ''https://github.com/djyou/BuildTest''. InnerErrors: + Request:The provided access token is invalid. Please check if it is valid + and it has ''repo'' scope.\",\"target\":\"GitHub\",\"details\":[{\"code\":\"Unauthorized\",\"message\":\"The + provided access token is invalid. Please check if it is valid and it has ''repo'' + scope.\",\"target\":null}]}}"' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:25:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 409 + message: Conflict version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_task.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_task.yaml index 9cf3293ac8b1..21d016705764 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_task.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_build_task.yaml @@ -3,32 +3,54 @@ interactions: body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb","name":"pyacrfa2117eb","location":"eastus","tags":{},"properties":{"loginServer":"pyacrfa2117eb.azurecr.io","creationDate":"2018-04-28T06:45:54.8358641Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} - headers: - cache-control: [no-cache] - content-length: ['511'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1194'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb","name":"pyacrfa2117eb","location":"eastus","tags":{},"properties":{"loginServer":"pyacrfa2117eb.azurecr.io","creationDate":"2019-08-06T10:25:12.0946879Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' + headers: + cache-control: + - no-cache + content-length: + - '592' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:25: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + status: + code: 200 + message: OK - request: body: '{"location": "eastus", "properties": {"alias": "pyacrfa2117eb", "status": "Enabled", "sourceRepository": {"sourceControlType": "Github", "repositoryUrl": @@ -37,218 +59,53 @@ interactions: "", "scope": "repo", "expiresIn": 1313141}}, "platform": {"osType": "Linux", "cpu": 1}, "timeout": 3600}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['450'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '450' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb?api-version=2018-02-01-preview response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks","properties":{"provisioningState":"Succeeded","creationDate":"2018-04-28T06:45:57.865138+00:00","alias":"pyacrfa2117eb","status":"Enabled","sourceRepository":{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":true,"sourceControlAuthProperties":null},"platform":{"osType":"Linux","cpu":1},"timeout":3600},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb","name":"pyacrfa2117eb","tags":null,"location":"eastus"}'} - headers: - cache-control: [no-cache] - content-length: ['709'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks?api-version=2018-02-01-preview - response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/buildTasks","properties":{"provisioningState":"Succeeded","creationDate":"2018-04-28T06:45:57.865138+00:00","alias":"pyacrfa2117eb","status":"Enabled","sourceRepository":{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":true,"sourceControlAuthProperties":null},"platform":{"osType":"Linux","cpu":1},"timeout":3600},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb","name":"pyacrfa2117eb","tags":null,"location":"eastus"}],"nextLink":null}'} - headers: - cache-control: [no-cache] - content-length: ['737'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb/listSourceRepositoryProperties?api-version=2018-02-01-preview - response: - body: {string: '{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":true,"sourceControlAuthProperties":{"tokenType":"PAT","token":"f431834b9161510c40d49f0626f975a962a3c856","refreshToken":"","scope":"repo","expiresIn":1313141}}'} - headers: - cache-control: [no-cache] - content-length: ['267'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:45:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"alias": "pyacrfa2117eb", "status": "Disabled", "platform": - {"osType": "Windows", "cpu": 1}, "timeout": 10000, "sourceRepository": {"isCommitTriggerEnabled": - false}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['182'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb?api-version=2018-02-01-preview - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks","properties":{"provisioningState":"Succeeded","creationDate":"2018-04-28T06:45:57.865138+00:00","alias":"pyacrfa2117eb","status":"Disabled","sourceRepository":{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":false,"sourceControlAuthProperties":null},"platform":{"osType":"Windows","cpu":1},"timeout":10000},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb","name":"pyacrfa2117eb","tags":null,"location":"eastus"}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb?api-version=2018-02-01-preview - response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/buildTasks","properties":{"provisioningState":"Succeeded","creationDate":"2018-04-28T06:45:57.865138+00:00","alias":"pyacrfa2117eb","status":"Disabled","sourceRepository":{"sourceControlType":"Github","repositoryUrl":"https://github.com/djyou/BuildTest","isCommitTriggerEnabled":false,"sourceControlAuthProperties":null},"platform":{"osType":"Windows","cpu":1},"timeout":10000},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb","name":"pyacrfa2117eb","tags":null,"location":"eastus"}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb/buildTasks/pyacrfa2117eb?api-version=2018-02-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:46:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [nginx/1.13.9] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxGNTNDMTNBOTk4RDhCQzZFLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:46:03 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxGNTNDMTNBOTk4RDhCQzZFLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_build_taskfa2117eb/providers/Microsoft.ContainerRegistry/registries/pyacrfa2117eb?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:46:06 GMT'] - expires: ['-1'] - 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: 200, message: OK} + body: + string: '"{\"error\":{\"code\":\"Unauthorized\",\"message\":\"Failed to create + webhook for repository: ''https://github.com/djyou/BuildTest''. InnerErrors: + Request:The provided access token is invalid. Please check if it is valid + and it has ''repo'' scope.\",\"target\":\"GitHub\",\"details\":[{\"code\":\"Unauthorized\",\"message\":\"The + provided access token is invalid. Please check if it is valid and it has ''repo'' + scope.\",\"target\":null}]}}"' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:25:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.9 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1191' + status: + code: 409 + message: Conflict version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_managed_registry.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_managed_registry.yaml index a6935c9cf902..3302681f4080 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_managed_registry.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_managed_registry.yaml @@ -2,253 +2,431 @@ interactions: - request: body: '{"name": "pyacr916b1a6e", "type": "Microsoft.ContainerRegistry/registries"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['75'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01 response: - body: {string: '{"nameAvailable":true}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46: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} + body: + string: '{"nameAvailable":true}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45: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: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2018-04-28T06:46:16.8358722Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} - headers: - cache-control: [no-cache] - content-length: ['517'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1192'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2019-08-06T10:45:33.1792641Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1191' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries?api-version=2017-10-01 response: - body: {string: '{"value":[{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2018-04-28T06:46:16.8358722Z","provisioningState":"Succeeded","adminUserEnabled":false}}]}'} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46: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} + body: + string: '{"value":[{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2019-08-06T10:45:33.1792641Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:36 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: '{"tags": {"key": "value"}, "properties": {"adminUserEnabled": true}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['68'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{"key":"value"},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2018-04-28T06:46:16.8358722Z","provisioningState":"Succeeded","adminUserEnabled":true}}'} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{"key":"value"},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2019-08-06T10:45:33.1792641Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' + headers: + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1190' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{"key":"value"},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2018-04-28T06:46:16.8358722Z","provisioningState":"Succeeded","adminUserEnabled":true}}'} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46: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} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e","name":"pyacr916b1a6e","location":"eastus","tags":{"key":"value"},"properties":{"loginServer":"pyacr916b1a6e.azurecr.io","creationDate":"2019-08-06T10:45:33.1792641Z","provisioningState":"Succeeded","adminUserEnabled":true,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' + headers: + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:37 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e/listCredentials?api-version=2017-10-01 response: - body: {string: '{"username":"pyacr916b1a6e","passwords":[{"name":"password","value":"p0zVLCS/8wHaaf4tzBecMQyRQGLAjZUJ"},{"name":"password2","value":"C5W8kneH=lgiaXV=sbLj95QWKNYyNdPr"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"username":"pyacr916b1a6e","passwords":[{"name":"password","value":"NNC16x0Evd=ogVfHXupTYPlFE3hwB3Yg"},{"name":"password2","value":"Xxihoiitt+fmQXRGrwfbz2UJCxabFt5s"}]}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK - request: body: '{"name": "password"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e/regenerateCredential?api-version=2017-10-01 response: - body: {string: '{"username":"pyacr916b1a6e","passwords":[{"name":"password","value":"YPeLuaX0gihCYjbEfqKLuLWtkw7/Xls2"},{"name":"password2","value":"C5W8kneH=lgiaXV=sbLj95QWKNYyNdPr"}]}'} - headers: - cache-control: [no-cache] - content-length: ['169'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} + body: + string: '{"username":"pyacr916b1a6e","passwords":[{"name":"password","value":"74+qNAGPp1CtrRqQeSDbveTEWD1kHWYo"},{"name":"password2","value":"Xxihoiitt+fmQXRGrwfbz2UJCxabFt5s"}]}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e/listUsages?api-version=2017-10-01 response: - body: {string: '{"value":[{"name":"Size","limit":536870912000,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":100,"currentValue":0,"unit":"Count"}]}'} - headers: - cache-control: [no-cache] - content-length: ['144'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"value":[{"name":"Size","limit":536870912000,"currentValue":0,"unit":"Bytes"},{"name":"Webhooks","limit":100,"currentValue":0,"unit":"Count"}]}' + headers: + cache-control: + - no-cache + content-length: + - '144' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_managed_registry916b1a6e/providers/Microsoft.ContainerRegistry/registries/pyacr916b1a6e?api-version=2017-10-01 response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:46:27 GMT'] - expires: ['-1'] - 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: 200, message: OK} + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:45:44 GMT + expires: + - '-1' + 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-deletes: + - '14994' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_replication.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_replication.yaml index b0422adbfbed..175ba6f277db 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_replication.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_replication.yaml @@ -3,383 +3,498 @@ interactions: body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863","name":"pyacr12ea1863","location":"eastus","tags":{},"properties":{"loginServer":"pyacr12ea1863.azurecr.io","creationDate":"2018-04-28T06:46:36.8069227Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863","name":"pyacr12ea1863","location":"eastus","tags":{},"properties":{"loginServer":"pyacr12ea1863.azurecr.io","creationDate":"2019-08-06T10:45:53.6957062Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' headers: - cache-control: [no-cache] - content-length: ['512'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '593' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:45:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1190' + status: + code: 200 + message: OK - request: body: '{"location": "southcentralus"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['30'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Creating","status":{"timestamp":"2018-04-28T06:46:42.2588939Z"}}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Creating","status":{"timestamp":"2019-08-06T10:45:59.2150556Z"}}}' headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-e6970812-4aaf-11e8-b5d1-480fcf61db4b?api-version=2017-10-01'] - cache-control: [no-cache] - content-length: ['461'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:42 GMT'] - expires: ['-1'] - 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: ['1196'] - status: {code: 201, message: Created} + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-5eb9d820-b837-11e9-b3ca-0242ac110003?api-version=2017-10-01 + cache-control: + - no-cache + content-length: + - '461' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:00 GMT + expires: + - '-1' + 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: + - '1189' + status: + code: 201 + message: Created - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxFRjgxMkQxQzYyNEMyRTNBLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-5eb9d820-b837-11e9-b3ca-0242ac110003?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '{"status":"Succeeded"}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:46:46 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxFRjgxMkQxQzYyNEMyRTNBLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 202, message: Accepted} + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-5eb9d820-b837-11e9-b3ca-0242ac110003?api-version=2017-10-01 + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:10 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: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-e6970812-4aaf-11e8-b5d1-480fcf61db4b?api-version=2017-10-01 - response: - body: {string: '{"status":"Creating"}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-e6970812-4aaf-11e8-b5d1-480fcf61db4b?api-version=2017-10-01'] - cache-control: [no-cache] - content-length: ['21'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:46:53 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: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxFRjgxMkQxQzYyNEMyRTNBLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:47:02 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxFRjgxMkQxQzYyNEMyRTNBLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-e6970812-4aaf-11e8-b5d1-480fcf61db4b?api-version=2017-10-01 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus/operationStatuses/replications-e6970812-4aaf-11e8-b5d1-480fcf61db4b?api-version=2017-10-01'] - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-04-28T06:47:02.418323Z"}}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Syncing","timestamp":"2019-08-06T10:46:08.5538336Z"}}}' headers: - cache-control: [no-cache] - content-length: ['485'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47: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} + cache-control: + - no-cache + content-length: + - '488' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:10 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications?api-version=2017-10-01 response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-04-28T06:47:02.418323Z"}}},{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/eastus","name":"eastus","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-04-28T06:46:47.6992536Z"}}}]}'} + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2019-08-06T10:46:12.852581Z"}}},{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/eastus","name":"eastus","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2019-08-06T10:46:02.0062317Z"}}}]}' headers: - cache-control: [no-cache] - content-length: ['960'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '960' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"tags": {"key": "value"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['26'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '26' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-04-28T06:47:02.418323Z"}}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2019-08-06T10:46:12.852581Z"}}}' headers: - cache-control: [no-cache] - content-length: ['498'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '498' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1188' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2018-04-28T06:47:02.418323Z"}}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/replications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus","name":"southcentralus","location":"southcentralus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","status":{"displayStatus":"Ready","timestamp":"2019-08-06T10:46:12.852581Z"}}}' headers: - cache-control: [no-cache] - content-length: ['498'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:08 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '498' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:14 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863/replications/southcentralus?api-version=2017-10-01 response: - body: {string: 'null'} - headers: - cache-control: [no-cache] - content-length: ['4'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:10 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-f927df64-4aaf-11e8-943c-480fcf61db4b?api-version=2017-10-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: ['1193'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHxFRjgxMkQxQzYyNEMyRTNBLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 - response: - body: {string: ''} + body: + string: 'null' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:47:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-6a2bc13c-b837-11e9-b3ca-0242ac110003?api-version=2017-10-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-deletes: + - '14993' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-f927df64-4aaf-11e8-943c-480fcf61db4b?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/southcentralus/operationResults/replications-6a2bc13c-b837-11e9-b3ca-0242ac110003?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:47:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:46:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863","name":"pyacr12ea1863","location":"eastus","tags":{},"properties":{"loginServer":"pyacr12ea1863.azurecr.io","creationDate":"2018-04-28T06:46:36.8069227Z","provisioningState":"Deleting","adminUserEnabled":false}}'} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_replication12ea1863/providers/Microsoft.ContainerRegistry/registries/pyacr12ea1863","name":"pyacr12ea1863","location":"eastus","tags":{},"properties":{"loginServer":"pyacr12ea1863.azurecr.io","creationDate":"2019-08-06T10:45:53.6957062Z","provisioningState":"Deleting","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' headers: - cache-control: [no-cache] - content-length: ['511'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:30 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-0098c21a-4ab0-11e8-a7f3-480fcf61db4b?api-version=2017-10-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: ['1194'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '592' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-714b3790-b837-11e9-b3ca-0242ac110003?api-version=2017-10-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-deletes: + - '14992' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-0098c21a-4ab0-11e8-a7f3-480fcf61db4b?api-version=2017-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-714b3790-b837-11e9-b3ca-0242ac110003?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:47:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:46:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_webhook.yaml b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_webhook.yaml index 1eb3be5f640a..adf48c574772 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_webhook.yaml +++ b/sdk/containerregistry/azure-mgmt-containerregistry/tests/recordings/test_mgmt_containerregistry_2018_02_01_preview.test_webhook.yaml @@ -3,276 +3,430 @@ interactions: body: '{"location": "eastus", "sku": {"name": "Premium"}, "properties": {"adminUserEnabled": false}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['93'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"loginServer":"pyacrb3e116b8.azurecr.io","creationDate":"2018-04-28T06:47:50.0725505Z","provisioningState":"Succeeded","adminUserEnabled":false}}'} + body: + string: '{"sku":{"name":"Premium","tier":"Premium"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"loginServer":"pyacrb3e116b8.azurecr.io","creationDate":"2019-08-06T10:46:57.3699784Z","provisioningState":"Succeeded","adminUserEnabled":false,"networkRuleSet":{"defaultAction":"Allow","virtualNetworkRules":[],"ipRules":[]}}}' headers: - cache-control: [no-cache] - content-length: ['508'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '589' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:46:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK - request: body: '{"location": "eastus", "properties": {"serviceUri": "http://www.microsoft.com", "actions": ["push"]}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['101'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"status":"enabled","actions":["push"],"provisioningState":"Succeeded"}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['424'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks?api-version=2017-10-01 response: - body: {string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"status":"enabled","actions":["push"],"provisioningState":"Succeeded"}}]}'} + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{},"properties":{"status":"enabled","scope":"","actions":["push"],"provisioningState":"Succeeded"}}]}' headers: - cache-control: [no-cache] - content-length: ['436'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '447' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47: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: '{"tags": {"key": "value"}, "properties": {"customHeaders": {"key": "value"}, "scope": "hello-world"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['101'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['459'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '459' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}'} + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/webhooks","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8","name":"pyacrb3e116b8","location":"eastus","tags":{"key":"value"},"properties":{"status":"enabled","scope":"hello-world","actions":["push"],"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['459'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '459' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHw0ODcwMzdERkUyRDdBNjlFLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:47:58 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RkNPTlRBSU5FUlJFR0lTVFJZOjVGMjAxODo1RjAyOjVGMHw0ODcwMzdERkUyRDdBNjlFLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2018-02-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8/getCallbackConfig?api-version=2017-10-01 response: - body: {string: '{"serviceUri":"http://www.microsoft.com","customHeaders":{"key":"value"}}'} + body: + string: '{"serviceUri":"http://www.microsoft.com","customHeaders":{"key":"value"}}' headers: - cache-control: [no-cache] - content-length: ['73'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:47:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '73' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8/ping?api-version=2017-10-01 response: - body: {string: '{"id":"feb1426b-bb6c-462a-bc8d-be1d69f4983d"}'} + body: + string: '{"id":"a4ed8fc2-52c7-40c9-a56d-89ceb8eb88fa"}' headers: - cache-control: [no-cache] - content-length: ['45'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 28 Apr 2018 06:48:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '45' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 06 Aug 2019 10:47: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8/webhooks/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:48:03 GMT'] - expires: ['-1'] - 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: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:47:07 GMT + expires: + - '-1' + 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-deletes: + - '14997' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.28 - msrest_azure/0.4.28 containerregistrymanagementclient/2.0.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-containerregistry/3.0.0rc5 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_containerregistry_2018_02_01_preview_test_webhookb3e116b8/providers/Microsoft.ContainerRegistry/registries/pyacrb3e116b8?api-version=2017-10-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 28 Apr 2018 06:48:06 GMT'] - expires: ['-1'] - 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: ['1196'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 06 Aug 2019 10:47:10 GMT + expires: + - '-1' + 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-deletes: + - '14996' + status: + code: 200 + message: OK version: 1