Clarify test is for panic fix

point to github issue
This commit is contained in:
Jake Champlin 2017-04-12 09:24:42 -04:00
parent db7fe7fe77
commit 1cb1342a2b
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 5 additions and 3 deletions

View File

@ -184,7 +184,8 @@ func TestAccAWSRouteTable_tags(t *testing.T) {
})
}
func TestAccAWSRouteTable_panic(t *testing.T) {
// For GH-13545, Fixes panic on an empty route config block
func TestAccAWSRouteTable_panicEmptyRoute(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_route_table.foo",
@ -192,7 +193,7 @@ func TestAccAWSRouteTable_panic(t *testing.T) {
CheckDestroy: testAccCheckRouteTableDestroy,
Steps: []resource.TestStep{
{
Config: testAccRouteTableConfigPanic,
Config: testAccRouteTableConfigPanicEmptyRoute,
ExpectError: regexp.MustCompile("The request must contain the parameter destinationCidrBlock or destinationIpv6CidrBlock"),
},
},
@ -514,7 +515,8 @@ resource "aws_route_table" "foo" {
}
`
const testAccRouteTableConfigPanic = `
// For GH-13545
const testAccRouteTableConfigPanicEmptyRoute = `
resource "aws_vpc" "foo" {
cidr_block = "10.2.0.0/16"
}