Skip to content

Commit

Permalink
Upgrading the new container service test
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Oct 5, 2017
1 parent 0c75135 commit 3539591
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions azurerm/resource_arm_container_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,63 +275,64 @@ resource "azurerm_container_group" "test" {

func testAccAzureRMContainerGroup_linuxComplete(ri int, location string) string {
return fmt.Sprintf(`
resource "azurerm_resource_group" "test" {
name = "acctestRG-%d"
location = "%s"
}
resource "azurerm_storage_account" "test" {
name = "accsa%d"
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"
account_type = "Standard_LRS"
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-%d"
location = "%s"
}
resource "azurerm_storage_account" "test" {
name = "accsa%d"
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_share" "test" {
name = "acctestss-%d"
resource "azurerm_storage_share" "test" {
name = "acctestss-%d"
resource_group_name = "${azurerm_resource_group.test.name}"
storage_account_name = "${azurerm_storage_account.test.name}"
quota = 50
}
resource_group_name = "${azurerm_resource_group.test.name}"
resource "azurerm_container_group" "test" {
name = "acctestcontainergroup-%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
ip_address_type = "public"
os_type = "linux"
container {
name = "hf"
image = "seanmckenna/aci-hellofiles"
cpu = "1"
memory = "1.5"
port = "80"
protocol = "TCP"
volume {
name = "logs"
mount_path = "/aci/logs"
read_only = false
share_name = "${azurerm_storage_share.test.name}"
storage_account_name = "${azurerm_storage_account.test.name}"
quota = 50
storage_account_key = "${azurerm_storage_account.test.primary_access_key}"
}
environment_variables {
"foo" = "bar"
"foo1" = "bar1"
}
command = "/bin/bash -c ls"
}
resource "azurerm_container_group" "test" {
name = "acctestcontainergroup-%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
ip_address_type = "public"
os_type = "linux"
container {
name = "hf"
image = "seanmckenna/aci-hellofiles"
cpu = "1"
memory = "1.5"
port = "80"
protocol = "TCP"
volume {
name = "logs"
mount_path = "/aci/logs"
read_only = false
share_name = "${azurerm_storage_share.test.name}"
storage_account_name = "${azurerm_storage_account.test.name}"
storage_account_key = "${azurerm_storage_account.test.primary_access_key}"
}
environment_variables {
"foo" = "bar"
"foo1" = "bar1"
}
command = "/bin/bash -c ls"
}
tags {
environment = "Testing"
}
tags {
environment = "Testing"
}
}
`, ri, location, ri, ri, ri)
}

Expand Down

0 comments on commit 3539591

Please sign in to comment.