provider/azure: Fix acceptance tests

This commit is contained in:
James Nugent 2016-01-08 09:20:49 -08:00
parent f4cf4e89e8
commit c3bcd6ac3a
1 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ func TestAccAzureInstance_update(t *testing.T) {
resource.TestCheckResourceAttr(
"azure_instance.foo", "size", "Basic_A2"),
resource.TestCheckResourceAttr(
"azure_instance.foo", "security_group", "terraform-security-group2"),
"azure_instance.foo", "security_group", "terraform-security-update-group2"),
resource.TestCheckResourceAttr(
"azure_instance.foo", "endpoint.1814039778.public_port", "3389"),
resource.TestCheckResourceAttr(
@ -338,7 +338,7 @@ func testAccCheckAzureInstanceUpdatedAttributes(
return fmt.Errorf("Bad name: %s", dpmt.Name)
}
if dpmt.VirtualNetworkName != "terraform-vnet" {
if dpmt.VirtualNetworkName != "terraform-vnet-update-test" {
return fmt.Errorf("Bad virtual network: %s", dpmt.VirtualNetworkName)
}
@ -377,7 +377,7 @@ func testAccCheckAzureInstanceUpdatedAttributes(
return fmt.Errorf("Bad subnet: %s", c.SubnetNames[0])
}
if c.NetworkSecurityGroup != "terraform-security-group2" {
if c.NetworkSecurityGroup != "terraform-security-update-group2" {
return fmt.Errorf("Bad security group: %s", c.NetworkSecurityGroup)
}
}