Skip to content

Commit

Permalink
.12 test cfg fixes (#3309)
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte authored Apr 25, 2019
1 parent 1bbee9e commit cf21949
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
3 changes: 3 additions & 0 deletions azurerm/data_source_batch_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ func dataSourceArmBatchCertificate() *schema.Resource {
Required: true,
ValidateFunc: validateAzureRMBatchCertificateName,
},

"account_name": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateAzureRMBatchAccountName,
},

"resource_group_name": resourceGroupNameForDataSourceSchema(),

"public_data": {
Type: schema.TypeString,
Computed: true,
Expand Down
9 changes: 5 additions & 4 deletions azurerm/resource_arm_api_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,11 @@ func resourceArmApiManagementService() *schema.Resource {
},

"policy": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
ConfigMode: schema.SchemaConfigModeAttr,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"xml_content": {
Expand Down
23 changes: 13 additions & 10 deletions azurerm/resource_arm_batch_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -902,16 +902,19 @@ resource "azurerm_batch_pool" "test" {
offer = "UbuntuServer"
sku = "16.04.0-LTS"
version = "latest"
}
certificate = [ {
id = "${azurerm_batch_certificate.testcer.id}"
store_location = "CurrentUser"
visibility = [ "StartTask" ]
}, {
id = "${azurerm_batch_certificate.testpfx.id}"
store_location = "CurrentUser"
visibility = [ "StartTask", "RemoteUser" ]
}]
}
certificate {
id = "${azurerm_batch_certificate.testcer.id}"
store_location = "CurrentUser"
visibility = [ "StartTask" ]
}
certificate {
id = "${azurerm_batch_certificate.testpfx.id}"
store_location = "CurrentUser"
visibility = [ "StartTask", "RemoteUser" ]
}
}
`, rInt, location, rString, rString)
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_container_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ resource "azurerm_container_group" "test" {
protocol = "TCP"
}
gpu = {
gpu {
count = 1
sku = "K80"
}
Expand Down

0 comments on commit cf21949

Please sign in to comment.