provider/azure: fix hosted service acctest

Just some basic bitrot stuff.
This commit is contained in:
Paul Hinze 2015-11-19 16:28:24 -06:00
parent 75d056c878
commit 3d089143c6

View File

@ -58,7 +58,7 @@ func TestAccAzureInstance_separateHostedService(t *testing.T) {
"azure_instance.foo", testAccHostedServiceName, &dpmt), "azure_instance.foo", testAccHostedServiceName, &dpmt),
testAccCheckAzureInstanceBasicAttributes(&dpmt), testAccCheckAzureInstanceBasicAttributes(&dpmt),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"azure_instance.foo", "name", "terraform-test"), "azure_instance.foo", "name", instanceName),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"azure_instance.foo", "hosted_service_name", "terraform-testing-service"), "azure_instance.foo", "hosted_service_name", "terraform-testing-service"),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
@ -392,8 +392,8 @@ resource "azure_hosted_service" "foo" {
} }
resource "azure_instance" "foo" { resource "azure_instance" "foo" {
name = "terraform-test" name = "%s"
hosted_service_name = "${azure_hosted_service.foo.name}" hosted_service_name = "${azure_hosted_service.foo.name}"
image = "Ubuntu Server 14.04 LTS" image = "Ubuntu Server 14.04 LTS"
size = "Basic_A1" size = "Basic_A1"
storage_service_name = "%s" storage_service_name = "%s"
@ -407,7 +407,7 @@ resource "azure_instance" "foo" {
public_port = 22 public_port = 22
private_port = 22 private_port = 22
} }
}`, testAccHostedServiceName, testAccStorageServiceName) }`, testAccHostedServiceName, instanceName, testAccStorageServiceName)
var testAccAzureInstance_advanced = fmt.Sprintf(` var testAccAzureInstance_advanced = fmt.Sprintf(`
resource "azure_virtual_network" "foo" { resource "azure_virtual_network" "foo" {