mirror of https://github.com/hashicorp/packer
Added acceptance tests for DTL. Fixed couple of issues with DTL root resource group not set to new directory
parent
69015b1870
commit
b7d85b8a23
@ -0,0 +1,72 @@
|
||||
{
|
||||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"defaultValue": "packer-acceptance-test"
|
||||
},
|
||||
"regionId": {
|
||||
"type": "string",
|
||||
"defaultValue": "southcentralus"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2018-10-15-preview",
|
||||
"name": "[parameters('name')]",
|
||||
"type": "Microsoft.DevTestLab/labs",
|
||||
"location": "[parameters('regionId')]",
|
||||
"tags": {
|
||||
"env": "packer"
|
||||
},
|
||||
"properties": {
|
||||
"labStorageType": "Premium"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2018-10-15-preview",
|
||||
"name": "LabVmsShutdown",
|
||||
"location": "[parameters('regionId')]",
|
||||
"type": "schedules",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.DevTestLab/labs', parameters('name'))]"
|
||||
],
|
||||
"properties": {
|
||||
"status": "Enabled",
|
||||
"timeZoneId": "Pacific Standard Time",
|
||||
"dailyRecurrence": {
|
||||
"time": "1900"
|
||||
},
|
||||
"taskType": "LabVmsShutdownTask",
|
||||
"notificationSettings": {
|
||||
"status": "Disabled",
|
||||
"timeInMinutes": 30
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2018-10-15-preview",
|
||||
"name": "[concat('Dtl', parameters('name'))]",
|
||||
"type": "virtualNetworks",
|
||||
"location": "[parameters('regionId')]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.DevTestLab/labs', parameters('name'))]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"apiVersion": "2018-10-15-preview",
|
||||
"name": "Public Environment Repo",
|
||||
"type": "artifactSources",
|
||||
"location": "[parameters('regionId')]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.DevTestLab/labs', parameters('name'))]"
|
||||
],
|
||||
"properties": {
|
||||
"status": "Enabled"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,102 +0,0 @@
|
||||
(2020-01-03T11:14:50.7650470-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081?api-version=2016-06-01
|
||||
User-Agent: Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 subscriptions/2016-06-01
|
||||
(2020-01-03T11:14:51.1254910-08:00) INFO: RESPONSE: 401 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081?api-version=2016-06-01
|
||||
X-Ms-Failure-Cause: gateway
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191448Z:cfef32b3-e72f-4b06-849e-aedf98a3baf0
|
||||
Date: Fri, 03 Jan 2020 19:14:48 GMT
|
||||
Cache-Control: no-cache
|
||||
Expires: -1
|
||||
Content-Length: 115
|
||||
X-Ms-Request-Id: cfef32b3-e72f-4b06-849e-aedf98a3baf0
|
||||
X-Ms-Correlation-Request-Id: cfef32b3-e72f-4b06-849e-aedf98a3baf0
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
Pragma: no-cache
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Www-Authenticate: Bearer authorization_uri="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47", error="invalid_token", error_description="The authentication failed because of missing 'Authorization' header."
|
||||
X-Content-Type-Options: nosniff
|
||||
{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}}
|
||||
(2020-01-03T11:14:51.3698460-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups/packer-acceptance-test/providers/Microsoft.DevTestLab/labs//customimages/testBuilderAccManagedDiskWindows-1578078890?api-version=2018-09-15
|
||||
User-Agent: Packer/1.5.0-dev (+https://www.packer.io/; go1.13.1; darwin/amd64) Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 dtl/2018-09-15
|
||||
Authorization: **REDACTED**
|
||||
(2020-01-03T11:14:51.5297600-08:00) INFO: RESPONSE: 404 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups/packer-acceptance-test/providers/Microsoft.DevTestLab/labs//customimages/testBuilderAccManagedDiskWindows-1578078890?api-version=2018-09-15
|
||||
X-Ms-Failure-Cause: gateway
|
||||
X-Ms-Request-Id: 0464a3f7-cf7e-456e-bffc-451f4fa1e12d
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
X-Content-Type-Options: nosniff
|
||||
Content-Length: 114
|
||||
Pragma: no-cache
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Expires: -1
|
||||
Date: Fri, 03 Jan 2020 19:14:48 GMT
|
||||
Cache-Control: no-cache
|
||||
X-Ms-Correlation-Request-Id: 0464a3f7-cf7e-456e-bffc-451f4fa1e12d
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191449Z:0464a3f7-cf7e-456e-bffc-451f4fa1e12d
|
||||
{"error":{"code":"ResourceGroupNotFound","message":"Resource group 'packer-acceptance-test' could not be found."}}
|
||||
(2020-01-03T11:14:51.5392840-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups//providers/Microsoft.DevTestLab/labs/?api-version=2018-09-15
|
||||
Authorization: **REDACTED**
|
||||
User-Agent: Packer/1.5.0-dev (+https://www.packer.io/; go1.13.1; darwin/amd64) Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 dtl/2018-09-15
|
||||
(2020-01-03T11:14:51.5804680-08:00) INFO: RESPONSE: 400 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups//providers/Microsoft.DevTestLab/labs/?api-version=2018-09-15
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
Date: Fri, 03 Jan 2020 19:14:48 GMT
|
||||
Cache-Control: no-cache
|
||||
Pragma: no-cache
|
||||
Content-Type: application/json; charset=utf-8
|
||||
X-Ms-Failure-Cause: gateway
|
||||
X-Ms-Request-Id: 8b3aeb52-7eea-47d6-b0a1-f58aa0e3bed6
|
||||
Expires: -1
|
||||
X-Ms-Correlation-Request-Id: 8b3aeb52-7eea-47d6-b0a1-f58aa0e3bed6
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191449Z:8b3aeb52-7eea-47d6-b0a1-f58aa0e3bed6
|
||||
X-Content-Type-Options: nosniff
|
||||
Content-Length: 520
|
||||
{"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2018-09-15' is invalid. The supported versions are '2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}}
|
||||
(2020-01-03T11:14:52.5925920-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081?api-version=2016-06-01
|
||||
User-Agent: Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 subscriptions/2016-06-01
|
||||
(2020-01-03T11:14:52.7012490-08:00) INFO: RESPONSE: 401 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081?api-version=2016-06-01
|
||||
Www-Authenticate: Bearer authorization_uri="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47", error="invalid_token", error_description="The authentication failed because of missing 'Authorization' header."
|
||||
X-Ms-Failure-Cause: gateway
|
||||
Content-Length: 115
|
||||
Content-Type: application/json; charset=utf-8
|
||||
X-Ms-Request-Id: a970f18e-ca06-42ee-b2d0-541640aeaf3f
|
||||
X-Ms-Correlation-Request-Id: a970f18e-ca06-42ee-b2d0-541640aeaf3f
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191450Z:a970f18e-ca06-42ee-b2d0-541640aeaf3f
|
||||
Expires: -1
|
||||
Cache-Control: no-cache
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
X-Content-Type-Options: nosniff
|
||||
Date: Fri, 03 Jan 2020 19:14:49 GMT
|
||||
Pragma: no-cache
|
||||
{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}}
|
||||
(2020-01-03T11:14:53.1100660-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups/packer-acceptance-test/providers/Microsoft.DevTestLab/labs//customimages/testBuilderAccManagedDiskLinux-1578078890?api-version=2018-09-15
|
||||
User-Agent: Packer/1.5.0-dev (+https://www.packer.io/; go1.13.1; darwin/amd64) Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 dtl/2018-09-15
|
||||
Authorization: **REDACTED**
|
||||
(2020-01-03T11:14:53.2497970-08:00) INFO: RESPONSE: 404 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups/packer-acceptance-test/providers/Microsoft.DevTestLab/labs//customimages/testBuilderAccManagedDiskLinux-1578078890?api-version=2018-09-15
|
||||
X-Ms-Request-Id: d9969a0a-be31-424a-b4ad-5006a44590d0
|
||||
X-Ms-Correlation-Request-Id: d9969a0a-be31-424a-b4ad-5006a44590d0
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191450Z:d9969a0a-be31-424a-b4ad-5006a44590d0
|
||||
Cache-Control: no-cache
|
||||
Pragma: no-cache
|
||||
Content-Type: application/json; charset=utf-8
|
||||
X-Content-Type-Options: nosniff
|
||||
Date: Fri, 03 Jan 2020 19:14:50 GMT
|
||||
Content-Length: 114
|
||||
Expires: -1
|
||||
X-Ms-Failure-Cause: gateway
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
{"error":{"code":"ResourceGroupNotFound","message":"Resource group 'packer-acceptance-test' could not be found."}}
|
||||
(2020-01-03T11:14:53.2628590-08:00) INFO: REQUEST: GET https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups//providers/Microsoft.DevTestLab/labs/?api-version=2018-09-15
|
||||
User-Agent: Packer/1.5.0-dev (+https://www.packer.io/; go1.13.1; darwin/amd64) Go/go1.13.1 (amd64-darwin) go-autorest/v12.0.0 Azure-SDK-For-Go/v30.0.0 dtl/2018-09-15
|
||||
Authorization: **REDACTED**
|
||||
(2020-01-03T11:14:53.3067870-08:00) INFO: RESPONSE: 400 https://management.azure.com/subscriptions/cba4e087-aceb-44f0-970e-65e96eff4081/resourceGroups//providers/Microsoft.DevTestLab/labs/?api-version=2018-09-15
|
||||
Pragma: no-cache
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Expires: -1
|
||||
X-Content-Type-Options: nosniff
|
||||
Content-Length: 520
|
||||
Cache-Control: no-cache
|
||||
X-Ms-Failure-Cause: gateway
|
||||
X-Ms-Request-Id: de1644d3-f44e-4639-95ba-f1aeb8f4032d
|
||||
X-Ms-Correlation-Request-Id: de1644d3-f44e-4639-95ba-f1aeb8f4032d
|
||||
X-Ms-Routing-Request-Id: WESTUS:20200103T191450Z:de1644d3-f44e-4639-95ba-f1aeb8f4032d
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
||||
Date: Fri, 03 Jan 2020 19:14:50 GMT
|
||||
{"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2018-09-15' is invalid. The supported versions are '2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}}
|
||||
Loading…
Reference in new issue