From 089c62e650c1daa2adca27364967fe08e713d0bd Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Tue, 14 Jan 2020 16:43:38 -0800 Subject: [PATCH 01/27] Add TaskRun CLI for show list and remove --- .../command_modules/acr/_client_factory.py | 4 ++ .../azure/cli/command_modules/acr/_format.py | 8 ++++ .../azure/cli/command_modules/acr/commands.py | 13 +++++++ .../azure/cli/command_modules/acr/taskrun.py | 38 +++++++++++++++++++ src/azure-cli/requirements.py2.Darwin.txt | 2 +- src/azure-cli/requirements.py2.Linux.txt | 2 +- src/azure-cli/requirements.py2.windows.txt | 2 +- src/azure-cli/requirements.py3.Darwin.txt | 2 +- src/azure-cli/requirements.py3.Linux.txt | 2 +- src/azure-cli/requirements.py3.windows.txt | 2 +- src/azure-cli/setup.py | 2 +- 11 files changed, 70 insertions(+), 7 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/acr/taskrun.py diff --git a/src/azure-cli/azure/cli/command_modules/acr/_client_factory.py b/src/azure-cli/azure/cli/command_modules/acr/_client_factory.py index 5a0410909b4..c5db7fa91fc 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_client_factory.py @@ -35,6 +35,10 @@ def cf_acr_tasks(cli_ctx, *_): return get_acr_service_client(cli_ctx, VERSION_2019_06_01_PREVIEW).tasks +def cf_acr_taskruns(cli_ctx, *_): + return get_acr_service_client(cli_ctx, VERSION_2019_06_01_PREVIEW).task_runs + + def cf_acr_runs(cli_ctx, *_): return get_acr_service_client(cli_ctx, VERSION_2019_06_01_PREVIEW).runs diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 51ad7c35800..06574208ed0 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -49,6 +49,8 @@ def replication_output_format(result): def task_output_format(result): return _output_format(result, _task_format_group) +def taskrun_output_format(result): + return _output_format(result, _taskrun_format_group) def build_output_format(result): return _output_format(result, _build_format_group) @@ -183,6 +185,12 @@ def _task_format_group(item): ('TRIGGERS', _get_triggers(item)) ]) +def _taskrun_format_group(item): + return OrderedDict([ + ('NAME', _get_value(item, 'name')), + ('PLATFORM', _get_value(item, 'platform', 'os')), + ('STATUS', _get_value(item, 'status')) + ]) def _build_format_group(item): return OrderedDict([ diff --git a/src/azure-cli/azure/cli/command_modules/acr/commands.py b/src/azure-cli/azure/cli/command_modules/acr/commands.py index 70339f3d4d8..9338e589143 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/commands.py @@ -17,6 +17,7 @@ replication_output_format, build_output_format, task_output_format, + taskrun_output_format, run_output_format, helm_list_output_format, helm_show_output_format, @@ -29,6 +30,7 @@ cf_acr_replications, cf_acr_webhooks, cf_acr_tasks, + cf_acr_taskruns, cf_acr_runs, cf_acr_scope_maps, cf_acr_tokens, @@ -105,6 +107,12 @@ def load_command_table(self, _): # pylint: disable=too-many-statements client_factory=cf_acr_tasks ) + acr_taskrun_util = CliCommandType( + operations_tmpl='azure.cli.command_modules.acr.taskrun#{}', + table_transformer=taskrun_output_format, + client_factory=cf_acr_taskruns + ) + acr_helm_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.helm#{}' ) @@ -237,6 +245,11 @@ def load_command_table(self, _): # pylint: disable=too-many-statements g.command('logs', 'acr_task_logs', client_factory=cf_acr_runs, table_transformer=None) + with self.command_group('acr taskrun', acr_taskrun_util) as g: + g.command('list', 'acr_taskrun_list') + g.command('delete', 'acr_taskrun_delete') + g.command('show', 'acr_taskrun_show') + with self.command_group('acr config content-trust', acr_policy_util) as g: g.command('show', 'acr_config_content_trust_show') g.command('update', 'acr_config_content_trust_update') diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py new file mode 100644 index 00000000000..42bf4239fe7 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from ._utils import ( + validate_managed_registry +) + + +TASK_NOT_SUPPORTED = 'Task is only supported for managed registries.' + +def acr_taskrun_show(cmd, + client, + taskrun_name, + registry_name, + resource_group_name=None): + _, resource_group_name = validate_managed_registry( + cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + return client.get(resource_group_name, registry_name, taskrun_name) + +def acr_taskrun_list(cmd, + client, + registry_name, + resource_group_name=None): + + _, resource_group_name = validate_managed_registry( + cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + return client.list(resource_group_name, registry_name) + +def acr_taskrun_delete(cmd, + client, + taskrun_name, + registry_name, + resource_group_name=None): + _, resource_group_name = validate_managed_registry( + cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + return client.delete(resource_group_name, registry_name, taskrun_name) \ No newline at end of file diff --git a/src/azure-cli/requirements.py2.Darwin.txt b/src/azure-cli/requirements.py2.Darwin.txt index 492dd0100d5..42de0e6293e 100644 --- a/src/azure-cli/requirements.py2.Darwin.txt +++ b/src/azure-cli/requirements.py2.Darwin.txt @@ -30,7 +30,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/requirements.py2.Linux.txt b/src/azure-cli/requirements.py2.Linux.txt index 492dd0100d5..42de0e6293e 100644 --- a/src/azure-cli/requirements.py2.Linux.txt +++ b/src/azure-cli/requirements.py2.Linux.txt @@ -30,7 +30,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/requirements.py2.windows.txt b/src/azure-cli/requirements.py2.windows.txt index 08dc070fc07..abc2a4be0ee 100644 --- a/src/azure-cli/requirements.py2.windows.txt +++ b/src/azure-cli/requirements.py2.windows.txt @@ -29,7 +29,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 0cabb293339..eb20b98dd98 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -30,7 +30,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 0cabb293339..eb20b98dd98 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -30,7 +30,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 75987ec167d..fce7a64c0a6 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -29,7 +29,7 @@ azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 -azure-mgmt-containerregistry==3.0.0rc7 +azure-mgmt-containerregistry==3.0.0rc8 azure-mgmt-containerservice==8.0.0 azure-mgmt-cosmosdb==0.11.0 azure-mgmt-datalake-analytics==0.2.1 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 2df9a823889..085aef2d77a 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -77,7 +77,7 @@ 'azure-mgmt-compute~=10.0', 'azure-mgmt-consumption~=2.0', 'azure-mgmt-containerinstance~=1.4', - 'azure-mgmt-containerregistry~=3.0.0rc7', + 'azure-mgmt-containerregistry~=3.0.0rc8', 'azure-mgmt-containerservice~=8.0.0', 'azure-mgmt-cosmosdb~=0.11.0', 'azure-mgmt-datalake-analytics~=0.2.1', From 5e21545d36f10c4410ed4f06ebb1747c83ac6e39 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 16 Jan 2020 17:19:20 -0800 Subject: [PATCH 02/27] Add taskrun test. Update the output format and history. --- src/azure-cli/HISTORY.rst | 4 + .../azure/cli/command_modules/acr/_format.py | 9 +- .../latest/recordings/test_acr_taskrun.yaml | 1205 +++++++++++++++++ .../tests/latest/taskrunquickbuildsample.json | 81 ++ .../tests/latest/test_acr_taskrun_commands.py | 47 + 5 files changed, 1345 insertions(+), 1 deletion(-) create mode 100644 src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/acr/tests/latest/taskrunquickbuildsample.json create mode 100644 src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index e035ec11a28..1da2dd1f6ff 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -49,6 +49,10 @@ Release History * `az storage remove`: Change `--inlcude` and `--exclude` parameters to `--include-path`, `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters * `az storage sync`: Add `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters +**ACR** + +* Add new command 'az acr taskrun show/list/delete' to show, list, delete the taskrun + 2.0.80 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 06574208ed0..640139b205b 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -188,8 +188,15 @@ def _task_format_group(item): def _taskrun_format_group(item): return OrderedDict([ ('NAME', _get_value(item, 'name')), + ('RUN ID', _get_value(item, 'runId')), + ('TASK', _get_value(item, 'task')), ('PLATFORM', _get_value(item, 'platform', 'os')), - ('STATUS', _get_value(item, 'status')) + ('STATUS', _get_value(item, 'status')), + ("TRIGGER", _get_build_trigger(_get_value(item, 'imageUpdateTrigger'), + _get_value(item, 'sourceTrigger', 'eventType'), + _get_value(item, 'timerTrigger'))), + ('STARTED', _format_datetime(_get_value(item, 'startTime'))), + ('DURATION', _get_duration(_get_value(item, 'startTime'), _get_value(item, 'finishTime'))) ]) def _build_format_group(item): diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml new file mode 100644 index 00000000000..398ebd04cce --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -0,0 +1,1205 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:15:18 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnUTUJHADktHhcTY9VSILCE; expires=Sun, 16-Feb-2020 01:15:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH84GLMMmCvueSJvO2E9XWt4VAFI6UOuJoRdf-3O2LWpZ1YoBNjmrvAOHsGynJ8FnVzQ22pxd9tP-zvKCbV6RSfvtIAlgpZHjUkOJqiRgEUIbN_DvJn6-9Dyqtf-G14F9LBkPYep6z-b9vsr0wa1Ln0rWmXFSbiumHn9K1GCxnX6XggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "Standard"}, "properties": {"adminUserEnabled": + false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr create + Connection: + - keep-alive + Content-Length: + - '94' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g -l --sku + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: PUT + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '753' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:15: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:15:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnwM3UUfJM9Ks4nZZSihHmo; expires=Sun, 16-Feb-2020 01:15:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88KDpuPPKSP2nPOslE7qDHiprXPYWcOKBtHw9eE5H4NgeD_Yq3f91V7_gQKcxc-Ezu629nULx1N7uHTWyQM-Jw1ENm4GCZHXz8oTV4SAE8QakqPP52vP2TDWow0yLl9Pfsdoycbcw4KNKe_I2sH4PYy0jZ92LWVOLE8DJlyauOoAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "defaultValue": + "[resourceGroup().location]", "metadata": {"description": "Location for all + resources."}}, "registryName": {"type": "string", "minLength": 5, "maxLength": + 50, "metadata": {"description": "Name of your Azure Container Registry"}}, "taskRunName": + {"type": "string", "minLength": 5, "maxLength": 50, "metadata": {"description": + "Name of your Task Run and tag generated"}}, "sourceLocation": {"type": "string", + "defaultValue": "https://github.com/Azure-Samples/acr-build-helloworld-node.git", + "metadata": {"description": "Source Location"}}, "dockerFilePath": {"type": + "string", "defaultValue": "Dockerfile", "metadata": {"description": "Name of + dockerFile"}}, "image": {"type": "string", "defaultValue": "mytest:v1", "metadata": + {"description": "Image name"}}}, "resources": [{"type": "Microsoft.ContainerRegistry/registries/taskRuns/", + "name": "[concat(parameters(''registryName''), ''/'', parameters(''taskRunName''))]", + "location": "[parameters(''location'')]", "apiVersion": "2019-06-01-preview", + "properties": {"runRequest": {"type": "DockerBuildRequest", "imageNames": ["[parameters(''image'')]"], + "sourceLocation": "[parameters(''sourceLocation'')]", "dockerFilePath": "[parameters(''dockerFilePath'')]", + "values": [], "isPushEnabled": true, "platform": {"os": "linux", "architecture": + "amd64"}, "credentials": {}}}}], "outputs": {"taskRunName": {"type": "string", + "value": "[parameters(''taskRunName'')]"}}}, "parameters": {"registryName": + {"value": "clireg000002"}, "taskRunName": {"value": "testTaskRun"}, "sourceLocation": + {"value": "https://github.com/Azure-Samples/acr-build-helloworld-node.git"}, + "dockerFilePath": {"value": "Dockerfile"}, "image": {"value": "testtaskrun:v1"}}, + "mode": "Incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - group deployment create + Connection: + - keep-alive + Content-Length: + - '1919' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --template-file --parameters --parameters --parameters --parameters + --parameters + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: PUT + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-17T01:15:29.0660278Z","duration":"PT0.7641576S","correlationId":"54b797e8-f2e5-4eeb-8979-7dfe2a2715ee","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223831571757467?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '1070' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:15:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:15:59 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmBT7s7hr7FDgm_3Iyghx0Y; expires=Sun, 16-Feb-2020 01:15:59 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Rj9JDPErOwWWrSmK7qF7quOKpwyNNQtvF1gRwko-v5EzVjlSJfFVABuXLpjVHL7G-__IwkA7ctZmvvT3-Dd16z_xZ9ovRt3OlZmKaFo1ACJMvDJ0Qa8ho_2lxWvZa0jTpYGQP0sqGUrYUhtDKu6Vb56afK8cXzaxMEgu29SG2BYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - group deployment create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --template-file --parameters --parameters --parameters --parameters + --parameters + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223831571757467?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqcTCozL47FMhmCOjhoPhfM; expires=Sun, 16-Feb-2020 01:16:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aY37J5f5mokBr3IPBDMfHFrAV6rf-Wmqr2x0IpFNnRKDk50wJhV01OvIcfYTTssld-P7rSgGyZ2V7HQKJ65-eQMsPOdj0SL47lq05arJ_CWSUOfEir7Ndsm0uG2qxYSx4RwvS3iHvtedjwkwKIgfL7o8WQlYi-PyHXjxeVO3YqggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - group deployment create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --template-file --parameters --parameters --parameters --parameters + --parameters + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223831571757467?api-version=2019-07-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:31 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj33PvDRRrtEqoiXpDywPdo; expires=Sun, 16-Feb-2020 01:16:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8KhDsCTNNo2EoOJkts3FMk9t6skG2UDqk6l1KlUppEqB2JmH8w7bXnKZ4h8YNSw41QWj14P_IdtEjGTZtp1H4ytZhR59xXnoitJd6TDPgBH6Osi7JXIq5GB71iAa3NM-aPOIptuapv2d-uVCIkDAxhcDv4bsIPJNpZ04r_ka1C9ogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - group deployment create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --template-file --parameters --parameters --parameters --parameters + --parameters + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-17T01:16:17.4804727Z","duration":"PT49.1786025S","correlationId":"54b797e8-f2e5-4eeb-8979-7dfe2a2715ee","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '1401' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ao-0SnR1h4RMuNNN1SLdepU; expires=Sun, 16-Feb-2020 01:16:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rkv6HvARS6e3EKKL2YRL8i0NTR68f6TkeFYxqFognhOP_l1GXT7a08VY3bUiVZrpHZNvUrjliHZ5h_BIf7WdpXCTgH7mE0fZJFwqjfh8DZQcN_f8mH4m9ci10wSb7JWaxf6eSfNBqGHF7B8aXR9o2yRbcdA2kJy-J74ogETDel0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun show + Connection: + - keep-alive + ParameterSetName: + - --name --taskrun-name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '753' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:33 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah2exWkW299CtDxWv0LC4_4; expires=Sun, 16-Feb-2020 01:16:34 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8_ubPgcf9xJrwA490sxQCFAR_0f-t8A_QX8wEHrVhyfT-0BmNHJJpHlY0M2wqgqWwEgEryvUP5kCQxGlc5oWXhu1s7_zsZaPMdpT4yRQEVQfr7br-qAKC3S9MlXH8lj7Dkd_bndawHL-CANZKAnL359TJYhbd8fclsK2pIYMFP9MgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun show + Connection: + - keep-alive + ParameterSetName: + - --name --taskrun-name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview + response: + body: + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T01:16:15+00:00","runType":"QuickRun","createTime":"2020-01-17T01:15:46.6809011+00:00","startTime":"2020-01-17T01:15:47.1555629+00:00","finishTime":"2020-01-17T01:16:15.4582532+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:0a0a8fa2530ea286e41c8d52943fa1b994b24f80c8c555bed6065d52d6b547cb"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + headers: + cache-control: + - no-cache + content-length: + - '1582' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.10 + 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: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:35 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Am8H1incARFNhBCfHc_SuIE; expires=Sun, 16-Feb-2020 01:16:36 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8klyBBob7_5b56B1K_LsEAwfsZpQfnmA30w6uZBSstsfckDCXPKOQUmcxdVOlih7GTNBY7mvNn9fHlOH_tU31SV62d2sHXL7vGspWqD18FL40esQn8IJHM_o50xxowghUzD_OlZzea25hyRviJGu8jBECYWvAhRHafykOBXv-t5ggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '753' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16: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: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:37 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkeOM-0WvapNvaql2rXpW94; expires=Sun, 16-Feb-2020 01:16:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ps0WLrYgtPXSVB2NN9t-QSHs_lgNM7SVwyuQ4Zvij1FIs1lb3qbfgcp1uTgMu8caGZBjYJMt6MMhqjpJqcHAqJlzD0ykjIAr56Vf4Etce9uho3zEc_aZLV0wJ9pc_eC4iyeqdxIH4qIRfYUMGm10mxCvGfeV17-s6gkWG12v0BQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview + response: + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T01:16:15+00:00","runType":"QuickRun","createTime":"2020-01-17T01:15:46.6809011+00:00","startTime":"2020-01-17T01:15:47.1555629+00:00","finishTime":"2020-01-17T01:16:15.4582532+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:0a0a8fa2530ea286e41c8d52943fa1b994b24f80c8c555bed6065d52d6b547cb"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1594' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.10 + 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: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuuXvTvHqbpMi0ZJucdNrrE; expires=Sun, 16-Feb-2020 01:16:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8y0u4Ypv8C95y6VdG3-l3hagcT72RLvUwSQ5Sdp_EKIU3eQ8pmNLszxZT53IwoCDlux1mI-I3giblY8yDwBiM_JdCR1UHoiWgod6IP43eIR6jUqSdr9Zi5_cp7nCzEgKlLqoyqIOil5aSwL8U4sf76wJdwZf9O_mXfstIyVOHqy4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun delete + Connection: + - keep-alive + ParameterSetName: + - --name --taskrun-name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '753' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:40 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: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Jan 2020 01:16:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvvOgq0BN1REkYRnrjnllqE; expires=Sun, 16-Feb-2020 01:16:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CGIuff0mtIRVvSGFsi6O_8whzYryHm-JRJe42R-W201SNta4m4_CKWs-3cQM1Y4zvJ9vwbAv_XZbch0J6EcYyK-JrGb9dS2Kza4kLmPp4eMzS5Jd9U_iVgxs-gPwH-597GA4HO9fqfWrxJDeD8HXjS32j1qJIhIHJjC3leiOgysgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.9926.5 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --taskrun-name --resource-group + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: DELETE + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 17 Jan 2020 01:16:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.10 + 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/src/azure-cli/azure/cli/command_modules/acr/tests/latest/taskrunquickbuildsample.json b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/taskrunquickbuildsample.json new file mode 100644 index 00000000000..eac28ff1716 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/taskrunquickbuildsample.json @@ -0,0 +1,81 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "Location for all resources." + } + }, + "registryName": { + "type": "string", + "minLength": 5, + "maxLength": 50, + "metadata": { + "description": "Name of your Azure Container Registry" + } + }, + "taskRunName": { + "type": "string", + "minLength": 5, + "maxLength": 50, + "metadata": { + "description": "Name of your Task Run and tag generated" + } + }, + "sourceLocation": { + "type": "string", + "defaultValue": "https://github.com/Azure-Samples/acr-build-helloworld-node.git", + "metadata": { + "description": "Source Location" + } + }, + "dockerFilePath": { + "type": "string", + "defaultValue": "Dockerfile", + "metadata": { + "description": "Name of dockerFile" + } + }, + "image": { + "type": "string", + "defaultValue": "mytest:v1", + "metadata": { + "description": "Image name" + } + } + }, + "resources": [ + { + "type": "Microsoft.ContainerRegistry/registries/taskRuns/", + "name": "[concat(parameters('registryName'), '/', parameters('taskRunName'))]", + "location": "[parameters('location')]", + "apiVersion": "2019-06-01-preview", + "properties": { + "runRequest": { + "type": "DockerBuildRequest", + "imageNames": [ + "[parameters('image')]" + ], + "sourceLocation": "[parameters('sourceLocation')]", + "dockerFilePath": "[parameters('dockerFilePath')]", + "values": [], + "isPushEnabled": true, + "platform": { + "os": "linux", + "architecture": "amd64" + }, + "credentials": {} + } + } + } + ], + "outputs": { + "taskRunName": { + "type": "string", + "value": "[parameters('taskRunName')]" + } + } +} diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py new file mode 100644 index 00000000000..b6e8f77f451 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only +import os + +class AcrTaskRunCommandsTests(ScenarioTest): + + @ResourceGroupPreparer() + def test_acr_taskrun(self, resource_group): + curr_dir = os.path.dirname(os.path.realpath(__file__)) + self.kwargs.update({ + 'registry_name': self.create_random_name('clireg', 20), + 'taskrun_name': "testTaskRun", + 'rg_loc': 'westus', + 'sku': 'Standard', + 'no_context': '/dev/null', + 'sourceLocation': 'https://github.com/Azure-Samples/acr-build-helloworld-node.git', + 'dockerFilePath': 'Dockerfile', + 'image': 'testtaskrun:v1', + 'tf': os.path.join(curr_dir, 'taskrunquickbuildsample.json').replace('\\', '\\\\'), + }) + + self.cmd('acr create -n {registry_name} -g {rg} -l {rg_loc} --sku {sku}', + checks=[self.check('name', '{registry_name}'), + self.check('location', '{rg_loc}'), + self.check('adminUserEnabled', False), + self.check('sku.name', 'Standard'), + self.check('sku.tier', 'Standard'), + self.check('provisioningState', 'Succeeded')]) + + self.cmd('group deployment create --resource-group {rg} --template-file {tf} --parameters registryName={registry_name} --parameters taskRunName={taskrun_name} --parameters sourceLocation={sourceLocation} --parameters dockerFilePath={dockerFilePath} --parameters image={image} ') + + self.cmd('acr taskrun show --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}', + checks=[self.check('name', '{taskrun_name}'), + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]) + + self.cmd('acr taskrun list --name {registry_name} --resource-group {rg}', + checks=[self.check('[0].name', '{taskrun_name}'), + self.check('[0].provisioningState', 'Succeeded'), + self.check('[0].runRequest.type', 'DockerBuildRequest')]) + + self.cmd('acr taskrun delete --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}') + From ab64ea00fa8d3c1148df9e8f515b34b0287dd85f Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 10:20:43 -0800 Subject: [PATCH 03/27] Update name --- src/azure-cli/azure/cli/command_modules/acr/taskrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index 42bf4239fe7..7d3273e5fa2 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -8,7 +8,7 @@ ) -TASK_NOT_SUPPORTED = 'Task is only supported for managed registries.' +TASKRUN_NOT_SUPPORTED = 'TaskRun is only supported for managed registries.' def acr_taskrun_show(cmd, client, @@ -16,7 +16,7 @@ def acr_taskrun_show(cmd, registry_name, resource_group_name=None): _, resource_group_name = validate_managed_registry( - cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.get(resource_group_name, registry_name, taskrun_name) def acr_taskrun_list(cmd, @@ -25,7 +25,7 @@ def acr_taskrun_list(cmd, resource_group_name=None): _, resource_group_name = validate_managed_registry( - cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.list(resource_group_name, registry_name) def acr_taskrun_delete(cmd, @@ -34,5 +34,5 @@ def acr_taskrun_delete(cmd, registry_name, resource_group_name=None): _, resource_group_name = validate_managed_registry( - cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.delete(resource_group_name, registry_name, taskrun_name) \ No newline at end of file From dbb10b565cfcd5b6472f8b04fbf905097776fc30 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 11:45:19 -0800 Subject: [PATCH 04/27] Add final newline --- src/azure-cli/azure/cli/command_modules/acr/taskrun.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index 7d3273e5fa2..14086735902 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -35,4 +35,5 @@ def acr_taskrun_delete(cmd, resource_group_name=None): _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) - return client.delete(resource_group_name, registry_name, taskrun_name) \ No newline at end of file + return client.delete(resource_group_name, registry_name, taskrun_name) + \ No newline at end of file From 55957bfdc09e40a5f43850fc1aaeab57d6470581 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 12:06:38 -0800 Subject: [PATCH 05/27] Update code style to meet CLI style requirements --- .../azure/cli/command_modules/acr/_format.py | 2 ++ .../azure/cli/command_modules/acr/taskrun.py | 3 ++- .../acr/tests/latest/test_acr_taskrun_commands.py | 13 +++++++------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 640139b205b..e9b13240d0d 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -49,9 +49,11 @@ def replication_output_format(result): def task_output_format(result): return _output_format(result, _task_format_group) + def taskrun_output_format(result): return _output_format(result, _taskrun_format_group) + def build_output_format(result): return _output_format(result, _build_format_group) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index 14086735902..a9cd8094d6e 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -19,6 +19,7 @@ def acr_taskrun_show(cmd, cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.get(resource_group_name, registry_name, taskrun_name) + def acr_taskrun_list(cmd, client, registry_name, @@ -28,6 +29,7 @@ def acr_taskrun_list(cmd, cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.list(resource_group_name, registry_name) + def acr_taskrun_delete(cmd, client, taskrun_name, @@ -36,4 +38,3 @@ def acr_taskrun_delete(cmd, _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return client.delete(resource_group_name, registry_name, taskrun_name) - \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index b6e8f77f451..1eba8afdfe1 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -6,6 +6,7 @@ from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only import os + class AcrTaskRunCommandsTests(ScenarioTest): @ResourceGroupPreparer() @@ -30,18 +31,18 @@ def test_acr_taskrun(self, resource_group): self.check('sku.name', 'Standard'), self.check('sku.tier', 'Standard'), self.check('provisioningState', 'Succeeded')]) - + self.cmd('group deployment create --resource-group {rg} --template-file {tf} --parameters registryName={registry_name} --parameters taskRunName={taskrun_name} --parameters sourceLocation={sourceLocation} --parameters dockerFilePath={dockerFilePath} --parameters image={image} ') self.cmd('acr taskrun show --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}', - checks=[self.check('name', '{taskrun_name}'), - self.check('provisioningState', 'Succeeded'), - self.check('runRequest.type', 'DockerBuildRequest')]) + checks=[self.check('name', '{taskrun_name}'), + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]) self.cmd('acr taskrun list --name {registry_name} --resource-group {rg}', - checks=[self.check('[0].name', '{taskrun_name}'), + checks=[self.check('[0].name', '{taskrun_name}'), self.check('[0].provisioningState', 'Succeeded'), self.check('[0].runRequest.type', 'DockerBuildRequest')]) - + self.cmd('acr taskrun delete --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}') From 5aa473fa3f3bc5291ce7f858d4aaa1767f10ba07 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 13:01:33 -0800 Subject: [PATCH 06/27] Update style --- src/azure-cli/azure/cli/command_modules/acr/_format.py | 2 ++ src/azure-cli/azure/cli/command_modules/acr/taskrun.py | 1 + .../acr/tests/latest/test_acr_taskrun_commands.py | 9 ++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index e9b13240d0d..f5174422c60 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -187,6 +187,7 @@ def _task_format_group(item): ('TRIGGERS', _get_triggers(item)) ]) + def _taskrun_format_group(item): return OrderedDict([ ('NAME', _get_value(item, 'name')), @@ -201,6 +202,7 @@ def _taskrun_format_group(item): ('DURATION', _get_duration(_get_value(item, 'startTime'), _get_value(item, 'finishTime'))) ]) + def _build_format_group(item): return OrderedDict([ ('BUILD ID', _get_value(item, 'buildId')), diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index a9cd8094d6e..bb238df139c 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -10,6 +10,7 @@ TASKRUN_NOT_SUPPORTED = 'TaskRun is only supported for managed registries.' + def acr_taskrun_show(cmd, client, taskrun_name, diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index 1eba8afdfe1..52e89489163 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -36,13 +36,12 @@ def test_acr_taskrun(self, resource_group): self.cmd('acr taskrun show --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}', checks=[self.check('name', '{taskrun_name}'), - self.check('provisioningState', 'Succeeded'), - self.check('runRequest.type', 'DockerBuildRequest')]) + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]) self.cmd('acr taskrun list --name {registry_name} --resource-group {rg}', checks=[self.check('[0].name', '{taskrun_name}'), - self.check('[0].provisioningState', 'Succeeded'), - self.check('[0].runRequest.type', 'DockerBuildRequest')]) + self.check('[0].provisioningState', 'Succeeded'), + self.check('[0].runRequest.type', 'DockerBuildRequest')]) self.cmd('acr taskrun delete --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}') - From 74f4618ae0405e49f7aa318afb7777f0e74cd97b Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 13:21:38 -0800 Subject: [PATCH 07/27] Add help for taskrun --- .../azure/cli/command_modules/acr/_help.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index 5bc89035086..dc9877496eb 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -894,6 +894,33 @@ az acr task update-run -r MyRegistry --run-id runId --no-archive false """ +helps['acr taskrun delete'] = """ +type: command +short-summary: Delete a taskrun from an Azure Container Registry. +examples: + - name: Delete a taskrun from an Azure Container Registry. + text: > + az acr taskrun delete -n MyRegistry --taskrun-name MyTaskRun -g MyResourceGroup +""" + +helps['acr taskrun list'] = """ +type: command +short-summary: List the taskruns for an Azure Container Registry. +examples: + - name: List taskruns and show the results in a table. + text: > + az acr taskrun list -n MyRegistry -g MyResourceGroup -o table +""" + +helps['acr taskrun show'] = """ +type: command +short-summary: Get the properties of a named taskrun for an Azure Container Registry. +examples: + - name: Get the properties of a taskrun, displaying the results in a table. + text: > + az acr taskrun show -n MyRegistry --taskrun-name MyTaskRun -o table +""" + helps['acr token'] = """ type: group short-summary: Manage tokens for an Azure Container Registry. From 961c895f496f30f35ac040987347f95d9a59a261 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 13:39:12 -0800 Subject: [PATCH 08/27] Update arguments --- .../cli/command_modules/acr/_constants.py | 2 + .../azure/cli/command_modules/acr/_help.py | 6 +- .../azure/cli/command_modules/acr/_params.py | 7 +- .../latest/recordings/test_acr_taskrun.yaml | 126 +++++++++--------- .../tests/latest/test_acr_taskrun_commands.py | 6 +- 5 files changed, 77 insertions(+), 70 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_constants.py b/src/azure-cli/azure/cli/command_modules/acr/_constants.py index eeca1b69d18..dd39ee9601f 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_constants.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_constants.py @@ -13,6 +13,8 @@ TASK_VALID_VSTS_URLS = ['visualstudio.com', 'dev.azure.com'] TASK_RESOURCE_ID_TEMPLATE = '/subscriptions/{sub_id}/resourceGroups/{rg}/providers/Microsoft.ContainerRegistry/registries/{reg}/tasks/{name}' +TASKRUN_RESOURCE_TYPE = REGISTRY_RESOURCE_TYPE + '/taskruns' + ACR_TASK_YAML_DEFAULT_NAME = 'acb.yaml' ACR_CACHED_BUILDER_IMAGES = ('cloudfoundry/cnb:bionic',) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index dc9877496eb..95c793d3c70 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -900,7 +900,7 @@ examples: - name: Delete a taskrun from an Azure Container Registry. text: > - az acr taskrun delete -n MyRegistry --taskrun-name MyTaskRun -g MyResourceGroup + az acr taskrun delete -r MyRegistry -n MyTaskRun -g MyResourceGroup """ helps['acr taskrun list'] = """ @@ -909,7 +909,7 @@ examples: - name: List taskruns and show the results in a table. text: > - az acr taskrun list -n MyRegistry -g MyResourceGroup -o table + az acr taskrun list -r MyRegistry -g MyResourceGroup -o table """ helps['acr taskrun show'] = """ @@ -918,7 +918,7 @@ examples: - name: Get the properties of a taskrun, displaying the results in a table. text: > - az acr taskrun show -n MyRegistry --taskrun-name MyTaskRun -o table + az acr taskrun show -r MyRegistry -n MyTaskRun -o table """ helps['acr token'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/acr/_params.py b/src/azure-cli/azure/cli/command_modules/acr/_params.py index 7216b10e80f..0b504639e7d 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_params.py @@ -22,7 +22,8 @@ REGISTRY_RESOURCE_TYPE, WEBHOOK_RESOURCE_TYPE, REPLICATION_RESOURCE_TYPE, - TASK_RESOURCE_TYPE + TASK_RESOURCE_TYPE, + TASKRUN_RESOURCE_TYPE ) from ._validators import ( validate_headers, @@ -235,6 +236,10 @@ def load_arguments(self, _): # pylint: disable=too-many-statements c.argument('timer_name', help="The name of the timer trigger.", required=True) c.argument('timer_schedule', options_list=['--schedule'], help="The schedule of the timer trigger represented as a cron expression.") c.argument('enabled', help="Indicates whether the timer trigger is enabled.", arg_type=get_three_state_flag()) + + with self.argument_context('acr taskrun') as c: + c.argument('registry_name', options_list=['--registry', '-r']) + c.argument('taskrun_name', options_list=['--name', '-n'], help='The name of the taskrun.', completer=get_resource_name_completion_list(TASKRUN_RESOURCE_TYPE)) with self.argument_context('acr helm') as c: c.argument('resource_group_name', deprecate_info=c.deprecate(hide=True)) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 398ebd04cce..7adaf1d4983 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:15:18 GMT + - Fri, 17 Jan 2020 21:34:02 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AnUTUJHADktHhcTY9VSILCE; expires=Sun, 16-Feb-2020 01:15:19 GMT; path=/; + - fpc=AoMpnAgPWCZBgtNCDtV532w; expires=Sun, 16-Feb-2020 21:34:02 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH84GLMMmCvueSJvO2E9XWt4VAFI6UOuJoRdf-3O2LWpZ1YoBNjmrvAOHsGynJ8FnVzQ22pxd9tP-zvKCbV6RSfvtIAlgpZHjUkOJqiRgEUIbN_DvJn6-9Dyqtf-G14F9LBkPYep6z-b9vsr0wa1Ln0rWmXFSbiumHn9K1GCxnX6XggAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8WT84YamonKhGXDyCYnugEIOEG6Eze8a9kvcvJ9NQa_iuPwKMggXfw2TjRbRAu0b0yrAgrQ1bx3StvJvWbAk708BLX8hT0uMDM4UvxT-BGq3wCvZpufjPrsYWOi7uB9Hf_rmpeOz3k2k2hC0KFxif4mvL8JGmw9hEL-tIqY1lgZkgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -85,7 +85,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -94,7 +94,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:15:26 GMT + - Fri, 17 Jan 2020 21:34:16 GMT expires: - '-1' pragma: @@ -110,7 +110,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -154,13 +154,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:15:26 GMT + - Fri, 17 Jan 2020 21:34:17 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AnwM3UUfJM9Ks4nZZSihHmo; expires=Sun, 16-Feb-2020 01:15:26 GMT; path=/; + - fpc=Au_QJg7Kc4ZOiFUvdoe2FiI; expires=Sun, 16-Feb-2020 21:34:17 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88KDpuPPKSP2nPOslE7qDHiprXPYWcOKBtHw9eE5H4NgeD_Yq3f91V7_gQKcxc-Ezu629nULx1N7uHTWyQM-Jw1ENm4GCZHXz8oTV4SAE8QakqPP52vP2TDWow0yLl9Pfsdoycbcw4KNKe_I2sH4PYy0jZ92LWVOLE8DJlyauOoAgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vSzgEHDcXR8xy1c8XC71AVaCRzC-4v_vzJ-0aB0zn5wxw4IADSLtajP2wnySQlafrRX6_W79d9wmOYSbd2ppe8pBcv_2y0N_HWrN002yNQPAHmZFP1sHVrcUar4U7B0GsrsQeOwzp2JtNxKDzPTIurTBUy4eXqY3mef3MQEaBKYgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -222,10 +222,10 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-17T01:15:29.0660278Z","duration":"PT0.7641576S","correlationId":"54b797e8-f2e5-4eeb-8979-7dfe2a2715ee","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-17T21:34:22.6328725Z","duration":"PT1.9976875S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223831571757467?api-version=2019-07-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223100248424844?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -233,7 +233,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:15:28 GMT + - Fri, 17 Jan 2020 21:34:23 GMT expires: - '-1' pragma: @@ -243,7 +243,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -287,13 +287,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:15:59 GMT + - Fri, 17 Jan 2020 21:34:53 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AmBT7s7hr7FDgm_3Iyghx0Y; expires=Sun, 16-Feb-2020 01:15:59 GMT; path=/; + - fpc=Atb6Oilm_NlFlQJ7a5GFJQY; expires=Sun, 16-Feb-2020 21:34:53 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Rj9JDPErOwWWrSmK7qF7quOKpwyNNQtvF1gRwko-v5EzVjlSJfFVABuXLpjVHL7G-__IwkA7ctZmvvT3-Dd16z_xZ9ovRt3OlZmKaFo1ACJMvDJ0Qa8ho_2lxWvZa0jTpYGQP0sqGUrYUhtDKu6Vb56afK8cXzaxMEgu29SG2BYgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NRZlm9fVnYp4FyFALmPxB3NoYW4ZdkZrtdjPHy_HzEcxcrsr8QVSx8bFGziydLmVVheAk9FDx_r34MIsFf51a1qSKkVGat-rzLujlgB9zRKzmuDAVG_fj7ZvZ6f6jqVsNydNrM33Vv8HMOlv3XsjaqDd1CgQzit2VOgtDzMWd4ggAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -324,7 +324,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223831571757467?api-version=2019-07-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223100248424844?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -336,7 +336,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:01 GMT + - Fri, 17 Jan 2020 21:34:54 GMT expires: - '-1' pragma: @@ -390,13 +390,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:30 GMT + - Fri, 17 Jan 2020 21:35:24 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AqcTCozL47FMhmCOjhoPhfM; expires=Sun, 16-Feb-2020 01:16:31 GMT; path=/; + - fpc=AgMmjEZ-eQJMk2yx8ncVDZ4; expires=Sun, 16-Feb-2020 21:35:24 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aY37J5f5mokBr3IPBDMfHFrAV6rf-Wmqr2x0IpFNnRKDk50wJhV01OvIcfYTTssld-P7rSgGyZ2V7HQKJ65-eQMsPOdj0SL47lq05arJ_CWSUOfEir7Ndsm0uG2qxYSx4RwvS3iHvtedjwkwKIgfL7o8WQlYi-PyHXjxeVO3YqggAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VsmwNdW6qpQjx_IQr3o1gyapR_dII-ySTai9_C6OzUUBvOCIuUnhQDsTFpQWGdlkM2d0pqtbLQfduZk-0SdUAUVSJLM7JtihLoYkfaTS4gR4NFMDww01DGOWvAGhGT6c3QKPJD8Y-vCdKvq7AcH9P0p53SL9dgb22cguaXrigSkgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -427,7 +427,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223831571757467?api-version=2019-07-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223100248424844?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -439,7 +439,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:31 GMT + - Fri, 17 Jan 2020 21:35:24 GMT expires: - '-1' pragma: @@ -493,13 +493,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:31 GMT + - Fri, 17 Jan 2020 21:35:25 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aj33PvDRRrtEqoiXpDywPdo; expires=Sun, 16-Feb-2020 01:16:31 GMT; path=/; + - fpc=AmB2BbQO6T1GjijCMnaM180; expires=Sun, 16-Feb-2020 21:35:25 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8KhDsCTNNo2EoOJkts3FMk9t6skG2UDqk6l1KlUppEqB2JmH8w7bXnKZ4h8YNSw41QWj14P_IdtEjGTZtp1H4ytZhR59xXnoitJd6TDPgBH6Osi7JXIq5GB71iAa3NM-aPOIptuapv2d-uVCIkDAxhcDv4bsIPJNpZ04r_ka1C9ogAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8e0SweSOI9YuatMG_Fi3bE5-3jBL7VeqD5oE22-ezox6ZrVunFnnAhfCQmwTa5cA3tWSdkq-FAah2GVZLPLe0H4EsB0nwWV1kwyZ6dmzzROYuD4RHHljMEhOjwmlxpq4OqFf7xhDddZKzuU3mIXaM7VqcNaUxmQvhjofFHNDoCWwgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -533,7 +533,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-17T01:16:17.4804727Z","duration":"PT49.1786025S","correlationId":"54b797e8-f2e5-4eeb-8979-7dfe2a2715ee","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-17T21:35:11.1264416Z","duration":"PT50.4912566S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache @@ -542,7 +542,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:32 GMT + - Fri, 17 Jan 2020 21:35:24 GMT expires: - '-1' pragma: @@ -596,13 +596,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:32 GMT + - Fri, 17 Jan 2020 21:35:25 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ao-0SnR1h4RMuNNN1SLdepU; expires=Sun, 16-Feb-2020 01:16:33 GMT; path=/; + - fpc=AoDIj1Z5Ud9KuEbLjInUo9Y; expires=Sun, 16-Feb-2020 21:35:26 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rkv6HvARS6e3EKKL2YRL8i0NTR68f6TkeFYxqFognhOP_l1GXT7a08VY3bUiVZrpHZNvUrjliHZ5h_BIf7WdpXCTgH7mE0fZJFwqjfh8DZQcN_f8mH4m9ci10wSb7JWaxf6eSfNBqGHF7B8aXR9o2yRbcdA2kJy-J74ogETDel0gAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88qZa9Cpgc4nrbeS45Mh2WSCAGuT_BVncMytU7LhQ7AdpztcnXGqHFk5K3R52J_saB5XYqFTgefkBJdOQ3GhX6xwcaO7pUvz15q6zvWuJvmFrXgIyKJ-MrElDV4L7tqm15Z8Yt7aLGMTKYi5NQHLF6lAIM3jTLGJ1GgFG86kvi9YgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -627,7 +627,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --taskrun-name --resource-group + - -r -n -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -637,7 +637,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -646,7 +646,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:34 GMT + - Fri, 17 Jan 2020 21:35:26 GMT expires: - '-1' pragma: @@ -704,13 +704,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:33 GMT + - Fri, 17 Jan 2020 21:35:26 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ah2exWkW299CtDxWv0LC4_4; expires=Sun, 16-Feb-2020 01:16:34 GMT; path=/; + - fpc=AtXFf9BHC9pEu18eqph0shQ; expires=Sun, 16-Feb-2020 21:35:27 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8_ubPgcf9xJrwA490sxQCFAR_0f-t8A_QX8wEHrVhyfT-0BmNHJJpHlY0M2wqgqWwEgEryvUP5kCQxGlc5oWXhu1s7_zsZaPMdpT4yRQEVQfr7br-qAKC3S9MlXH8lj7Dkd_bndawHL-CANZKAnL359TJYhbd8fclsK2pIYMFP9MgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8PYNcucWewm6QwxOx7n1XpkMI3hx0-k7-Y3IbU1zlaW0_5DPnAPE7I1VEFPNCGtfav3YFAjYLbKyEgYrymtYaG_mJ_wh3xtZgAGjyYcQoOIXqvMsHLRz3fnHMgmgeacrdnGLQDMXnYLEZ6zQmR5Eq5uXJbh_JDs8fyAUev-fE4a4gAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -735,7 +735,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --taskrun-name --resource-group + - -r -n -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -745,7 +745,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T01:16:15+00:00","runType":"QuickRun","createTime":"2020-01-17T01:15:46.6809011+00:00","startTime":"2020-01-17T01:15:47.1555629+00:00","finishTime":"2020-01-17T01:16:15.4582532+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:0a0a8fa2530ea286e41c8d52943fa1b994b24f80c8c555bed6065d52d6b547cb"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T21:34:55+00:00","runType":"QuickRun","createTime":"2020-01-17T21:34:29.6746591+00:00","startTime":"2020-01-17T21:34:29.7849554+00:00","finishTime":"2020-01-17T21:34:55.3741474+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:6f5f8bd08aad1a2dcf353f15591f59f0dd13cd648d143236f935671ed76d9e43"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache @@ -754,7 +754,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:35 GMT + - Fri, 17 Jan 2020 21:35:28 GMT expires: - '-1' pragma: @@ -812,13 +812,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:35 GMT + - Fri, 17 Jan 2020 21:35:29 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Am8H1incARFNhBCfHc_SuIE; expires=Sun, 16-Feb-2020 01:16:36 GMT; path=/; + - fpc=AgohURN5nZZOjPxOBK5ysVk; expires=Sun, 16-Feb-2020 21:35:30 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8klyBBob7_5b56B1K_LsEAwfsZpQfnmA30w6uZBSstsfckDCXPKOQUmcxdVOlih7GTNBY7mvNn9fHlOH_tU31SV62d2sHXL7vGspWqD18FL40esQn8IJHM_o50xxowghUzD_OlZzea25hyRviJGu8jBECYWvAhRHafykOBXv-t5ggAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8sUP9loaWA0VrbmmD8RYgYGsVwDv6wRH3fxKkGg_bCs44UTOkbhvaGh4CEI2LtdSXyct8e7XujeU5LVD0dN5sn-yf38HWKmiUYGHX1tJnOHcAi3bQ6Fc99DMXQit6iMHDNDjr12BrkarHXyRa5u6SdmVN-JBfBw7ZazFt8vIKshIgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -843,7 +843,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group + - -r -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -853,7 +853,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -862,7 +862,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:37 GMT + - Fri, 17 Jan 2020 21:35:33 GMT expires: - '-1' pragma: @@ -920,13 +920,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:37 GMT + - Fri, 17 Jan 2020 21:35:32 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AkeOM-0WvapNvaql2rXpW94; expires=Sun, 16-Feb-2020 01:16:37 GMT; path=/; + - fpc=Ah1TqYpuaRJNvI3VA6mNETE; expires=Sun, 16-Feb-2020 21:35:33 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ps0WLrYgtPXSVB2NN9t-QSHs_lgNM7SVwyuQ4Zvij1FIs1lb3qbfgcp1uTgMu8caGZBjYJMt6MMhqjpJqcHAqJlzD0ykjIAr56Vf4Etce9uho3zEc_aZLV0wJ9pc_eC4iyeqdxIH4qIRfYUMGm10mxCvGfeV17-s6gkWG12v0BQgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8fMeqHnmIPNVKSGihUyZouXhIYE0Ank0JyqZUK3V0JTLMQMGL3ZgOzsJcE82Tgx1F31SVO595HmM2tmA4TSg4DcJyhEeEeo6u_WAp_pMJ4cX5tKEqwHXDiH7tBz1-uPFAWnNvFzNkcM0SXMpI0tH5666UtLY8b4Hav3l3DcldelcgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -951,7 +951,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group + - -r -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -961,7 +961,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T01:16:15+00:00","runType":"QuickRun","createTime":"2020-01-17T01:15:46.6809011+00:00","startTime":"2020-01-17T01:15:47.1555629+00:00","finishTime":"2020-01-17T01:16:15.4582532+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:0a0a8fa2530ea286e41c8d52943fa1b994b24f80c8c555bed6065d52d6b547cb"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T21:34:55+00:00","runType":"QuickRun","createTime":"2020-01-17T21:34:29.6746591+00:00","startTime":"2020-01-17T21:34:29.7849554+00:00","finishTime":"2020-01-17T21:34:55.3741474+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:6f5f8bd08aad1a2dcf353f15591f59f0dd13cd648d143236f935671ed76d9e43"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' headers: cache-control: - no-cache @@ -970,7 +970,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:38 GMT + - Fri, 17 Jan 2020 21:35:35 GMT expires: - '-1' pragma: @@ -1028,13 +1028,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:38 GMT + - Fri, 17 Jan 2020 21:35:35 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AuuXvTvHqbpMi0ZJucdNrrE; expires=Sun, 16-Feb-2020 01:16:39 GMT; path=/; + - fpc=ArAlBOKBMXNJi0iG-8wfYyo; expires=Sun, 16-Feb-2020 21:35:36 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8y0u4Ypv8C95y6VdG3-l3hagcT72RLvUwSQ5Sdp_EKIU3eQ8pmNLszxZT53IwoCDlux1mI-I3giblY8yDwBiM_JdCR1UHoiWgod6IP43eIR6jUqSdr9Zi5_cp7nCzEgKlLqoyqIOil5aSwL8U4sf76wJdwZf9O_mXfstIyVOHqy4gAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ehSDRgKDlXdk7YVPs1mkk8xAxaBoSTvRh3pZbSezZ3BeGOP0ZegQa0SY94WL8C0fZRsmjfeguCKcid1uWXwDBc9tld3P-IpjojdILB644Ubx88Rq7Un4tYPhXw17EcKq6ll-MYohNLlLoMnc3QqmXjCf3QQwZP5-XUGBNspyKHEgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -1059,7 +1059,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --taskrun-name --resource-group + - -r -n -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -1069,7 +1069,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T01:15:23.8371192Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T01:15:25.4133575+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1078,7 +1078,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:40 GMT + - Fri, 17 Jan 2020 21:35:37 GMT expires: - '-1' pragma: @@ -1136,13 +1136,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 01:16:40 GMT + - Fri, 17 Jan 2020 21:35:37 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AvvOgq0BN1REkYRnrjnllqE; expires=Sun, 16-Feb-2020 01:16:40 GMT; path=/; + - fpc=Ap5nzE3HU0BIroESYH4z3Hs; expires=Sun, 16-Feb-2020 21:35:38 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CGIuff0mtIRVvSGFsi6O_8whzYryHm-JRJe42R-W201SNta4m4_CKWs-3cQM1Y4zvJ9vwbAv_XZbch0J6EcYyK-JrGb9dS2Kza4kLmPp4eMzS5Jd9U_iVgxs-gPwH-597GA4HO9fqfWrxJDeD8HXjS32j1qJIhIHJjC3leiOgysgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH85JEjoR96cazLc5AihqBc93npxppZmm1ssqEqtM6FarJWLh5cHyfNiWfAKEBSswg2LEdDJfomHMSNZ8EQlpsxsGtWrhWI3MvJF0axyxvIPQ0NEq1HpQeIzUx3K34c7HgH-dkV2r__az9malIU--uCKrMpyB9CxZvmt8rq3YE1RmogAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -1169,7 +1169,7 @@ interactions: Content-Length: - '0' ParameterSetName: - - --name --taskrun-name --resource-group + - -r -n -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -1186,7 +1186,7 @@ interactions: content-length: - '0' date: - - Fri, 17 Jan 2020 01:16:42 GMT + - Fri, 17 Jan 2020 21:35:42 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index 52e89489163..afac8871e60 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -34,14 +34,14 @@ def test_acr_taskrun(self, resource_group): self.cmd('group deployment create --resource-group {rg} --template-file {tf} --parameters registryName={registry_name} --parameters taskRunName={taskrun_name} --parameters sourceLocation={sourceLocation} --parameters dockerFilePath={dockerFilePath} --parameters image={image} ') - self.cmd('acr taskrun show --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}', + self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', checks=[self.check('name', '{taskrun_name}'), self.check('provisioningState', 'Succeeded'), self.check('runRequest.type', 'DockerBuildRequest')]) - self.cmd('acr taskrun list --name {registry_name} --resource-group {rg}', + self.cmd('acr taskrun list -r {registry_name} -g {rg}', checks=[self.check('[0].name', '{taskrun_name}'), self.check('[0].provisioningState', 'Succeeded'), self.check('[0].runRequest.type', 'DockerBuildRequest')]) - self.cmd('acr taskrun delete --name {registry_name} --taskrun-name {taskrun_name} --resource-group {rg}') + self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg}') From 72b7d801060effacc304ada1b93c5a0fc0c01d41 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 13:46:37 -0800 Subject: [PATCH 09/27] Add help for acr taskrun --- src/azure-cli/azure/cli/command_modules/acr/_help.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index 95c793d3c70..d3faafdd644 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -894,6 +894,12 @@ az acr task update-run -r MyRegistry --run-id runId --no-archive false """ +helps['acr taskrun'] = """ +type: group +short-summary: Manage taskruns using Azure Container Registries. +""" + + helps['acr taskrun delete'] = """ type: command short-summary: Delete a taskrun from an Azure Container Registry. From f019cc24527daadaa40e557e1ab201271fb314f3 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 13:57:10 -0800 Subject: [PATCH 10/27] Remove white space --- src/azure-cli/azure/cli/command_modules/acr/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_params.py b/src/azure-cli/azure/cli/command_modules/acr/_params.py index 0b504639e7d..88de5dec4e1 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_params.py @@ -236,7 +236,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements c.argument('timer_name', help="The name of the timer trigger.", required=True) c.argument('timer_schedule', options_list=['--schedule'], help="The schedule of the timer trigger represented as a cron expression.") c.argument('enabled', help="Indicates whether the timer trigger is enabled.", arg_type=get_three_state_flag()) - + with self.argument_context('acr taskrun') as c: c.argument('registry_name', options_list=['--registry', '-r']) c.argument('taskrun_name', options_list=['--name', '-n'], help='The name of the taskrun.', completer=get_resource_name_completion_list(TASKRUN_RESOURCE_TYPE)) From 723c056ec8c7527e133b11f030e04c291197ae8c Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 15:07:12 -0800 Subject: [PATCH 11/27] update mode in record file --- .../acr/tests/latest/recordings/test_acr_taskrun.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 7adaf1d4983..3ac749cf725 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -195,8 +195,7 @@ interactions: "value": "[parameters(''taskRunName'')]"}}}, "parameters": {"registryName": {"value": "clireg000002"}, "taskRunName": {"value": "testTaskRun"}, "sourceLocation": {"value": "https://github.com/Azure-Samples/acr-build-helloworld-node.git"}, - "dockerFilePath": {"value": "Dockerfile"}, "image": {"value": "testtaskrun:v1"}}, - "mode": "Incremental"}}' + "dockerFilePath": {"value": "Dockerfile"}, "image": {"value": "testtaskrun:v1"}}}' headers: Accept: - application/json @@ -222,7 +221,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-17T21:34:22.6328725Z","duration":"PT1.9976875S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"provisioningState":"Accepted","timestamp":"2020-01-17T21:34:22.6328725Z","duration":"PT1.9976875S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223100248424844?api-version=2019-07-01 @@ -533,7 +532,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-17T21:35:11.1264416Z","duration":"PT50.4912566S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"provisioningState":"Succeeded","timestamp":"2020-01-17T21:35:11.1264416Z","duration":"PT50.4912566S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache From f100e1b0aa2446be92e478b675f9e35b9d2dd092 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 16:21:16 -0800 Subject: [PATCH 12/27] Update taskrun record file --- .../latest/recordings/test_acr_taskrun.yaml | 139 +++++++++--------- 1 file changed, 70 insertions(+), 69 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 3ac749cf725..57ccebcc1e7 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:02 GMT + - Sat, 18 Jan 2020 00:19:12 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoMpnAgPWCZBgtNCDtV532w; expires=Sun, 16-Feb-2020 21:34:02 GMT; path=/; + - fpc=AtLLrgqbD5RCr-dHadnygws; expires=Mon, 17-Feb-2020 00:19:13 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8WT84YamonKhGXDyCYnugEIOEG6Eze8a9kvcvJ9NQa_iuPwKMggXfw2TjRbRAu0b0yrAgrQ1bx3StvJvWbAk708BLX8hT0uMDM4UvxT-BGq3wCvZpufjPrsYWOi7uB9Hf_rmpeOz3k2k2hC0KFxif4mvL8JGmw9hEL-tIqY1lgZkgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ufDvGVEdrAFDAf2lA3PkMvFu20NTTts5ufe6gy1oijKDmHOreiMIHelFwOpoicTgqA9hu0etzsRrsiftqm__-Fb_hX8W4Q3VqNoVc41wAOJCOFW6kWDRimIG4w8WrUu_sxCHjZn8ZOlduXb273BV-mZ_02DbsjcLIma4YOztfAIgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -85,7 +85,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -94,7 +94,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:16 GMT + - Sat, 18 Jan 2020 00:19:20 GMT expires: - '-1' pragma: @@ -154,13 +154,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:17 GMT + - Sat, 18 Jan 2020 00:19:20 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Au_QJg7Kc4ZOiFUvdoe2FiI; expires=Sun, 16-Feb-2020 21:34:17 GMT; path=/; + - fpc=AuQOd9lEWfhJiXZ772sIC4c; expires=Mon, 17-Feb-2020 00:19:21 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vSzgEHDcXR8xy1c8XC71AVaCRzC-4v_vzJ-0aB0zn5wxw4IADSLtajP2wnySQlafrRX6_W79d9wmOYSbd2ppe8pBcv_2y0N_HWrN002yNQPAHmZFP1sHVrcUar4U7B0GsrsQeOwzp2JtNxKDzPTIurTBUy4eXqY3mef3MQEaBKYgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s7N4TY_w1rAfMD_MKaVdB1A4N_VwWAmJ8M_BhzorCmHkjwxlsisLQdfaKJskX7pI2EC0X1EeqN1kqhoshR9qu-CSjEFtdW9MCC3_f9CtVXb2PAMzU4wKhrJO5sQdYa0XANaHTRkVfj43NAH9q81Kr2Aet7XqzomGgbOdXZ_fXmMgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -169,7 +169,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -195,7 +195,8 @@ interactions: "value": "[parameters(''taskRunName'')]"}}}, "parameters": {"registryName": {"value": "clireg000002"}, "taskRunName": {"value": "testTaskRun"}, "sourceLocation": {"value": "https://github.com/Azure-Samples/acr-build-helloworld-node.git"}, - "dockerFilePath": {"value": "Dockerfile"}, "image": {"value": "testtaskrun:v1"}}}' + "dockerFilePath": {"value": "Dockerfile"}, "image": {"value": "testtaskrun:v1"}}, + "mode": "Incremental"}}' headers: Accept: - application/json @@ -221,10 +222,10 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"provisioningState":"Accepted","timestamp":"2020-01-17T21:34:22.6328725Z","duration":"PT1.9976875S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-18T00:19:24.6500701Z","duration":"PT1.5516917S","correlationId":"b6ecca19-0463-456a-a578-9c0d609ddfac","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223100248424844?api-version=2019-07-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223001223792518?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -232,7 +233,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:23 GMT + - Sat, 18 Jan 2020 00:19:24 GMT expires: - '-1' pragma: @@ -242,7 +243,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -286,13 +287,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:53 GMT + - Sat, 18 Jan 2020 00:19:54 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Atb6Oilm_NlFlQJ7a5GFJQY; expires=Sun, 16-Feb-2020 21:34:53 GMT; path=/; + - fpc=AqtwYfV1A8lGiypnXNcXBOU; expires=Mon, 17-Feb-2020 00:19:55 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NRZlm9fVnYp4FyFALmPxB3NoYW4ZdkZrtdjPHy_HzEcxcrsr8QVSx8bFGziydLmVVheAk9FDx_r34MIsFf51a1qSKkVGat-rzLujlgB9zRKzmuDAVG_fj7ZvZ6f6jqVsNydNrM33Vv8HMOlv3XsjaqDd1CgQzit2VOgtDzMWd4ggAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8kkIWHW7APHnnxKYmRyeeSrHizcYoexAsZ_mt1WZqh4kw7kE5Vfhb383mPYaunJUDxH0uRIo-u7cD4n9H6TZ35KCjzmFVFvkYr3wRYPG28CwhI7A-l6urRxpQtsdwc-vEYjlS2m20Sk-uuJeSJA9qW4m6_HQDhG1PWkWWm59A5GUgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -301,7 +302,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -323,7 +324,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223100248424844?api-version=2019-07-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223001223792518?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -335,7 +336,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:34:54 GMT + - Sat, 18 Jan 2020 00:19:57 GMT expires: - '-1' pragma: @@ -389,13 +390,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:24 GMT + - Sat, 18 Jan 2020 00:20:27 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AgMmjEZ-eQJMk2yx8ncVDZ4; expires=Sun, 16-Feb-2020 21:35:24 GMT; path=/; + - fpc=AqFh_EOde2xOnjbdybOmncY; expires=Mon, 17-Feb-2020 00:20:27 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VsmwNdW6qpQjx_IQr3o1gyapR_dII-ySTai9_C6OzUUBvOCIuUnhQDsTFpQWGdlkM2d0pqtbLQfduZk-0SdUAUVSJLM7JtihLoYkfaTS4gR4NFMDww01DGOWvAGhGT6c3QKPJD8Y-vCdKvq7AcH9P0p53SL9dgb22cguaXrigSkgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8a7Xv9XnUjIPBQ23A1y0hCULLlZUlRCpBjo7-PBiphZAqwXWdUtcxNGOwN-hyS_10_yTpZ1_Push0vvr0T1xvFUs1M26qYMvI3Uk8S8IIiEBy9-pxeVTeD_HpCToiFL9ex84uasJ7ApLqit4RDMJjeOmVB9Tazrc5wNem1wknFhIgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -404,7 +405,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -426,7 +427,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223100248424844?api-version=2019-07-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223001223792518?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -438,7 +439,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:24 GMT + - Sat, 18 Jan 2020 00:20:26 GMT expires: - '-1' pragma: @@ -492,13 +493,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:25 GMT + - Sat, 18 Jan 2020 00:20:27 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AmB2BbQO6T1GjijCMnaM180; expires=Sun, 16-Feb-2020 21:35:25 GMT; path=/; + - fpc=Ajr5KroJ4mlEoZHW9K7u4v4; expires=Mon, 17-Feb-2020 00:20:27 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8e0SweSOI9YuatMG_Fi3bE5-3jBL7VeqD5oE22-ezox6ZrVunFnnAhfCQmwTa5cA3tWSdkq-FAah2GVZLPLe0H4EsB0nwWV1kwyZ6dmzzROYuD4RHHljMEhOjwmlxpq4OqFf7xhDddZKzuU3mIXaM7VqcNaUxmQvhjofFHNDoCWwgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZIQ7ZgHHdZM6YA3u6vU65IJWtbidg-nEzfcvlbuJ-ZnbIgyBnFdKh_Wdp-g-ouqrzQBnCe6ZvFQNL1lsAvA2WQAvdQSj9xMTBP-WhG58Q3unpJ0cBXwVVt4xSwwpiVkVn4ZbChZPfj7InVStFT1KHnRd-_ZBtXpKAirzZbdSf6AgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -507,7 +508,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -532,16 +533,16 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"provisioningState":"Succeeded","timestamp":"2020-01-17T21:35:11.1264416Z","duration":"PT50.4912566S","correlationId":"d586c269-7740-4c7b-964b-49d21b1d7ddd","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-18T00:20:14.0635814Z","duration":"PT50.965203S","correlationId":"b6ecca19-0463-456a-a578-9c0d609ddfac","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache content-length: - - '1401' + - '1400' content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:24 GMT + - Sat, 18 Jan 2020 00:20:27 GMT expires: - '-1' pragma: @@ -595,13 +596,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:25 GMT + - Sat, 18 Jan 2020 00:20:28 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoDIj1Z5Ud9KuEbLjInUo9Y; expires=Sun, 16-Feb-2020 21:35:26 GMT; path=/; + - fpc=AmA3UqZu-CZDmvUYHc8vHAI; expires=Mon, 17-Feb-2020 00:20:29 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88qZa9Cpgc4nrbeS45Mh2WSCAGuT_BVncMytU7LhQ7AdpztcnXGqHFk5K3R52J_saB5XYqFTgefkBJdOQ3GhX6xwcaO7pUvz15q6zvWuJvmFrXgIyKJ-MrElDV4L7tqm15Z8Yt7aLGMTKYi5NQHLF6lAIM3jTLGJ1GgFG86kvi9YgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s1JbcKp8zGTLX9tTsUPiAgdbQk4jC25XCqC7ML4Ffn6EeX8K3CxCO9CG4af1V27Ir2z4G9JV3N71DU9DWgCdohEt_5xgmDLcNoj15uokOfk1vPNN8vWB9km6rawh4CSkMNkFplqnmLnzenNRofZ07bt34Vny5Hk7YrElfOm2ERkgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -610,7 +611,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -636,7 +637,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -645,7 +646,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:26 GMT + - Sat, 18 Jan 2020 00:20:31 GMT expires: - '-1' pragma: @@ -703,13 +704,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:26 GMT + - Sat, 18 Jan 2020 00:20:31 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AtXFf9BHC9pEu18eqph0shQ; expires=Sun, 16-Feb-2020 21:35:27 GMT; path=/; + - fpc=AnxXTKcx_aFKjT7KwkrQCyQ; expires=Mon, 17-Feb-2020 00:20:31 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8PYNcucWewm6QwxOx7n1XpkMI3hx0-k7-Y3IbU1zlaW0_5DPnAPE7I1VEFPNCGtfav3YFAjYLbKyEgYrymtYaG_mJ_wh3xtZgAGjyYcQoOIXqvMsHLRz3fnHMgmgeacrdnGLQDMXnYLEZ6zQmR5Eq5uXJbh_JDs8fyAUev-fE4a4gAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Qvfx2O7mtR2P84Oj3l-p50FUHJXe8ZKCgDuwAfkmAfFb-Qtm3TyJe0bQXqsa92JVbFrkpi_h1uezKSc-RavvQlpAsieskO7rPRuOEKOa9H1ozfDFaEXyKpJXChyCdCzH3-10V6Ijdgj2qHE9xEujG3Jwm0I6sLMXfv1wKr_L_A0gAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -718,7 +719,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -744,7 +745,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T21:34:55+00:00","runType":"QuickRun","createTime":"2020-01-17T21:34:29.6746591+00:00","startTime":"2020-01-17T21:34:29.7849554+00:00","finishTime":"2020-01-17T21:34:55.3741474+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:6f5f8bd08aad1a2dcf353f15591f59f0dd13cd648d143236f935671ed76d9e43"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:20:11+00:00","runType":"QuickRun","createTime":"2020-01-18T00:19:39.2264585+00:00","startTime":"2020-01-18T00:19:39.4680799+00:00","finishTime":"2020-01-18T00:20:11.3942212+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d86245fa3899380e518ce24805cee2f6ae01a515287f5938a0c85609b9bb798e"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache @@ -753,7 +754,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:28 GMT + - Sat, 18 Jan 2020 00:20:34 GMT expires: - '-1' pragma: @@ -811,13 +812,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:29 GMT + - Sat, 18 Jan 2020 00:20:34 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AgohURN5nZZOjPxOBK5ysVk; expires=Sun, 16-Feb-2020 21:35:30 GMT; path=/; + - fpc=Aq5JeZrf4L5KpOk-oVsQ3t0; expires=Mon, 17-Feb-2020 00:20:34 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8sUP9loaWA0VrbmmD8RYgYGsVwDv6wRH3fxKkGg_bCs44UTOkbhvaGh4CEI2LtdSXyct8e7XujeU5LVD0dN5sn-yf38HWKmiUYGHX1tJnOHcAi3bQ6Fc99DMXQit6iMHDNDjr12BrkarHXyRa5u6SdmVN-JBfBw7ZazFt8vIKshIgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88x10xe0fZf-Bh1h5NBLNyx9TLv6xNxMLkbYui7wCuWLDls84VklovIfQltF4_-nmh_CKCiA4DNf_cohxYOXItO06TFRXym7PRJ25DqDGejyoOX0hdy39Emu1TQYYqqX2V4TXG-6UwwBmtr6OnbGsOxzg9lR4Eolew-yFi6OKXFMgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -826,7 +827,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -852,7 +853,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -861,7 +862,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:33 GMT + - Sat, 18 Jan 2020 00:20:37 GMT expires: - '-1' pragma: @@ -919,13 +920,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:32 GMT + - Sat, 18 Jan 2020 00:20:36 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ah1TqYpuaRJNvI3VA6mNETE; expires=Sun, 16-Feb-2020 21:35:33 GMT; path=/; + - fpc=At0ZLQAEoc5PkyNrFdoxATk; expires=Mon, 17-Feb-2020 00:20:37 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8fMeqHnmIPNVKSGihUyZouXhIYE0Ank0JyqZUK3V0JTLMQMGL3ZgOzsJcE82Tgx1F31SVO595HmM2tmA4TSg4DcJyhEeEeo6u_WAp_pMJ4cX5tKEqwHXDiH7tBz1-uPFAWnNvFzNkcM0SXMpI0tH5666UtLY8b4Hav3l3DcldelcgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lG98NIRuehMgZzrSwyjyk8_QJ0fdPQb3T2rqCXTlRpNxHns1fiPdKvfdmynol9tz7grsfkQLz_TDpo__VJMIPSwNDtBllvkJeVbGcol0kYsD8Iaql2eR3JrJLu9NcA2asfxBcFePhzieRB2FZpLW9zyZznMafn2XH541PJ-e0vIgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -934,7 +935,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -960,7 +961,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-17T21:34:55+00:00","runType":"QuickRun","createTime":"2020-01-17T21:34:29.6746591+00:00","startTime":"2020-01-17T21:34:29.7849554+00:00","finishTime":"2020-01-17T21:34:55.3741474+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:6f5f8bd08aad1a2dcf353f15591f59f0dd13cd648d143236f935671ed76d9e43"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:20:11+00:00","runType":"QuickRun","createTime":"2020-01-18T00:19:39.2264585+00:00","startTime":"2020-01-18T00:19:39.4680799+00:00","finishTime":"2020-01-18T00:20:11.3942212+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d86245fa3899380e518ce24805cee2f6ae01a515287f5938a0c85609b9bb798e"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' headers: cache-control: - no-cache @@ -969,7 +970,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:35 GMT + - Sat, 18 Jan 2020 00:20:39 GMT expires: - '-1' pragma: @@ -1027,13 +1028,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:35 GMT + - Sat, 18 Jan 2020 00:20:39 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=ArAlBOKBMXNJi0iG-8wfYyo; expires=Sun, 16-Feb-2020 21:35:36 GMT; path=/; + - fpc=Ajkee0guyIZBtmDBlaBcR64; expires=Mon, 17-Feb-2020 00:20:40 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ehSDRgKDlXdk7YVPs1mkk8xAxaBoSTvRh3pZbSezZ3BeGOP0ZegQa0SY94WL8C0fZRsmjfeguCKcid1uWXwDBc9tld3P-IpjojdILB644Ubx88Rq7Un4tYPhXw17EcKq6ll-MYohNLlLoMnc3QqmXjCf3QQwZP5-XUGBNspyKHEgAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8EQyRO2xDrHg6cvnZdlP7crklanDlUFr29aNc579wERzbNrulFcG7Qb39hovOQ4-KrwVnUYqZq3ixddVIT0bzp1G6W27sBzfAWD9Bfs8TPmJ-DnJlQh7tOFQgTvU3OgMY3KwXXwsUuCtlOlYAVkzxVvm7e9CkgOn1d3hlqC1Qv0UgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -1042,7 +1043,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -1068,7 +1069,7 @@ interactions: uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-17T21:34:14.0961023Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-17T21:34:15.9095177+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1077,7 +1078,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:37 GMT + - Sat, 18 Jan 2020 00:20:40 GMT expires: - '-1' pragma: @@ -1135,13 +1136,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 17 Jan 2020 21:35:37 GMT + - Sat, 18 Jan 2020 00:20:39 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ap5nzE3HU0BIroESYH4z3Hs; expires=Sun, 16-Feb-2020 21:35:38 GMT; path=/; + - fpc=As-yKMIKKvJGvf3KKFI6QE0; expires=Mon, 17-Feb-2020 00:20:40 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH85JEjoR96cazLc5AihqBc93npxppZmm1ssqEqtM6FarJWLh5cHyfNiWfAKEBSswg2LEdDJfomHMSNZ8EQlpsxsGtWrhWI3MvJF0axyxvIPQ0NEq1HpQeIzUx3K34c7HgH-dkV2r__az9malIU--uCKrMpyB9CxZvmt8rq3YE1RmogAA; + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8esv20G9RociVlcxB2xNcCsJhp8LEz0tdaHGlSsUUix_RnynQ24e8pqeFphVorxqH9uzTaRx6swM8N9V_ZDOX74DFdGOGP8OT7O6PkJBosF_W6bngBG7DGG0I8frijOvIXoBKn8Ne-knLtW_-wciy1xXZlz9FiRfwsyEunR48VIQgAA; domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly @@ -1150,7 +1151,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.9926.5 - WST ProdSlices + - 2.1.9926.10 - WST ProdSlices status: code: 200 message: OK @@ -1185,7 +1186,7 @@ interactions: content-length: - '0' date: - - Fri, 17 Jan 2020 21:35:42 GMT + - Sat, 18 Jan 2020 00:20:45 GMT expires: - '-1' pragma: From 3dc0faed580766b1c7d7a72325fe5072f853075b Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Fri, 17 Jan 2020 16:27:34 -0800 Subject: [PATCH 13/27] Update taskrun record file --- .../latest/recordings/test_acr_taskrun.yaml | 727 +----------------- 1 file changed, 39 insertions(+), 688 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 57ccebcc1e7..85903a1112d 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -1,63 +1,4 @@ interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:19:12 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AtLLrgqbD5RCr-dHadnygws; expires=Mon, 17-Feb-2020 00:19:13 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ufDvGVEdrAFDAf2lA3PkMvFu20NTTts5ufe6gy1oijKDmHOreiMIHelFwOpoicTgqA9hu0etzsRrsiftqm__-Fb_hX8W4Q3VqNoVc41wAOJCOFW6kWDRimIG4w8WrUu_sxCHjZn8ZOlduXb273BV-mZ_02DbsjcLIma4YOztfAIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard"}, "properties": {"adminUserEnabled": false}}' @@ -82,19 +23,19 @@ interactions: accept-language: - en-US method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache content-length: - - '753' + - '748' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:19:20 GMT + - Sat, 18 Jan 2020 00:26:04 GMT expires: - '-1' pragma: @@ -114,65 +55,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:19:20 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AuQOd9lEWfhJiXZ772sIC4c; expires=Mon, 17-Feb-2020 00:19:21 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s7N4TY_w1rAfMD_MKaVdB1A4N_VwWAmJ8M_BhzorCmHkjwxlsisLQdfaKJskX7pI2EC0X1EeqN1kqhoshR9qu-CSjEFtdW9MCC3_f9CtVXb2PAMzU4wKhrJO5sQdYa0XANaHTRkVfj43NAH9q81Kr2Aet7XqzomGgbOdXZ_fXmMgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "defaultValue": @@ -219,13 +101,13 @@ interactions: accept-language: - en-US method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-18T00:19:24.6500701Z","duration":"PT1.5516917S","correlationId":"b6ecca19-0463-456a-a578-9c0d609ddfac","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-18T00:26:05.8182083Z","duration":"PT0.1744845S","correlationId":"1671bb73-3416-4352-9b33-c991236ba3ff","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586223001223792518?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586222997198338931?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -233,7 +115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:19:24 GMT + - Sat, 18 Jan 2020 00:26:05 GMT expires: - '-1' pragma: @@ -243,69 +125,10 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:19:54 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AqtwYfV1A8lGiypnXNcXBOU; expires=Mon, 17-Feb-2020 00:19:55 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8kkIWHW7APHnnxKYmRyeeSrHizcYoexAsZ_mt1WZqh4kw7kE5Vfhb383mPYaunJUDxH0uRIo-u7cD4n9H6TZ35KCjzmFVFvkYr3wRYPG28CwhI7A-l6urRxpQtsdwc-vEYjlS2m20Sk-uuJeSJA9qW4m6_HQDhG1PWkWWm59A5GUgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -324,7 +147,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223001223792518?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586222997198338931?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -336,7 +159,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:19:57 GMT + - Sat, 18 Jan 2020 00:26:35 GMT expires: - '-1' pragma: @@ -350,65 +173,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:27 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AqFh_EOde2xOnjbdybOmncY; expires=Mon, 17-Feb-2020 00:20:27 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8a7Xv9XnUjIPBQ23A1y0hCULLlZUlRCpBjo7-PBiphZAqwXWdUtcxNGOwN-hyS_10_yTpZ1_Push0vvr0T1xvFUs1M26qYMvI3Uk8S8IIiEBy9-pxeVTeD_HpCToiFL9ex84uasJ7ApLqit4RDMJjeOmVB9Tazrc5wNem1wknFhIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -427,7 +191,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586223001223792518?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586222997198338931?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -439,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:26 GMT + - Sat, 18 Jan 2020 00:27:05 GMT expires: - '-1' pragma: @@ -453,65 +217,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:27 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ajr5KroJ4mlEoZHW9K7u4v4; expires=Mon, 17-Feb-2020 00:20:27 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZIQ7ZgHHdZM6YA3u6vU65IJWtbidg-nEzfcvlbuJ-ZnbIgyBnFdKh_Wdp-g-ouqrzQBnCe6ZvFQNL1lsAvA2WQAvdQSj9xMTBP-WhG58Q3unpJ0cBXwVVt4xSwwpiVkVn4ZbChZPfj7InVStFT1KHnRd-_ZBtXpKAirzZbdSf6AgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -530,19 +235,19 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-18T00:20:14.0635814Z","duration":"PT50.965203S","correlationId":"b6ecca19-0463-456a-a578-9c0d609ddfac","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-18T00:26:44.5392735Z","duration":"PT38.8955497S","correlationId":"1671bb73-3416-4352-9b33-c991236ba3ff","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache content-length: - - '1400' + - '1401' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:27 GMT + - Sat, 18 Jan 2020 00:27:05 GMT expires: - '-1' pragma: @@ -556,65 +261,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:28 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmA3UqZu-CZDmvUYHc8vHAI; expires=Mon, 17-Feb-2020 00:20:29 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s1JbcKp8zGTLX9tTsUPiAgdbQk4jC25XCqC7ML4Ffn6EeX8K3CxCO9CG4af1V27Ir2z4G9JV3N71DU9DWgCdohEt_5xgmDLcNoj15uokOfk1vPNN8vWB9km6rawh4CSkMNkFplqnmLnzenNRofZ07bt34Vny5Hk7YrElfOm2ERkgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -634,19 +280,19 @@ interactions: accept-language: - en-US method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache content-length: - - '753' + - '748' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:31 GMT + - Sat, 18 Jan 2020 00:27:06 GMT expires: - '-1' pragma: @@ -664,65 +310,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:31 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AnxXTKcx_aFKjT7KwkrQCyQ; expires=Mon, 17-Feb-2020 00:20:31 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Qvfx2O7mtR2P84Oj3l-p50FUHJXe8ZKCgDuwAfkmAfFb-Qtm3TyJe0bQXqsa92JVbFrkpi_h1uezKSc-RavvQlpAsieskO7rPRuOEKOa9H1ozfDFaEXyKpJXChyCdCzH3-10V6Ijdgj2qHE9xEujG3Jwm0I6sLMXfv1wKr_L_A0gAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -742,19 +329,19 @@ interactions: accept-language: - en-US method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:20:11+00:00","runType":"QuickRun","createTime":"2020-01-18T00:19:39.2264585+00:00","startTime":"2020-01-18T00:19:39.4680799+00:00","finishTime":"2020-01-18T00:20:11.3942212+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d86245fa3899380e518ce24805cee2f6ae01a515287f5938a0c85609b9bb798e"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:26:32+00:00","runType":"QuickRun","createTime":"2020-01-18T00:26:06.5873164+00:00","startTime":"2020-01-18T00:26:06.9822615+00:00","finishTime":"2020-01-18T00:26:32.4606892+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d38f892e765ec041f92b12160d39d54f2d9a39293d95c9c5072c0a4bc1c08e9a"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache content-length: - - '1582' + - '1594' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:34 GMT + - Sat, 18 Jan 2020 00:27:07 GMT expires: - '-1' pragma: @@ -772,65 +359,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:34 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aq5JeZrf4L5KpOk-oVsQ3t0; expires=Mon, 17-Feb-2020 00:20:34 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88x10xe0fZf-Bh1h5NBLNyx9TLv6xNxMLkbYui7wCuWLDls84VklovIfQltF4_-nmh_CKCiA4DNf_cohxYOXItO06TFRXym7PRJ25DqDGejyoOX0hdy39Emu1TQYYqqX2V4TXG-6UwwBmtr6OnbGsOxzg9lR4Eolew-yFi6OKXFMgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -850,19 +378,19 @@ interactions: accept-language: - en-US method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache content-length: - - '753' + - '748' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:37 GMT + - Sat, 18 Jan 2020 00:27:08 GMT expires: - '-1' pragma: @@ -880,65 +408,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:36 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=At0ZLQAEoc5PkyNrFdoxATk; expires=Mon, 17-Feb-2020 00:20:37 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lG98NIRuehMgZzrSwyjyk8_QJ0fdPQb3T2rqCXTlRpNxHns1fiPdKvfdmynol9tz7grsfkQLz_TDpo__VJMIPSwNDtBllvkJeVbGcol0kYsD8Iaql2eR3JrJLu9NcA2asfxBcFePhzieRB2FZpLW9zyZznMafn2XH541PJ-e0vIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -958,19 +427,19 @@ interactions: accept-language: - en-US method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"yd1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:20:11+00:00","runType":"QuickRun","createTime":"2020-01-18T00:19:39.2264585+00:00","startTime":"2020-01-18T00:19:39.4680799+00:00","finishTime":"2020-01-18T00:20:11.3942212+00:00","outputImages":[{"registry":"clireg000002.azurecr-test.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d86245fa3899380e518ce24805cee2f6ae01a515287f5938a0c85609b9bb798e"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/yd1","name":"yd1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:26:32+00:00","runType":"QuickRun","createTime":"2020-01-18T00:26:06.5873164+00:00","startTime":"2020-01-18T00:26:06.9822615+00:00","finishTime":"2020-01-18T00:26:32.4606892+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d38f892e765ec041f92b12160d39d54f2d9a39293d95c9c5072c0a4bc1c08e9a"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' headers: cache-control: - no-cache content-length: - - '1594' + - '1606' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:39 GMT + - Sat, 18 Jan 2020 00:27:09 GMT expires: - '-1' pragma: @@ -988,65 +457,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:39 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ajkee0guyIZBtmDBlaBcR64; expires=Mon, 17-Feb-2020 00:20:40 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8EQyRO2xDrHg6cvnZdlP7crklanDlUFr29aNc579wERzbNrulFcG7Qb39hovOQ4-KrwVnUYqZq3ixddVIT0bzp1G6W27sBzfAWD9Bfs8TPmJ-DnJlQh7tOFQgTvU3OgMY3KwXXwsUuCtlOlYAVkzxVvm7e9CkgOn1d3hlqC1Qv0UgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -1066,19 +476,19 @@ interactions: accept-language: - en-US method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr-test.io","creationDate":"2020-01-18T00:19:17.8412279Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:19:19.7004866+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache content-length: - - '753' + - '748' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:20:40 GMT + - Sat, 18 Jan 2020 00:27:09 GMT expires: - '-1' pragma: @@ -1096,65 +506,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.2 - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - private, max-age=86400 - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 18 Jan 2020 00:20:39 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=As-yKMIKKvJGvf3KKFI6QE0; expires=Mon, 17-Feb-2020 00:20:40 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8esv20G9RociVlcxB2xNcCsJhp8LEz0tdaHGlSsUUix_RnynQ24e8pqeFphVorxqH9uzTaRx6swM8N9V_ZDOX74DFdGOGP8OT7O6PkJBosF_W6bngBG7DGG0I8frijOvIXoBKn8Ne-knLtW_-wciy1xXZlz9FiRfwsyEunR48VIQgAA; - domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.9926.10 - WST ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -1176,7 +527,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: string: '' @@ -1186,7 +537,7 @@ interactions: content-length: - '0' date: - - Sat, 18 Jan 2020 00:20:45 GMT + - Sat, 18 Jan 2020 00:27:10 GMT expires: - '-1' pragma: From ec34523482eb736937a43ae383a526cfc6cefb10 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Tue, 21 Jan 2020 22:28:04 -0800 Subject: [PATCH 14/27] Add acr taskrun logs command. Fix several things based on PR comments. --- src/azure-cli/HISTORY.rst | 6 +- .../azure/cli/command_modules/acr/_format.py | 3 - .../azure/cli/command_modules/acr/_help.py | 9 + .../azure/cli/command_modules/acr/commands.py | 4 +- .../azure/cli/command_modules/acr/task.py | 8 +- .../azure/cli/command_modules/acr/taskrun.py | 17 +- .../latest/recordings/test_acr_task.yaml | 360 +++++++-------- .../latest/recordings/test_acr_taskrun.yaml | 419 ++++++++++++++++-- .../tests/latest/test_acr_task_commands.py | 2 +- .../tests/latest/test_acr_taskrun_commands.py | 18 +- 10 files changed, 616 insertions(+), 230 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 1da2dd1f6ff..139b0671b09 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -6,6 +6,8 @@ Release History **ACR** * [BREAKING CHANGE] `az acr delete` will prompt +* [BREAKING CHANGE] 'az acr task delete' will prompt +* Add new command 'az acr taskrun show/list/delete' to show, list, delete the taskrun **AppConfig** @@ -49,10 +51,6 @@ Release History * `az storage remove`: Change `--inlcude` and `--exclude` parameters to `--include-path`, `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters * `az storage sync`: Add `--include-pattern`, `--exclude-path` and`--exclude-pattern` parameters -**ACR** - -* Add new command 'az acr taskrun show/list/delete' to show, list, delete the taskrun - 2.0.80 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index f5174422c60..43a4444d1e0 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -195,9 +195,6 @@ def _taskrun_format_group(item): ('TASK', _get_value(item, 'task')), ('PLATFORM', _get_value(item, 'platform', 'os')), ('STATUS', _get_value(item, 'status')), - ("TRIGGER", _get_build_trigger(_get_value(item, 'imageUpdateTrigger'), - _get_value(item, 'sourceTrigger', 'eventType'), - _get_value(item, 'timerTrigger'))), ('STARTED', _format_datetime(_get_value(item, 'startTime'))), ('DURATION', _get_duration(_get_value(item, 'startTime'), _get_value(item, 'finishTime'))) ]) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index d3faafdd644..772080c141f 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -927,6 +927,15 @@ az acr taskrun show -r MyRegistry -n MyTaskRun -o table """ +helps['acr taskrun logs'] = """ +type: command +short-summary: Show logs for a particular run. +examples: + - name: Show logs for a particular run. + text: > + az acr task logs -r MyRegistry --run-id runId +""" + helps['acr token'] = """ type: group short-summary: Manage tokens for an Azure Container Registry. diff --git a/src/azure-cli/azure/cli/command_modules/acr/commands.py b/src/azure-cli/azure/cli/command_modules/acr/commands.py index 9338e589143..93a92c079b6 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/commands.py @@ -245,10 +245,12 @@ def load_command_table(self, _): # pylint: disable=too-many-statements g.command('logs', 'acr_task_logs', client_factory=cf_acr_runs, table_transformer=None) - with self.command_group('acr taskrun', acr_taskrun_util) as g: + with self.command_group('acr taskrun', acr_taskrun_util, is_preview=True) as g: g.command('list', 'acr_taskrun_list') g.command('delete', 'acr_taskrun_delete') g.command('show', 'acr_taskrun_show') + g.command('logs', 'acr_taskrun_logs', client_factory=cf_acr_runs, + table_transformer=None) with self.command_group('acr config content-trust', acr_policy_util) as g: g.command('show', 'acr_config_content_trust_show') diff --git a/src/azure-cli/azure/cli/command_modules/acr/task.py b/src/azure-cli/azure/cli/command_modules/acr/task.py index 264c543ab81..08a5802efc6 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/task.py +++ b/src/azure-cli/azure/cli/command_modules/acr/task.py @@ -17,7 +17,8 @@ build_timers_info, remove_timer_trigger, get_task_id_from_task_name, - prepare_source_location + prepare_source_location, + user_confirmation ) from ._stream_utils import stream_logs from ._constants import ( @@ -283,9 +284,12 @@ def acr_task_delete(cmd, client, task_name, registry_name, - resource_group_name=None): + resource_group_name=None, + yes=False): _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASK_NOT_SUPPORTED) + + user_confirmation("Are you sure you want to delete the task '{}' ".format(task_name), yes) return client.delete(resource_group_name, registry_name, task_name) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index bb238df139c..bcdad7eefb1 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -3,7 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from ._stream_utils import stream_logs from ._utils import ( + user_confirmation, validate_managed_registry ) @@ -35,7 +37,20 @@ def acr_taskrun_delete(cmd, client, taskrun_name, registry_name, - resource_group_name=None): + resource_group_name=None, + yes=False): _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) + + user_confirmation("Are you sure you want to delete the taskrun '{}' ".format(taskrun_name), yes) return client.delete(resource_group_name, registry_name, taskrun_name) + + +def acr_taskrun_logs(cmd, + client, # cf_acr_runs + registry_name, + run_id=None, + resource_group_name=None): + _, resource_group_name = validate_managed_registry( + cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) + return stream_logs(client, run_id, registry_name, resource_group_name) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_task.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_task.yaml index 27d4e6423d6..7c90837c293 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_task.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_task.yaml @@ -18,15 +18,15 @@ interactions: ParameterSetName: - -n -g -l --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -35,7 +35,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:13 GMT + - Wed, 22 Jan 2020 06:17:13 GMT expires: - '-1' pragma: @@ -69,24 +69,24 @@ interactions: ParameterSetName: - -n -r --context --image -f --commit-trigger-enabled --pull-request-trigger-enabled User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2rdaq4injyutw5pbvrzc5466vkfl2jozfp6uqp3tmluoxf6wwxj4afxklishcyxny/providers/Microsoft.ContainerRegistry/registries/cliregbojkna2pxprajm","name":"cliregbojkna2pxprajm","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgifuoda2if4manox2gahsfxs5crh2hkpf7fli5wmjbyt4z2lu34nzovg75xnujfree/providers/Microsoft.ContainerRegistry/registries/cliregmiy5cfmmro2wep","name":"cliregmiy5cfmmro2wep","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgyi4h4snkgbh4ermlafp6lclsho7jjxcvioy5e3cc4xksxi7f6yi7ba3zxvyvfkjr7/providers/Microsoft.ContainerRegistry/registries/cliregqpedlhesbnapsk","name":"cliregqpedlhesbnapsk","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2bvuhdkfudk65ifpaxdpl4zhbksa7refxlciaikwod6hx5xlubs7d3nyq4kjfmoug/providers/Microsoft.ContainerRegistry/registries/cliregso4s5vd5uuwkh5","name":"cliregso4s5vd5uuwkh5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2659' + - '2221' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:14 GMT + - Wed, 22 Jan 2020 06:17:13 GMT expires: - '-1' pragma: @@ -114,15 +114,15 @@ interactions: ParameterSetName: - -n -r --context --image -f --commit-trigger-enabled --pull-request-trigger-enabled User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -131,7 +131,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:14 GMT + - Wed, 22 Jan 2020 06:17:13 GMT expires: - '-1' pragma: @@ -173,15 +173,15 @@ interactions: ParameterSetName: - -n -r --context --image -f --commit-trigger-enabled --pull-request-trigger-enabled User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:17.6265395+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:14.6334779+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' headers: cache-control: - no-cache @@ -190,7 +190,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:18 GMT + - Wed, 22 Jan 2020 06:17:14 GMT expires: - '-1' pragma: @@ -206,7 +206,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -224,24 +224,24 @@ interactions: ParameterSetName: - -n -r --cmd -c User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2rdaq4injyutw5pbvrzc5466vkfl2jozfp6uqp3tmluoxf6wwxj4afxklishcyxny/providers/Microsoft.ContainerRegistry/registries/cliregbojkna2pxprajm","name":"cliregbojkna2pxprajm","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgifuoda2if4manox2gahsfxs5crh2hkpf7fli5wmjbyt4z2lu34nzovg75xnujfree/providers/Microsoft.ContainerRegistry/registries/cliregmiy5cfmmro2wep","name":"cliregmiy5cfmmro2wep","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgyi4h4snkgbh4ermlafp6lclsho7jjxcvioy5e3cc4xksxi7f6yi7ba3zxvyvfkjr7/providers/Microsoft.ContainerRegistry/registries/cliregqpedlhesbnapsk","name":"cliregqpedlhesbnapsk","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2bvuhdkfudk65ifpaxdpl4zhbksa7refxlciaikwod6hx5xlubs7d3nyq4kjfmoug/providers/Microsoft.ContainerRegistry/registries/cliregso4s5vd5uuwkh5","name":"cliregso4s5vd5uuwkh5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2659' + - '2221' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:18 GMT + - Wed, 22 Jan 2020 06:17:15 GMT expires: - '-1' pragma: @@ -269,15 +269,15 @@ interactions: ParameterSetName: - -n -r --cmd -c User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -286,7 +286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:20 GMT + - Wed, 22 Jan 2020 06:17:14 GMT expires: - '-1' pragma: @@ -307,7 +307,7 @@ interactions: - request: body: '{"location": "westus", "properties": {"status": "Enabled", "platform": {"os": "linux", "architecture": "amd64"}, "agentConfiguration": {"cpu": 2}, - "timeout": 3600, "step": {"type": "EncodedTask", "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiBiYXNoCiAgICB0aW1lb3V0OiAzNjAwCg==", + "timeout": 3600, "step": {"type": "EncodedTask", "encodedTaskContent": "dmVyc2lvbjogdjEuMS4wCnN0ZXBzOiAKICAtIGNtZDogYmFzaAogICAgdGltZW91dDogMzYwMAo=", "values": []}, "trigger": {"baseImageTrigger": {"baseImageTriggerType": "Runtime", "updateTriggerPayloadType": "Default", "status": "Enabled", "name": "defaultBaseimageTriggerName"}}, "credentials": {}}}' @@ -321,30 +321,30 @@ interactions: Connection: - keep-alive Content-Length: - - '481' + - '501' Content-Type: - application/json; charset=utf-8 ParameterSetName: - -n -r --cmd -c User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/contextlessTask?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:22.7445525+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"EncodedTask","encodedTaskContent":"c3RlcHM6IAogIC0gY21kOiBiYXNoCiAgICB0aW1lb3V0OiAzNjAwCg==","values":[]},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/contextlessTask","name":"contextlessTask","location":"westus"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:16.3758029+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"EncodedTask","encodedTaskContent":"dmVyc2lvbjogdjEuMS4wCnN0ZXBzOiAKICAtIGNtZDogYmFzaAogICAgdGltZW91dDogMzYwMAo=","values":[]},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/contextlessTask","name":"contextlessTask","location":"westus"}' headers: cache-control: - no-cache content-length: - - '835' + - '855' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:23 GMT + - Wed, 22 Jan 2020 06:17:16 GMT expires: - '-1' pragma: @@ -360,7 +360,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -378,24 +378,24 @@ interactions: ParameterSetName: - -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2rdaq4injyutw5pbvrzc5466vkfl2jozfp6uqp3tmluoxf6wwxj4afxklishcyxny/providers/Microsoft.ContainerRegistry/registries/cliregbojkna2pxprajm","name":"cliregbojkna2pxprajm","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgifuoda2if4manox2gahsfxs5crh2hkpf7fli5wmjbyt4z2lu34nzovg75xnujfree/providers/Microsoft.ContainerRegistry/registries/cliregmiy5cfmmro2wep","name":"cliregmiy5cfmmro2wep","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgyi4h4snkgbh4ermlafp6lclsho7jjxcvioy5e3cc4xksxi7f6yi7ba3zxvyvfkjr7/providers/Microsoft.ContainerRegistry/registries/cliregqpedlhesbnapsk","name":"cliregqpedlhesbnapsk","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2bvuhdkfudk65ifpaxdpl4zhbksa7refxlciaikwod6hx5xlubs7d3nyq4kjfmoug/providers/Microsoft.ContainerRegistry/registries/cliregso4s5vd5uuwkh5","name":"cliregso4s5vd5uuwkh5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2659' + - '2221' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:24 GMT + - Wed, 22 Jan 2020 06:17:16 GMT expires: - '-1' pragma: @@ -423,15 +423,15 @@ interactions: ParameterSetName: - -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -440,7 +440,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:24 GMT + - Wed, 22 Jan 2020 06:17:16 GMT expires: - '-1' pragma: @@ -472,24 +472,24 @@ interactions: ParameterSetName: - -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:17.6265395+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"},{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:22.7445525+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"EncodedTask","encodedTaskContent":"c3RlcHM6IAogIC0gY21kOiBiYXNoCiAgICB0aW1lb3V0OiAzNjAwCg==","values":[]},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/contextlessTask","name":"contextlessTask","location":"westus"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:14.6334779+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"},{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:16.3758029+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"EncodedTask","encodedTaskContent":"dmVyc2lvbjogdjEuMS4wCnN0ZXBzOiAKICAtIGNtZDogYmFzaAogICAgdGltZW91dDogMzYwMAo=","values":[]},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/contextlessTask","name":"contextlessTask","location":"westus"}]}' headers: cache-control: - no-cache content-length: - - '1746' + - '1766' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:26 GMT + - Wed, 22 Jan 2020 06:17:16 GMT expires: - '-1' pragma: @@ -521,24 +521,24 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2rdaq4injyutw5pbvrzc5466vkfl2jozfp6uqp3tmluoxf6wwxj4afxklishcyxny/providers/Microsoft.ContainerRegistry/registries/cliregbojkna2pxprajm","name":"cliregbojkna2pxprajm","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgifuoda2if4manox2gahsfxs5crh2hkpf7fli5wmjbyt4z2lu34nzovg75xnujfree/providers/Microsoft.ContainerRegistry/registries/cliregmiy5cfmmro2wep","name":"cliregmiy5cfmmro2wep","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgyi4h4snkgbh4ermlafp6lclsho7jjxcvioy5e3cc4xksxi7f6yi7ba3zxvyvfkjr7/providers/Microsoft.ContainerRegistry/registries/cliregqpedlhesbnapsk","name":"cliregqpedlhesbnapsk","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{"foo":"bar","cat":""}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2bvuhdkfudk65ifpaxdpl4zhbksa7refxlciaikwod6hx5xlubs7d3nyq4kjfmoug/providers/Microsoft.ContainerRegistry/registries/cliregso4s5vd5uuwkh5","name":"cliregso4s5vd5uuwkh5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2679' + - '2221' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:26 GMT + - Wed, 22 Jan 2020 06:17:17 GMT expires: - '-1' pragma: @@ -566,15 +566,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -583,7 +583,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:27 GMT + - Wed, 22 Jan 2020 06:17:17 GMT expires: - '-1' pragma: @@ -620,15 +620,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/scheduleRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Queued","lastUpdatedTime":"2019-10-21T10:39:28+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Queued","lastUpdatedTime":"2020-01-22T06:17:18+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' headers: cache-control: - no-cache @@ -637,7 +637,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:28 GMT + - Wed, 22 Jan 2020 06:17:18 GMT expires: - '-1' pragma: @@ -671,15 +671,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Running","lastUpdatedTime":"2019-10-21T10:39:28+00:00","runType":"QuickRun","createTime":"2019-10-21T10:39:28.6795272+00:00","startTime":"2019-10-21T10:39:28.8841288+00:00","task":"contextlessTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Running","lastUpdatedTime":"2020-01-22T06:17:19+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:18.8812192+00:00","startTime":"2020-01-22T06:17:19.0504812+00:00","task":"contextlessTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' headers: cache-control: - no-cache @@ -688,7 +688,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:28 GMT + - Wed, 22 Jan 2020 06:17:18 GMT expires: - '-1' pragma: @@ -720,22 +720,22 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2019-10-21T10:39:36+00:00","runType":"QuickRun","createTime":"2019-10-21T10:39:28.6795272+00:00","startTime":"2019-10-21T10:39:28.8841288+00:00","finishTime":"2019-10-21T10:39:36.8969964+00:00","task":"contextlessTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:17:24+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:18.8812192+00:00","startTime":"2020-01-22T06:17:19.0504812+00:00","finishTime":"2020-01-22T06:17:24.811904+00:00","task":"contextlessTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}' headers: cache-control: - no-cache content-length: - - '721' + - '720' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:39:59 GMT + - Wed, 22 Jan 2020 06:17:49 GMT expires: - '-1' pragma: @@ -767,24 +767,24 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2rdaq4injyutw5pbvrzc5466vkfl2jozfp6uqp3tmluoxf6wwxj4afxklishcyxny/providers/Microsoft.ContainerRegistry/registries/cliregbojkna2pxprajm","name":"cliregbojkna2pxprajm","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg4uqacgqk2zp52smme43dov66mdmwkorxc6fpdnonhq7soneyqlo25w546fwmrg5jy/providers/Microsoft.ContainerRegistry/registries/cliregvcmgbkc2fuucgv","name":"cliregvcmgbkc2fuucgv","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2bvuhdkfudk65ifpaxdpl4zhbksa7refxlciaikwod6hx5xlubs7d3nyq4kjfmoug/providers/Microsoft.ContainerRegistry/registries/cliregso4s5vd5uuwkh5","name":"cliregso4s5vd5uuwkh5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2292' + - '2221' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:40:00 GMT + - Wed, 22 Jan 2020 06:17:50 GMT expires: - '-1' pragma: @@ -812,15 +812,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -829,7 +829,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:40:02 GMT + - Wed, 22 Jan 2020 06:17:50 GMT expires: - '-1' pragma: @@ -866,15 +866,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/scheduleRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Queued","lastUpdatedTime":"2019-10-21T10:40:03+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Queued","lastUpdatedTime":"2020-01-22T06:17:51+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache @@ -883,7 +883,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:40:03 GMT + - Wed, 22 Jan 2020 06:17:50 GMT expires: - '-1' pragma: @@ -899,7 +899,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -917,15 +917,15 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2019-10-21T10:40:04+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2020-01-22T06:17:51+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache @@ -934,7 +934,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:40:04 GMT + - Wed, 22 Jan 2020 06:17:51 GMT expires: - '-1' pragma: @@ -966,13 +966,13 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2019-10-21T10:40:04+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2020-01-22T06:17:51+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache @@ -981,7 +981,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:40:36 GMT + - Wed, 22 Jan 2020 06:18:21 GMT expires: - '-1' pragma: @@ -1013,13 +1013,13 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2019-10-21T10:40:04+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2020-01-22T06:17:51+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache @@ -1028,7 +1028,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:06 GMT + - Wed, 22 Jan 2020 06:18:50 GMT expires: - '-1' pragma: @@ -1060,22 +1060,22 @@ interactions: ParameterSetName: - -n -r --no-logs User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2019-10-21T10:41:09+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","finishTime":"2019-10-21T10:41:09.1670668+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:377f130632afda3c1e5661bfaa541fb7fef8c42e6ff85838f095d2ad786a0799"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:19:09+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","finishTime":"2020-01-22T06:19:09.941701+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:5cd0698ab4f763cbfd6c9d5f38dad7acc9fa67f6ad885f53919ee2218f784b40"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache content-length: - - '896' + - '895' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:36 GMT + - Wed, 22 Jan 2020 06:19:21 GMT expires: - '-1' pragma: @@ -1107,24 +1107,24 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1541' + - '1847' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:37 GMT + - Wed, 22 Jan 2020 06:19:22 GMT expires: - '-1' pragma: @@ -1152,15 +1152,15 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1169,7 +1169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:38 GMT + - Wed, 22 Jan 2020 06:19:23 GMT expires: - '-1' pragma: @@ -1201,24 +1201,24 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs?api-version=2019-06-01-preview&$filter=TaskName%20eq%20%27testTask%27&$top=15 response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2019-10-21T10:41:09+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","finishTime":"2019-10-21T10:41:09.1670668+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:377f130632afda3c1e5661bfaa541fb7fef8c42e6ff85838f095d2ad786a0799"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:19:09+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","finishTime":"2020-01-22T06:19:09.941701+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:5cd0698ab4f763cbfd6c9d5f38dad7acc9fa67f6ad885f53919ee2218f784b40"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}]}' headers: cache-control: - no-cache content-length: - - '908' + - '907' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:39 GMT + - Wed, 22 Jan 2020 06:19:23 GMT expires: - '-1' pragma: @@ -1250,24 +1250,24 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1541' + - '1847' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:40 GMT + - Wed, 22 Jan 2020 06:19:24 GMT expires: - '-1' pragma: @@ -1295,15 +1295,15 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1312,7 +1312,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:42 GMT + - Wed, 22 Jan 2020 06:19:23 GMT expires: - '-1' pragma: @@ -1344,15 +1344,15 @@ interactions: ParameterSetName: - -n -r User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:17.6265395+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:14.6334779+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' headers: cache-control: - no-cache @@ -1361,7 +1361,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:43 GMT + - Wed, 22 Jan 2020 06:19:23 GMT expires: - '-1' pragma: @@ -1393,24 +1393,24 @@ interactions: ParameterSetName: - -n -r --platform User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1541' + - '1847' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:44 GMT + - Wed, 22 Jan 2020 06:19:25 GMT expires: - '-1' pragma: @@ -1438,15 +1438,15 @@ interactions: ParameterSetName: - -n -r --platform User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1455,7 +1455,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:45 GMT + - Wed, 22 Jan 2020 06:19:24 GMT expires: - '-1' pragma: @@ -1487,15 +1487,15 @@ interactions: ParameterSetName: - -n -r --platform User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:17.6265395+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:14.6334779+00:00","status":"Enabled","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' headers: cache-control: - no-cache @@ -1504,7 +1504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:46 GMT + - Wed, 22 Jan 2020 06:19:25 GMT expires: - '-1' pragma: @@ -1542,15 +1542,15 @@ interactions: ParameterSetName: - -n -r --platform User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2019-10-21T10:39:17.6265395+00:00","status":"Enabled","platform":{"os":"linux","architecture":"arm"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/tasks","properties":{"provisioningState":"Succeeded","creationDate":"2020-01-22T06:17:14.6334779+00:00","status":"Enabled","platform":{"os":"linux","architecture":"arm"},"agentConfiguration":{"cpu":2},"timeout":3600,"step":{"type":"Docker","imageNames":["testtask:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","arguments":[],"baseImageDependencies":[{"type":"Runtime","registry":"registry.hub.docker.com","repository":"library/node","tag":"9","digest":"sha256:cddc729ef8326f7e8966c246ba2e87bad4c15365494ff3d681fa6f022cdab041"}],"contextPath":"https://github.com/SteveLasker/node-helloworld"},"trigger":{"baseImageTrigger":{"baseImageTriggerType":"Runtime","updateTriggerPayloadType":"Default","status":"Enabled","name":"defaultBaseimageTriggerName"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/tasks/testTask","name":"testTask","location":"westus"}' headers: cache-control: - no-cache @@ -1559,7 +1559,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:47 GMT + - Wed, 22 Jan 2020 06:19:25 GMT expires: - '-1' pragma: @@ -1575,7 +1575,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 200 message: OK @@ -1593,24 +1593,24 @@ interactions: ParameterSetName: - -r --run-id --no-archive User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1541' + - '1847' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:47 GMT + - Wed, 22 Jan 2020 06:19:25 GMT expires: - '-1' pragma: @@ -1638,15 +1638,15 @@ interactions: ParameterSetName: - -r --run-id --no-archive User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1655,7 +1655,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:49 GMT + - Wed, 22 Jan 2020 06:19:25 GMT expires: - '-1' pragma: @@ -1691,24 +1691,24 @@ interactions: ParameterSetName: - -r --run-id --no-archive User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2019-10-21T10:41:50+00:00","runType":"QuickRun","createTime":"2019-10-21T10:40:03.7878243+00:00","startTime":"2019-10-21T10:40:03.9915238+00:00","finishTime":"2019-10-21T10:41:09.1670668+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:377f130632afda3c1e5661bfaa541fb7fef8c42e6ff85838f095d2ad786a0799"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:19:26+00:00","runType":"QuickRun","createTime":"2020-01-22T06:17:51.2255273+00:00","startTime":"2020-01-22T06:17:51.3849335+00:00","finishTime":"2020-01-22T06:19:09.941701+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtask","tag":"v1","digest":"sha256:5cd0698ab4f763cbfd6c9d5f38dad7acc9fa67f6ad885f53919ee2218f784b40"}],"task":"testTask","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2"}' headers: cache-control: - no-cache content-length: - - '895' + - '894' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:50 GMT + - Wed, 22 Jan 2020 06:19:26 GMT expires: - '-1' pragma: @@ -1740,26 +1740,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -r + - -n -r -y User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2019-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengtest/providers/Microsoft.ContainerRegistry/registries/feng8","name":"feng8","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwacrmon","name":"yugangwacrmon","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Basic","tier":"Basic"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwana","name":"yugangwana","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"southeastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yugangw/providers/Microsoft.ContainerRegistry/registries/yugangwaudit","name":"yugangwaudit","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Premium","tier":"Premium"},"location":"eastus2euap","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus01","name":"huanglicus01","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglicus02","name":"huanglicus02","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanglireg","name":"huanglireg","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus2","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest3","name":"huanwutest3","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/huanwutest/providers/Microsoft.ContainerRegistry/registries/huanwutest5","name":"huanwutest5","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westeurope","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1541' + - '1847' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:51 GMT + - Wed, 22 Jan 2020 06:19:26 GMT expires: - '-1' pragma: @@ -1785,17 +1785,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -r + - -n -r -y User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2019-10-21T10:39:11.2865129Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2019-10-21T10:39:13.0366033+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:17:11.7060221Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:17:13.0907442+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -1804,7 +1804,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 10:41:52 GMT + - Wed, 22 Jan 2020 06:19:26 GMT expires: - '-1' pragma: @@ -1836,10 +1836,10 @@ interactions: Content-Length: - '0' ParameterSetName: - - -n -r + - -n -r -y User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: DELETE @@ -1853,7 +1853,7 @@ interactions: content-length: - '0' date: - - Mon, 21 Oct 2019 10:41:56 GMT + - Wed, 22 Jan 2020 06:19:33 GMT expires: - '-1' pragma: @@ -1883,10 +1883,10 @@ interactions: Content-Length: - '0' ParameterSetName: - - -n -g + - -n -g -y User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc6 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: DELETE @@ -1900,7 +1900,7 @@ interactions: content-length: - '0' date: - - Mon, 21 Oct 2019 10:42:02 GMT + - Wed, 22 Jan 2020 06:19:36 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 85903a1112d..4254bd71de7 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -26,7 +26,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -35,7 +35,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:26:04 GMT + - Wed, 22 Jan 2020 06:15:15 GMT expires: - '-1' pragma: @@ -104,10 +104,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-18T00:26:05.8182083Z","duration":"PT0.1744845S","correlationId":"1671bb73-3416-4352-9b33-c991236ba3ff","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-22T06:15:17.5361223Z","duration":"PT0.3850064S","correlationId":"7919ea90-a1dd-4946-800e-86e10d434f35","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586222997198338931?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586219331683265029?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -115,7 +115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:26:05 GMT + - Wed, 22 Jan 2020 06:15:17 GMT expires: - '-1' pragma: @@ -147,7 +147,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586222997198338931?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -159,7 +159,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:26:35 GMT + - Wed, 22 Jan 2020 06:15:47 GMT expires: - '-1' pragma: @@ -191,7 +191,51 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586222997198338931?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - group deployment create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --template-file --parameters --parameters --parameters --parameters + --parameters + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -203,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:05 GMT + - Wed, 22 Jan 2020 06:16:47 GMT expires: - '-1' pragma: @@ -238,16 +282,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-18T00:26:44.5392735Z","duration":"PT38.8955497S","correlationId":"1671bb73-3416-4352-9b33-c991236ba3ff","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-22T06:16:34.6292564Z","duration":"PT1M17.4781405S","correlationId":"7919ea90-a1dd-4946-800e-86e10d434f35","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache content-length: - - '1401' + - '1403' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:05 GMT + - Wed, 22 Jan 2020 06:16:47 GMT expires: - '-1' pragma: @@ -261,6 +305,104 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun list + Connection: + - keep-alive + ParameterSetName: + - -r -g + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '748' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16: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 +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - acr taskrun list + Connection: + - keep-alive + ParameterSetName: + - -r -g + User-Agent: + - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview + response: + body: + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:16:15+00:00","runType":"QuickRun","createTime":"2020-01-22T06:15:37.2387637+00:00","startTime":"2020-01-22T06:15:42.3469677+00:00","finishTime":"2020-01-22T06:16:15.7166107+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1606' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.15.10 + 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: @@ -283,7 +425,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -292,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:06 GMT + - Wed, 22 Jan 2020 06:16:49 GMT expires: - '-1' pragma: @@ -332,7 +474,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:26:32+00:00","runType":"QuickRun","createTime":"2020-01-18T00:26:06.5873164+00:00","startTime":"2020-01-18T00:26:06.9822615+00:00","finishTime":"2020-01-18T00:26:32.4606892+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d38f892e765ec041f92b12160d39d54f2d9a39293d95c9c5072c0a4bc1c08e9a"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:16:15+00:00","runType":"QuickRun","createTime":"2020-01-22T06:15:37.2387637+00:00","startTime":"2020-01-22T06:15:42.3469677+00:00","finishTime":"2020-01-22T06:16:15.7166107+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache @@ -341,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:07 GMT + - Wed, 22 Jan 2020 06:16:50 GMT expires: - '-1' pragma: @@ -367,11 +509,11 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - acr taskrun list + - acr taskrun logs Connection: - keep-alive ParameterSetName: - - -r -g + - -r --run-id -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -381,7 +523,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -390,7 +532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:08 GMT + - Wed, 22 Jan 2020 06:16:50 GMT expires: - '-1' pragma: @@ -416,30 +558,32 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - acr taskrun list + - acr taskrun logs Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -r -g + - -r --run-id -g User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1/listLogSasUrl?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-18T00:26:32+00:00","runType":"QuickRun","createTime":"2020-01-18T00:26:06.5873164+00:00","startTime":"2020-01-18T00:26:06.9822615+00:00","finishTime":"2020-01-18T00:26:32.4606892+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:d38f892e765ec041f92b12160d39d54f2d9a39293d95c9c5072c0a4bc1c08e9a"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"logLink":"https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r"}' headers: cache-control: - no-cache content-length: - - '1606' + - '229' content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:09 GMT + - Wed, 22 Jan 2020 06:16:51 GMT expires: - '-1' pragma: @@ -454,6 +598,217 @@ interactions: - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) + x-ms-date: + - Wed, 22 Jan 2020 06:16:51 GMT + x-ms-version: + - '2018-03-28' + method: HEAD + uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-disposition: + - '' + content-encoding: + - utf-8 + content-length: + - '3679' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16:52 GMT + etag: + - '"0x8D79F02942F4EEB"' + last-modified: + - Wed, 22 Jan 2020 06:16:12 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-committed-block-count: + - '11' + x-ms-blob-type: + - AppendBlob + x-ms-creation-time: + - Wed, 22 Jan 2020 06:15:42 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-complete: + - successful + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2018-03-28' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) + x-ms-date: + - Wed, 22 Jan 2020 06:16:52 GMT + x-ms-range: + - bytes=0-4095 + x-ms-version: + - '2018-03-28' + method: GET + uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r + response: + body: + string: "2020/01/22 06:15:42 Downloading source code...\r\n2020/01/22 06:15:45 + Finished downloading source code\r\n2020/01/22 06:15:45 Using acb_vol_062829ac-27c8-4b0f-b687-6ecc07715c76 + as the home volume\n2020/01/22 06:15:45 Setting up Docker configuration...\n2020/01/22 + 06:15:46 Successfully set up Docker configuration\n2020/01/22 06:15:46 Logging + in to registry: clireg000002.azurecr.io\n2020/01/22 06:15:48 Successfully + logged into clireg000002.azurecr.io\n2020/01/22 06:15:48 Executing step ID: + build. Timeout(sec): 28800, Working directory: '', Network: ''\n2020/01/22 + 06:15:48 Scanning for dependencies...\r\n2020/01/22 06:15:48 Successfully + scanned dependencies\n2020/01/22 06:15:48 Launching container with name: build\nSending + build context to Docker daemon 89.09kB\r\r\nStep 1/5 : FROM node:9-alpine\n9-alpine: + Pulling from library/node\r\na073c86ecf9e: Pulling fs layer\n0e28711eb56d: + Pulling fs layer\ne460dd483fdd: Pulling fs layer\na073c86ecf9e: Verifying + Checksum\na073c86ecf9e: Download complete\ne460dd483fdd: Verifying Checksum\ne460dd483fdd: + Download complete\na073c86ecf9e: Pull complete\n0e28711eb56d: Download complete\n0e28711eb56d: + Pull complete\r\ne460dd483fdd: Pull complete\nDigest: sha256:8dafc0968fb4d62834d9b826d85a8feecc69bd72cd51723c62c7db67c6dec6fa\nStatus: + Downloaded newer image for node:9-alpine\n ---> a56170f59699\nStep 2/5 : COPY + . /src\n ---> 5510c4bd6378\r\nStep 3/5 : RUN cd /src && npm install\n ---> + Running in 9d7eb5a39b3b\n\e[91mnpm\e[0m\e[91m notice created a lockfile as + package-lock.json. You should commit this file.\n\e[0m\e[91mnpm \e[0m\e[91mWARN\e[0m\e[91m + helloworld@1.0.0 No repository field.\n\e[0m\e[91m\n\e[0mup to date in 0.089s\nRemoving + intermediate container 9d7eb5a39b3b\n ---> da2385df6116\nStep 4/5 : EXPOSE + 80\r\n ---> Running in 6b5ccfde4cca\nRemoving intermediate container 6b5ccfde4cca\n + ---> 86abfa527464\nStep 5/5 : CMD [\"node\", \"/src/server.js\"]\n ---> Running + in c75ee38c24b8\nRemoving intermediate container c75ee38c24b8\n ---> b3cd9c26deb5\nSuccessfully + built b3cd9c26deb5\nSuccessfully tagged clireg000002.azurecr.io/testtaskrun:v1\n2020/01/22 + 06:16:02 Successfully executed container: build\n2020/01/22 06:16:02 Executing + step ID: push. Timeout(sec): 1800, Working directory: '', Network: ''\n2020/01/22 + 06:16:02 Pushing image: clireg000002.azurecr.io/testtaskrun:v1, attempt 1\nThe + push refers to repository [clireg000002.azurecr.io/testtaskrun]\r\n4d48747db2b9: + Preparing\ne38ca810bd0d: Preparing\n172ed8ca5e43: Preparing\n8c9992f4e5dd: + Preparing\n8dfad2055603: Preparing\n4d48747db2b9: Pushed\ne38ca810bd0d: Pushed\n172ed8ca5e43: + Pushed\n8dfad2055603: Pushed\n8c9992f4e5dd: Pushed\r\nv1: digest: sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803 + size: 1367\n2020/01/22 06:16:09 Successfully pushed image: clireg000002.azurecr.io/testtaskrun:v1\n2020/01/22 + 06:16:09 Step ID: build marked as successful (elapsed time in seconds: 14.195598)\n2020/01/22 + 06:16:09 Populating digests for step ID: build...\n2020/01/22 06:16:11 Successfully + populated digests for step ID: build\n2020/01/22 06:16:11 Step ID: push marked + as successful (elapsed time in seconds: 7.641868)\n2020/01/22 06:16:11 The + following dependencies were found:\n2020/01/22 06:16:11 \n- image:\n registry: + clireg000002.azurecr.io\n repository: testtaskrun\n tag: v1\n digest: + sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803\n + \ runtime-dependency:\n registry: registry.hub.docker.com\n repository: + library/node\n tag: 9-alpine\n digest: sha256:8dafc0968fb4d62834d9b826d85a8feecc69bd72cd51723c62c7db67c6dec6fa\n + \ git:\n git-head-revision: a3710d1af24d20fbdc6bb3feeea428fa01138e93\n\r\nRun + ID: cf1 was successful after 30s\r\n" + headers: + accept-ranges: + - bytes + content-disposition: + - '' + content-encoding: + - utf-8 + content-length: + - '3679' + content-range: + - bytes 0-3678/3679 + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16:52 GMT + etag: + - '"0x8D79F02942F4EEB"' + last-modified: + - Wed, 22 Jan 2020 06:16:12 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-committed-block-count: + - '11' + x-ms-blob-type: + - AppendBlob + x-ms-creation-time: + - Wed, 22 Jan 2020 06:15:42 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-complete: + - successful + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2018-03-28' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) + x-ms-date: + - Wed, 22 Jan 2020 06:16:52 GMT + x-ms-version: + - '2018-03-28' + method: HEAD + uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-disposition: + - '' + content-encoding: + - utf-8 + content-length: + - '3679' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 22 Jan 2020 06:16:52 GMT + etag: + - '"0x8D79F02942F4EEB"' + last-modified: + - Wed, 22 Jan 2020 06:16:12 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-committed-block-count: + - '11' + x-ms-blob-type: + - AppendBlob + x-ms-creation-time: + - Wed, 22 Jan 2020 06:15:42 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-complete: + - successful + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2018-03-28' status: code: 200 message: OK @@ -469,7 +824,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -r -n -g + - -r -n -g -y User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -479,7 +834,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-18T00:26:02.5496492Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-18T00:26:04.7401131+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -488,7 +843,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 18 Jan 2020 00:27:09 GMT + - Wed, 22 Jan 2020 06:16:53 GMT expires: - '-1' pragma: @@ -520,7 +875,7 @@ interactions: Content-Length: - '0' ParameterSetName: - - -r -n -g + - -r -n -g -y User-Agent: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 @@ -537,7 +892,7 @@ interactions: content-length: - '0' date: - - Sat, 18 Jan 2020 00:27:10 GMT + - Wed, 22 Jan 2020 06:16:53 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_task_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_task_commands.py index a8db686d22e..e99d8d842bf 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_task_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_task_commands.py @@ -98,7 +98,7 @@ def test_acr_task(self, resource_group): self.check('provisioningState', 'Succeeded')]) # test task delete - self.cmd('acr task delete -n {task_name} -r {registry_name}') + self.cmd('acr task delete -n {task_name} -r {registry_name} -y') # test acr delete self.cmd('acr delete -n {registry_name} -g {rg} -y') diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index afac8871e60..e5f985cec71 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -34,14 +34,20 @@ def test_acr_taskrun(self, resource_group): self.cmd('group deployment create --resource-group {rg} --template-file {tf} --parameters registryName={registry_name} --parameters taskRunName={taskrun_name} --parameters sourceLocation={sourceLocation} --parameters dockerFilePath={dockerFilePath} --parameters image={image} ') - self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', - checks=[self.check('name', '{taskrun_name}'), - self.check('provisioningState', 'Succeeded'), - self.check('runRequest.type', 'DockerBuildRequest')]) - self.cmd('acr taskrun list -r {registry_name} -g {rg}', checks=[self.check('[0].name', '{taskrun_name}'), self.check('[0].provisioningState', 'Succeeded'), self.check('[0].runRequest.type', 'DockerBuildRequest')]) - self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg}') + response=self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', + checks=[self.check('name', '{taskrun_name}'), + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() + + self.kwargs.update({ + 'run_id': response['runResult']['runId'] + }) + + self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') + + self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg} -y') From f5b8bdab697d97dcb7c1329be399cf74c8f87072 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 11:08:22 -0800 Subject: [PATCH 15/27] Fix some style issue. Disable the step to show log because the step cannot pass using recorded file. --- src/azure-cli/HISTORY.rst | 2 +- .../azure/cli/command_modules/acr/_help.py | 2 +- .../azure/cli/command_modules/acr/_params.py | 1 + .../azure/cli/command_modules/acr/taskrun.py | 8 +- .../latest/recordings/test_acr_taskrun.yaml | 359 ++---------------- .../tests/latest/test_acr_taskrun_commands.py | 12 +- 6 files changed, 37 insertions(+), 347 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 139b0671b09..367061713f6 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -7,7 +7,7 @@ Release History * [BREAKING CHANGE] `az acr delete` will prompt * [BREAKING CHANGE] 'az acr task delete' will prompt -* Add new command 'az acr taskrun show/list/delete' to show, list, delete the taskrun +* Add a new command group 'az acr taskrun show/list/delete' for taskrun management **AppConfig** diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index 772080c141f..c36adb091f2 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -929,7 +929,7 @@ helps['acr taskrun logs'] = """ type: command -short-summary: Show logs for a particular run. +short-summary: Show logs for a particular run. examples: - name: Show logs for a particular run. text: > diff --git a/src/azure-cli/azure/cli/command_modules/acr/_params.py b/src/azure-cli/azure/cli/command_modules/acr/_params.py index 88de5dec4e1..a83a918e4a5 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_params.py @@ -239,6 +239,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements with self.argument_context('acr taskrun') as c: c.argument('registry_name', options_list=['--registry', '-r']) + c.argument('run_id', help='The unique run identifier.') c.argument('taskrun_name', options_list=['--name', '-n'], help='The name of the taskrun.', completer=get_resource_name_completion_list(TASKRUN_RESOURCE_TYPE)) with self.argument_context('acr helm') as c: diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index bcdad7eefb1..d5e5442d9f3 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -47,10 +47,10 @@ def acr_taskrun_delete(cmd, def acr_taskrun_logs(cmd, - client, # cf_acr_runs - registry_name, - run_id=None, - resource_group_name=None): + client, # cf_acr_runs + registry_name, + run_id=None, + resource_group_name=None): _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) return stream_logs(client, run_id, registry_name, resource_group_name) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index 4254bd71de7..b1830f46e57 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -26,7 +26,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -35,7 +35,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:15:15 GMT + - Wed, 22 Jan 2020 19:04:56 GMT expires: - '-1' pragma: @@ -104,10 +104,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-22T06:15:17.5361223Z","duration":"PT0.3850064S","correlationId":"7919ea90-a1dd-4946-800e-86e10d434f35","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-22T19:04:58.1952008Z","duration":"PT0.2867374S","correlationId":"a7f53666-fd6a-4a8a-a10b-acf3f1eeca98","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586219331683265029?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586218869875691558?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -115,7 +115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:15:17 GMT + - Wed, 22 Jan 2020 19:04:57 GMT expires: - '-1' pragma: @@ -147,7 +147,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -159,7 +159,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:15:47 GMT + - Wed, 22 Jan 2020 19:05:27 GMT expires: - '-1' pragma: @@ -191,7 +191,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -203,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:17 GMT + - Wed, 22 Jan 2020 19:05:58 GMT expires: - '-1' pragma: @@ -235,7 +235,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586219331683265029?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -247,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:47 GMT + - Wed, 22 Jan 2020 19:06:27 GMT expires: - '-1' pragma: @@ -282,7 +282,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-22T06:16:34.6292564Z","duration":"PT1M17.4781405S","correlationId":"7919ea90-a1dd-4946-800e-86e10d434f35","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-22T19:06:15.7101136Z","duration":"PT1M17.8016502S","correlationId":"a7f53666-fd6a-4a8a-a10b-acf3f1eeca98","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache @@ -291,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:47 GMT + - Wed, 22 Jan 2020 19:06:27 GMT expires: - '-1' pragma: @@ -327,7 +327,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -336,7 +336,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:49 GMT + - Wed, 22 Jan 2020 19:06:28 GMT expires: - '-1' pragma: @@ -376,7 +376,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:16:15+00:00","runType":"QuickRun","createTime":"2020-01-22T06:15:37.2387637+00:00","startTime":"2020-01-22T06:15:42.3469677+00:00","finishTime":"2020-01-22T06:16:15.7166107+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T19:05:54+00:00","runType":"QuickRun","createTime":"2020-01-22T19:05:27.7329193+00:00","startTime":"2020-01-22T19:05:27.9380087+00:00","finishTime":"2020-01-22T19:05:54.3428317+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:e3b24f2d42c1e845e00f593c5f41fba4162284601ea17837144c37a4e6d618de"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' headers: cache-control: - no-cache @@ -385,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:49 GMT + - Wed, 22 Jan 2020 19:06:28 GMT expires: - '-1' pragma: @@ -425,7 +425,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -434,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:49 GMT + - Wed, 22 Jan 2020 19:06:29 GMT expires: - '-1' pragma: @@ -474,7 +474,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T06:16:15+00:00","runType":"QuickRun","createTime":"2020-01-22T06:15:37.2387637+00:00","startTime":"2020-01-22T06:15:42.3469677+00:00","finishTime":"2020-01-22T06:16:15.7166107+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T19:05:54+00:00","runType":"QuickRun","createTime":"2020-01-22T19:05:27.7329193+00:00","startTime":"2020-01-22T19:05:27.9380087+00:00","finishTime":"2020-01-22T19:05:54.3428317+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:e3b24f2d42c1e845e00f593c5f41fba4162284601ea17837144c37a4e6d618de"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache @@ -483,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:50 GMT + - Wed, 22 Jan 2020 19:06:29 GMT expires: - '-1' pragma: @@ -501,317 +501,6 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr taskrun logs - Connection: - - keep-alive - ParameterSetName: - - -r --run-id -g - User-Agent: - - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' - headers: - cache-control: - - no-cache - content-length: - - '748' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 22 Jan 2020 06:16:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - acr taskrun logs - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -r --run-id -g - User-Agent: - - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerregistry/3.0.0rc8 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1/listLogSasUrl?api-version=2019-06-01-preview - response: - body: - string: '{"logLink":"https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r"}' - headers: - cache-control: - - no-cache - content-length: - - '229' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 22 Jan 2020 06:16:51 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.15.10 - 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: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) - x-ms-date: - - Wed, 22 Jan 2020 06:16:51 GMT - x-ms-version: - - '2018-03-28' - method: HEAD - uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-disposition: - - '' - content-encoding: - - utf-8 - content-length: - - '3679' - content-type: - - text/plain; charset=utf-8 - date: - - Wed, 22 Jan 2020 06:16:52 GMT - etag: - - '"0x8D79F02942F4EEB"' - last-modified: - - Wed, 22 Jan 2020 06:16:12 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-blob-committed-block-count: - - '11' - x-ms-blob-type: - - AppendBlob - x-ms-creation-time: - - Wed, 22 Jan 2020 06:15:42 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-meta-complete: - - successful - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2018-03-28' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) - x-ms-date: - - Wed, 22 Jan 2020 06:16:52 GMT - x-ms-range: - - bytes=0-4095 - x-ms-version: - - '2018-03-28' - method: GET - uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r - response: - body: - string: "2020/01/22 06:15:42 Downloading source code...\r\n2020/01/22 06:15:45 - Finished downloading source code\r\n2020/01/22 06:15:45 Using acb_vol_062829ac-27c8-4b0f-b687-6ecc07715c76 - as the home volume\n2020/01/22 06:15:45 Setting up Docker configuration...\n2020/01/22 - 06:15:46 Successfully set up Docker configuration\n2020/01/22 06:15:46 Logging - in to registry: clireg000002.azurecr.io\n2020/01/22 06:15:48 Successfully - logged into clireg000002.azurecr.io\n2020/01/22 06:15:48 Executing step ID: - build. Timeout(sec): 28800, Working directory: '', Network: ''\n2020/01/22 - 06:15:48 Scanning for dependencies...\r\n2020/01/22 06:15:48 Successfully - scanned dependencies\n2020/01/22 06:15:48 Launching container with name: build\nSending - build context to Docker daemon 89.09kB\r\r\nStep 1/5 : FROM node:9-alpine\n9-alpine: - Pulling from library/node\r\na073c86ecf9e: Pulling fs layer\n0e28711eb56d: - Pulling fs layer\ne460dd483fdd: Pulling fs layer\na073c86ecf9e: Verifying - Checksum\na073c86ecf9e: Download complete\ne460dd483fdd: Verifying Checksum\ne460dd483fdd: - Download complete\na073c86ecf9e: Pull complete\n0e28711eb56d: Download complete\n0e28711eb56d: - Pull complete\r\ne460dd483fdd: Pull complete\nDigest: sha256:8dafc0968fb4d62834d9b826d85a8feecc69bd72cd51723c62c7db67c6dec6fa\nStatus: - Downloaded newer image for node:9-alpine\n ---> a56170f59699\nStep 2/5 : COPY - . /src\n ---> 5510c4bd6378\r\nStep 3/5 : RUN cd /src && npm install\n ---> - Running in 9d7eb5a39b3b\n\e[91mnpm\e[0m\e[91m notice created a lockfile as - package-lock.json. You should commit this file.\n\e[0m\e[91mnpm \e[0m\e[91mWARN\e[0m\e[91m - helloworld@1.0.0 No repository field.\n\e[0m\e[91m\n\e[0mup to date in 0.089s\nRemoving - intermediate container 9d7eb5a39b3b\n ---> da2385df6116\nStep 4/5 : EXPOSE - 80\r\n ---> Running in 6b5ccfde4cca\nRemoving intermediate container 6b5ccfde4cca\n - ---> 86abfa527464\nStep 5/5 : CMD [\"node\", \"/src/server.js\"]\n ---> Running - in c75ee38c24b8\nRemoving intermediate container c75ee38c24b8\n ---> b3cd9c26deb5\nSuccessfully - built b3cd9c26deb5\nSuccessfully tagged clireg000002.azurecr.io/testtaskrun:v1\n2020/01/22 - 06:16:02 Successfully executed container: build\n2020/01/22 06:16:02 Executing - step ID: push. Timeout(sec): 1800, Working directory: '', Network: ''\n2020/01/22 - 06:16:02 Pushing image: clireg000002.azurecr.io/testtaskrun:v1, attempt 1\nThe - push refers to repository [clireg000002.azurecr.io/testtaskrun]\r\n4d48747db2b9: - Preparing\ne38ca810bd0d: Preparing\n172ed8ca5e43: Preparing\n8c9992f4e5dd: - Preparing\n8dfad2055603: Preparing\n4d48747db2b9: Pushed\ne38ca810bd0d: Pushed\n172ed8ca5e43: - Pushed\n8dfad2055603: Pushed\n8c9992f4e5dd: Pushed\r\nv1: digest: sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803 - size: 1367\n2020/01/22 06:16:09 Successfully pushed image: clireg000002.azurecr.io/testtaskrun:v1\n2020/01/22 - 06:16:09 Step ID: build marked as successful (elapsed time in seconds: 14.195598)\n2020/01/22 - 06:16:09 Populating digests for step ID: build...\n2020/01/22 06:16:11 Successfully - populated digests for step ID: build\n2020/01/22 06:16:11 Step ID: push marked - as successful (elapsed time in seconds: 7.641868)\n2020/01/22 06:16:11 The - following dependencies were found:\n2020/01/22 06:16:11 \n- image:\n registry: - clireg000002.azurecr.io\n repository: testtaskrun\n tag: v1\n digest: - sha256:aa0b85413f68984ecc984a013e809ad9362278b05ee87137cd7d968e30477803\n - \ runtime-dependency:\n registry: registry.hub.docker.com\n repository: - library/node\n tag: 9-alpine\n digest: sha256:8dafc0968fb4d62834d9b826d85a8feecc69bd72cd51723c62c7db67c6dec6fa\n - \ git:\n git-head-revision: a3710d1af24d20fbdc6bb3feeea428fa01138e93\n\r\nRun - ID: cf1 was successful after 30s\r\n" - headers: - accept-ranges: - - bytes - content-disposition: - - '' - content-encoding: - - utf-8 - content-length: - - '3679' - content-range: - - bytes 0-3678/3679 - content-type: - - text/plain; charset=utf-8 - date: - - Wed, 22 Jan 2020 06:16:52 GMT - etag: - - '"0x8D79F02942F4EEB"' - last-modified: - - Wed, 22 Jan 2020 06:16:12 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-blob-committed-block-count: - - '11' - x-ms-blob-type: - - AppendBlob - x-ms-creation-time: - - Wed, 22 Jan 2020 06:15:42 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-meta-complete: - - successful - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2018-03-28' - status: - code: 206 - message: Partial Content -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/1.4.2-1.5.0 (Python CPython 3.7.6; Windows 10) - x-ms-date: - - Wed, 22 Jan 2020 06:16:52 GMT - x-ms-version: - - '2018-03-28' - method: HEAD - uri: https://wusmanaged122.blob.core.windows.net/0681a922337d49ad88a4bbdb3e7724a9-qndgn6bayt/logs/cf1/rawtext.log?sv=2018-03-28&sr=b&sig=wRMKnlopGNaqnBJP0F%2BYP3D77IDC140MGOd0B%2BtOcBI%3D&se=2020-01-22T07%3A26%3A51Z&sp=r - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-disposition: - - '' - content-encoding: - - utf-8 - content-length: - - '3679' - content-type: - - text/plain; charset=utf-8 - date: - - Wed, 22 Jan 2020 06:16:52 GMT - etag: - - '"0x8D79F02942F4EEB"' - last-modified: - - Wed, 22 Jan 2020 06:16:12 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-blob-committed-block-count: - - '11' - x-ms-blob-type: - - AppendBlob - x-ms-creation-time: - - Wed, 22 Jan 2020 06:15:42 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-meta-complete: - - successful - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2018-03-28' - status: - code: 200 - message: OK - request: body: null headers: @@ -834,7 +523,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T06:15:14.6739161Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T06:15:16.2564009+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -843,7 +532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 06:16:53 GMT + - Wed, 22 Jan 2020 19:06:30 GMT expires: - '-1' pragma: @@ -892,7 +581,7 @@ interactions: content-length: - '0' date: - - Wed, 22 Jan 2020 06:16:53 GMT + - Wed, 22 Jan 2020 19:06:30 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index e5f985cec71..f4cbadd5510 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -39,15 +39,15 @@ def test_acr_taskrun(self, resource_group): self.check('[0].provisioningState', 'Succeeded'), self.check('[0].runRequest.type', 'DockerBuildRequest')]) - response=self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', - checks=[self.check('name', '{taskrun_name}'), - self.check('provisioningState', 'Succeeded'), - self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() + response = self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', + checks=[self.check('name', '{taskrun_name}'), + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() self.kwargs.update({ 'run_id': response['runResult']['runId'] }) - self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') - + #This step pass in real run but fail using recorded file + #self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg} -y') From 99cd4ad83eb169dbfcbbb468020affb1c32bba5a Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 11:26:02 -0800 Subject: [PATCH 16/27] Update taskrun_format_group to pick up the right value. --- .../azure/cli/command_modules/acr/_format.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 43a4444d1e0..78bcefb02e4 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -191,12 +191,12 @@ def _task_format_group(item): def _taskrun_format_group(item): return OrderedDict([ ('NAME', _get_value(item, 'name')), - ('RUN ID', _get_value(item, 'runId')), - ('TASK', _get_value(item, 'task')), - ('PLATFORM', _get_value(item, 'platform', 'os')), - ('STATUS', _get_value(item, 'status')), - ('STARTED', _format_datetime(_get_value(item, 'startTime'))), - ('DURATION', _get_duration(_get_value(item, 'startTime'), _get_value(item, 'finishTime'))) + ('RUN ID', _get_value(item, 'runResult', 'runId')), + ('TASK', _get_value(item, 'runResult', 'task')), + ('PLATFORM', _get_value(item, 'runResult', 'platform', 'os')), + ('STATUS', _get_value(item, 'runResult', 'status')), + ('STARTED', _format_datetime(_get_value(item, 'runResult', 'startTime'))), + ('DURATION', _get_duration(_get_value(item, 'runResult', 'startTime'), _get_value(item, 'runResult', 'finishTime'))) ]) From 365ee98bc57cfa8f6134854b0fa2eaecb5e5898f Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 11:37:23 -0800 Subject: [PATCH 17/27] Update help --- src/azure-cli/azure/cli/command_modules/acr/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index c36adb091f2..9884bc1d4ed 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -933,7 +933,7 @@ examples: - name: Show logs for a particular run. text: > - az acr task logs -r MyRegistry --run-id runId + az acr taskrun logs -r MyRegistry --run-id runId """ helps['acr token'] = """ From 091182ea55735140d7a89b0ea3f4d705fcb0e0f5 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 13:15:24 -0800 Subject: [PATCH 18/27] fix style error. --- src/azure-cli/azure/cli/command_modules/acr/_format.py | 6 ++++-- src/azure-cli/azure/cli/command_modules/acr/task.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 78bcefb02e4..7d7691c57fc 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -196,7 +196,8 @@ def _taskrun_format_group(item): ('PLATFORM', _get_value(item, 'runResult', 'platform', 'os')), ('STATUS', _get_value(item, 'runResult', 'status')), ('STARTED', _format_datetime(_get_value(item, 'runResult', 'startTime'))), - ('DURATION', _get_duration(_get_value(item, 'runResult', 'startTime'), _get_value(item, 'runResult', 'finishTime'))) + ('DURATION', _get_duration(_get_value(item, 'runResult', 'startTime'), + _get_value(item, 'runResult', 'finishTime'))) ]) @@ -209,7 +210,8 @@ def _build_format_group(item): ("TRIGGER", _get_build_trigger(_get_value(item, 'imageUpdateTrigger'), _get_value(item, 'sourceTrigger', 'eventType'))), ('STARTED', _format_datetime(_get_value(item, 'startTime'))), - ('DURATION', _get_duration(_get_value(item, 'startTime'), _get_value(item, 'finishTime'))) + ('DURATION', _get_duration(_get_value(item, 'startTime'), + _get_value(item, 'finishTime'))) ]) diff --git a/src/azure-cli/azure/cli/command_modules/acr/task.py b/src/azure-cli/azure/cli/command_modules/acr/task.py index 08a5802efc6..8b272d17eff 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/task.py +++ b/src/azure-cli/azure/cli/command_modules/acr/task.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +# pylint: disable=C0302 import re from msrest.exceptions import ValidationError from knack.log import get_logger From bddd06d823c05df0ee1df90a0f218553d5f9dc54 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 14:58:04 -0800 Subject: [PATCH 19/27] add indentation --- src/azure-cli/azure/cli/command_modules/acr/_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_format.py b/src/azure-cli/azure/cli/command_modules/acr/_format.py index 7d7691c57fc..64927fd83bf 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_format.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_format.py @@ -211,7 +211,7 @@ def _build_format_group(item): _get_value(item, 'sourceTrigger', 'eventType'))), ('STARTED', _format_datetime(_get_value(item, 'startTime'))), ('DURATION', _get_duration(_get_value(item, 'startTime'), - _get_value(item, 'finishTime'))) + _get_value(item, 'finishTime'))) ]) From e1f5f2ca5c007a572e5c4471909f03bbd2c75999 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Wed, 22 Jan 2020 15:20:48 -0800 Subject: [PATCH 20/27] fix style --- .../acr/tests/latest/test_acr_taskrun_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index f4cbadd5510..f643e4a21c2 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -48,6 +48,6 @@ def test_acr_taskrun(self, resource_group): 'run_id': response['runResult']['runId'] }) - #This step pass in real run but fail using recorded file - #self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') + # This step pass in real run but fail using recorded file + # self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg} -y') From f37316ae4fbc69b155099b83bbff13df87478b81 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 14:20:55 -0800 Subject: [PATCH 21/27] user taskrun_name when to get logs --- .../azure/cli/command_modules/acr/taskrun.py | 8 +++- .../latest/recordings/test_acr_taskrun.yaml | 48 +++++++++---------- .../tests/latest/test_acr_taskrun_commands.py | 8 +--- 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index d5e5442d9f3..27ba54bbcb4 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -49,8 +49,14 @@ def acr_taskrun_delete(cmd, def acr_taskrun_logs(cmd, client, # cf_acr_runs registry_name, - run_id=None, + taskrun_name, resource_group_name=None): _, resource_group_name = validate_managed_registry( cmd, registry_name, resource_group_name, TASKRUN_NOT_SUPPORTED) + + from ._client_factory import cf_acr_taskruns + client_taskruns = cf_acr_taskruns(cmd.cli_ctx) + response = acr_taskrun_show(cmd, client_taskruns, taskrun_name, registry_name) + run_id = response.run_result.run_id + return stream_logs(client, run_id, registry_name, resource_group_name) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml index b1830f46e57..8bd7a537465 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_taskrun.yaml @@ -26,7 +26,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-23T22:18:07.7392046Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-23T22:18:09.2652095+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -35,7 +35,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:04:56 GMT + - Thu, 23 Jan 2020 22:18:09 GMT expires: - '-1' pragma: @@ -104,10 +104,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-22T19:04:58.1952008Z","duration":"PT0.2867374S","correlationId":"a7f53666-fd6a-4a8a-a10b-acf3f1eeca98","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-23T22:18:10.3536738Z","duration":"PT0.3252775S","correlationId":"67906a7f-3687-4529-b64a-815cc997ebaa","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586218869875691558?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample/operationStatuses/08586217889954492342?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -115,7 +115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:04:57 GMT + - Thu, 23 Jan 2020 22:18:10 GMT expires: - '-1' pragma: @@ -147,7 +147,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586217889954492342?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -159,7 +159,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:05:27 GMT + - Thu, 23 Jan 2020 22:18:39 GMT expires: - '-1' pragma: @@ -191,7 +191,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586217889954492342?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -203,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:05:58 GMT + - Thu, 23 Jan 2020 22:19:11 GMT expires: - '-1' pragma: @@ -235,7 +235,7 @@ interactions: - python/3.7.6 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586218869875691558?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586217889954492342?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -247,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:27 GMT + - Thu, 23 Jan 2020 22:19:40 GMT expires: - '-1' pragma: @@ -282,7 +282,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-22T19:06:15.7101136Z","duration":"PT1M17.8016502S","correlationId":"a7f53666-fd6a-4a8a-a10b-acf3f1eeca98","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/taskrunquickbuildsample","name":"taskrunquickbuildsample","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13112214626039113742","parameters":{"location":{"type":"String","value":"westus"},"registryName":{"type":"String","value":"clireg000002"},"taskRunName":{"type":"String","value":"testTaskRun"},"sourceLocation":{"type":"String","value":"https://github.com/Azure-Samples/acr-build-helloworld-node.git"},"dockerFilePath":{"type":"String","value":"Dockerfile"},"image":{"type":"String","value":"testtaskrun:v1"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-23T22:19:34.4930631Z","duration":"PT1M24.4646668S","correlationId":"67906a7f-3687-4529-b64a-815cc997ebaa","providers":[{"namespace":"Microsoft.ContainerRegistry","resourceTypes":[{"resourceType":"registries/taskRuns","locations":["westus"]}]}],"dependencies":[],"outputs":{"taskRunName":{"type":"String","value":"testTaskRun"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun"}]}}' headers: cache-control: - no-cache @@ -291,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:27 GMT + - Thu, 23 Jan 2020 22:19:41 GMT expires: - '-1' pragma: @@ -327,7 +327,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-23T22:18:07.7392046Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-23T22:18:09.2652095+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -336,7 +336,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:28 GMT + - Thu, 23 Jan 2020 22:19:41 GMT expires: - '-1' pragma: @@ -376,7 +376,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns?api-version=2019-06-01-preview response: body: - string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T19:05:54+00:00","runType":"QuickRun","createTime":"2020-01-22T19:05:27.7329193+00:00","startTime":"2020-01-22T19:05:27.9380087+00:00","finishTime":"2020-01-22T19:05:54.3428317+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:e3b24f2d42c1e845e00f593c5f41fba4162284601ea17837144c37a4e6d618de"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' + string: '{"value":[{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-23T22:19:31+00:00","runType":"QuickRun","createTime":"2020-01-23T22:18:58.1296617+00:00","startTime":"2020-01-23T22:18:58.3563613+00:00","finishTime":"2020-01-23T22:19:31.4676834+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:56a30f7feba1248d0c2aa96bfefe90d9581a78a853d0ed9d3d395d09d81f2717"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}]}' headers: cache-control: - no-cache @@ -385,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:28 GMT + - Thu, 23 Jan 2020 22:19:42 GMT expires: - '-1' pragma: @@ -425,7 +425,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-23T22:18:07.7392046Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-23T22:18:09.2652095+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -434,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:29 GMT + - Thu, 23 Jan 2020 22:19:43 GMT expires: - '-1' pragma: @@ -474,7 +474,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun?api-version=2019-06-01-preview response: body: - string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-22T19:05:54+00:00","runType":"QuickRun","createTime":"2020-01-22T19:05:27.7329193+00:00","startTime":"2020-01-22T19:05:27.9380087+00:00","finishTime":"2020-01-22T19:05:54.3428317+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:e3b24f2d42c1e845e00f593c5f41fba4162284601ea17837144c37a4e6d618de"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' + string: '{"type":"Microsoft.ContainerRegistry/registries/taskRuns","properties":{"provisioningState":"Succeeded","runRequest":{"type":"DockerBuildRequest","imageNames":["testtaskrun:v1"],"isPushEnabled":true,"noCache":false,"dockerFilePath":"Dockerfile","platform":{"os":"linux","architecture":"amd64"},"sourceLocation":"https://github.com/Azure-Samples/acr-build-helloworld-node.git","credentials":{},"isArchiveEnabled":true},"runResult":{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Succeeded","lastUpdatedTime":"2020-01-23T22:19:31+00:00","runType":"QuickRun","createTime":"2020-01-23T22:18:58.1296617+00:00","startTime":"2020-01-23T22:18:58.3563613+00:00","finishTime":"2020-01-23T22:19:31.4676834+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"testtaskrun","tag":"v1","digest":"sha256:56a30f7feba1248d0c2aa96bfefe90d9581a78a853d0ed9d3d395d09d81f2717"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":true},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/taskRuns/testTaskRun","name":"testTaskRun","location":"WESTUS"}' headers: cache-control: - no-cache @@ -483,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:29 GMT + - Thu, 23 Jan 2020 22:19:42 GMT expires: - '-1' pragma: @@ -523,7 +523,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2019-05-01 response: body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-22T19:04:53.8320649Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-22T19:04:56.9961661+00:00","status":"disabled"}}}}' + string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2020-01-23T22:18:07.7392046Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2020-01-23T22:18:09.2652095+00:00","status":"disabled"}}}}' headers: cache-control: - no-cache @@ -532,7 +532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jan 2020 19:06:30 GMT + - Thu, 23 Jan 2020 22:19:43 GMT expires: - '-1' pragma: @@ -581,7 +581,7 @@ interactions: content-length: - '0' date: - - Wed, 22 Jan 2020 19:06:30 GMT + - Thu, 23 Jan 2020 22:19:44 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index f643e4a21c2..fe171e2615d 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -39,15 +39,11 @@ def test_acr_taskrun(self, resource_group): self.check('[0].provisioningState', 'Succeeded'), self.check('[0].runRequest.type', 'DockerBuildRequest')]) - response = self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', + self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', checks=[self.check('name', '{taskrun_name}'), self.check('provisioningState', 'Succeeded'), self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() - self.kwargs.update({ - 'run_id': response['runResult']['runId'] - }) - # This step pass in real run but fail using recorded file - # self.cmd('acr taskrun logs -r {registry_name} --run-id {run_id} -g {rg}') + # self.cmd('acr taskrun logs -r {registry_name} -n {taskrun_name} -g {rg}') self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg} -y') From 30a14eab131968ecdc412986f446b1c219422ed5 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 14:28:16 -0800 Subject: [PATCH 22/27] Update help for taskrun logs command update --- src/azure-cli/azure/cli/command_modules/acr/_help.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_help.py b/src/azure-cli/azure/cli/command_modules/acr/_help.py index 9884bc1d4ed..c90c30683f9 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_help.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_help.py @@ -929,11 +929,11 @@ helps['acr taskrun logs'] = """ type: command -short-summary: Show logs for a particular run. +short-summary: Show run logs for a particular taskrun. examples: - - name: Show logs for a particular run. + - name: Show run logs for a particular taskrun. text: > - az acr taskrun logs -r MyRegistry --run-id runId + az acr taskrun logs -r MyRegistry -n MyTaskRun """ helps['acr token'] = """ From 5629f40ecbc452b67384f49fd904707a6750c697 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 14:39:23 -0800 Subject: [PATCH 23/27] update style --- .../acr/tests/latest/test_acr_taskrun_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index fe171e2615d..77f49aa2d68 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -40,9 +40,9 @@ def test_acr_taskrun(self, resource_group): self.check('[0].runRequest.type', 'DockerBuildRequest')]) self.cmd('acr taskrun show -r {registry_name} -n {taskrun_name} -g {rg}', - checks=[self.check('name', '{taskrun_name}'), - self.check('provisioningState', 'Succeeded'), - self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() + checks=[self.check('name', '{taskrun_name}'), + self.check('provisioningState', 'Succeeded'), + self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() # This step pass in real run but fail using recorded file # self.cmd('acr taskrun logs -r {registry_name} -n {taskrun_name} -g {rg}') From d05154b0d48bba8575dc3e48d94a48936deded75 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 14:48:55 -0800 Subject: [PATCH 24/27] remove run_id from taskrun parameters --- src/azure-cli/azure/cli/command_modules/acr/_params.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/_params.py b/src/azure-cli/azure/cli/command_modules/acr/_params.py index a83a918e4a5..88de5dec4e1 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_params.py @@ -239,7 +239,6 @@ def load_arguments(self, _): # pylint: disable=too-many-statements with self.argument_context('acr taskrun') as c: c.argument('registry_name', options_list=['--registry', '-r']) - c.argument('run_id', help='The unique run identifier.') c.argument('taskrun_name', options_list=['--name', '-n'], help='The name of the taskrun.', completer=get_resource_name_completion_list(TASKRUN_RESOURCE_TYPE)) with self.argument_context('acr helm') as c: From a9f1a7011847ec0cde75476ac589640832434e7d Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 14:58:35 -0800 Subject: [PATCH 25/27] update comments --- .../acr/tests/latest/test_acr_taskrun_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py index 77f49aa2d68..8f65f6d9a8a 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_taskrun_commands.py @@ -44,6 +44,6 @@ def test_acr_taskrun(self, resource_group): self.check('provisioningState', 'Succeeded'), self.check('runRequest.type', 'DockerBuildRequest')]).get_output_in_json() - # This step pass in real run but fail using recorded file + # This step passes in real run but fails using recorded file # self.cmd('acr taskrun logs -r {registry_name} -n {taskrun_name} -g {rg}') self.cmd('acr taskrun delete -r {registry_name} -n {taskrun_name} -g {rg} -y') From 37a6d546642d96dbdb758a42da58fcc00b1e079e Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 20:46:28 -0800 Subject: [PATCH 26/27] Call client.get to get the taskrun --- src/azure-cli/azure/cli/command_modules/acr/taskrun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py index 27ba54bbcb4..f3c59d76e67 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/taskrun.py +++ b/src/azure-cli/azure/cli/command_modules/acr/taskrun.py @@ -56,7 +56,7 @@ def acr_taskrun_logs(cmd, from ._client_factory import cf_acr_taskruns client_taskruns = cf_acr_taskruns(cmd.cli_ctx) - response = acr_taskrun_show(cmd, client_taskruns, taskrun_name, registry_name) + response = client_taskruns.get(resource_group_name, registry_name, taskrun_name) run_id = response.run_result.run_id return stream_logs(client, run_id, registry_name, resource_group_name) From f958caab503fb7009164613bbc5a99fdfe5581d9 Mon Sep 17 00:00:00 2001 From: Huangli Wu Date: Thu, 23 Jan 2020 23:08:44 -0800 Subject: [PATCH 27/27] Trigger notification