Skip to content

Commit fd43b8f

Browse files
20200515 run resource live test (#11454)
* correct test_mgmt_resource.py and live run it * add mgmt-release-stats tool
1 parent f152b5f commit fd43b8f

11 files changed

+1110
-564
lines changed

sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ interactions:
1515
Content-Type:
1616
- application/json; charset=utf-8
1717
User-Agent:
18-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
19-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
18+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
19+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
2020
accept-language:
2121
- en-US
2222
method: PUT
2323
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-10-01
2424
response:
2525
body:
26-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-04-02T07:48:07.8418825Z","duration":"PT2.1226093S","correlationId":"2da14606-a8a6-4a98-b064-1af4072df3d7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'
26+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-05-15T02:22:58.4446165Z","duration":"PT2.531128S","correlationId":"e7173cde-2c82-474f-b67a-82a21a846982","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'
2727
headers:
2828
azure-asyncoperation:
29-
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586157931997583319?api-version=2019-10-01
29+
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586120975095641279?api-version=2019-10-01
3030
cache-control:
3131
- no-cache
3232
content-length:
33-
- '1052'
33+
- '1051'
3434
content-type:
3535
- application/json; charset=utf-8
3636
date:
37-
- Thu, 02 Apr 2020 07:48:08 GMT
37+
- Fri, 15 May 2020 02:22:59 GMT
3838
expires:
3939
- '-1'
4040
pragma:
@@ -58,10 +58,10 @@ interactions:
5858
Connection:
5959
- keep-alive
6060
User-Agent:
61-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
62-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
61+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
62+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
6363
method: GET
64-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586157931997583319?api-version=2019-10-01
64+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586120975095641279?api-version=2019-10-01
6565
response:
6666
body:
6767
string: '{"status":"Succeeded"}'
@@ -73,7 +73,7 @@ interactions:
7373
content-type:
7474
- application/json; charset=utf-8
7575
date:
76-
- Thu, 02 Apr 2020 07:48:40 GMT
76+
- Fri, 15 May 2020 02:23:31 GMT
7777
expires:
7878
- '-1'
7979
pragma:
@@ -97,13 +97,13 @@ interactions:
9797
Connection:
9898
- keep-alive
9999
User-Agent:
100-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
101-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
100+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
101+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
102102
method: GET
103103
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-10-01
104104
response:
105105
body:
106-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-04-02T07:48:17.3861275Z","duration":"PT11.6668543S","correlationId":"2da14606-a8a6-4a98-b064-1af4072df3d7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'
106+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-15T02:23:14.1286101Z","duration":"PT18.2151216S","correlationId":"e7173cde-2c82-474f-b67a-82a21a846982","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'
107107
headers:
108108
cache-control:
109109
- no-cache
@@ -112,7 +112,7 @@ interactions:
112112
content-type:
113113
- application/json; charset=utf-8
114114
date:
115-
- Thu, 02 Apr 2020 07:48:40 GMT
115+
- Fri, 15 May 2020 02:23:31 GMT
116116
expires:
117117
- '-1'
118118
pragma:
@@ -136,15 +136,15 @@ interactions:
136136
Connection:
137137
- keep-alive
138138
User-Agent:
139-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
140-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
139+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
140+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
141141
accept-language:
142142
- en-US
143143
method: GET
144144
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/?api-version=2019-10-01
145145
response:
146146
body:
147-
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-04-02T07:48:17.3861275Z","duration":"PT11.6668543S","correlationId":"2da14606-a8a6-4a98-b064-1af4072df3d7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'
147+
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-15T02:23:14.1286101Z","duration":"PT18.2151216S","correlationId":"e7173cde-2c82-474f-b67a-82a21a846982","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'
148148
headers:
149149
cache-control:
150150
- no-cache
@@ -153,7 +153,7 @@ interactions:
153153
content-type:
154154
- application/json; charset=utf-8
155155
date:
156-
- Thu, 02 Apr 2020 07:48:42 GMT
156+
- Fri, 15 May 2020 02:23:32 GMT
157157
expires:
158158
- '-1'
159159
pragma:
@@ -177,15 +177,15 @@ interactions:
177177
Connection:
178178
- keep-alive
179179
User-Agent:
180-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
181-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
180+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
181+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
182182
accept-language:
183183
- en-US
184184
method: GET
185185
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-10-01
186186
response:
187187
body:
188-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-04-02T07:48:17.3861275Z","duration":"PT11.6668543S","correlationId":"2da14606-a8a6-4a98-b064-1af4072df3d7","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'
188+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"17784735771325130982","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-15T02:23:14.1286101Z","duration":"PT18.2151216S","correlationId":"e7173cde-2c82-474f-b67a-82a21a846982","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'
189189
headers:
190190
cache-control:
191191
- no-cache
@@ -194,7 +194,7 @@ interactions:
194194
content-type:
195195
- application/json; charset=utf-8
196196
date:
197-
- Thu, 02 Apr 2020 07:48:42 GMT
197+
- Fri, 15 May 2020 02:23:32 GMT
198198
expires:
199199
- '-1'
200200
pragma:

sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ interactions:
1515
Content-Type:
1616
- application/json; charset=utf-8
1717
User-Agent:
18-
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.4.34
19-
azure-mgmt-resource/8.0.1 Azure-SDK-For-Python
18+
- python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3
19+
azure-mgmt-resource/9.0.0 Azure-SDK-For-Python
2020
accept-language:
2121
- en-US
2222
method: PUT
@@ -25,7 +25,7 @@ interactions:
2525
body:
2626
string: '{"error":{"code":"InvalidTemplateDeployment","message":"The template
2727
deployment ''pytestlinkedafa117b7'' is not valid according to the validation
28-
procedure. The tracking id is ''c5f19977-b1ef-489b-936e-a2ea28fd15b0''. See
28+
procedure. The tracking id is ''5045ae07-718d-4811-9151-562da02f8990''. See
2929
inner errors for details.","details":[{"code":"InvalidDomainNameLabel","message":"The
3030
domain name label GEN-UNIQUE is invalid. It must conform to the following
3131
regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.","details":[]}]}}'
@@ -37,7 +37,7 @@ interactions:
3737
content-type:
3838
- application/json; charset=utf-8
3939
date:
40-
- Thu, 02 Apr 2020 07:48:54 GMT
40+
- Fri, 15 May 2020 02:23:43 GMT
4141
expires:
4242
- '-1'
4343
pragma:

0 commit comments

Comments
 (0)