Skip to content

Commit

Permalink
add acceptance test for db subnet group
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan30erd committed Jul 6, 2018
1 parent 22b84e4 commit 1642c12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws/resource_aws_db_subnet_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func TestAccAWSDBSubnetGroup_basic(t *testing.T) {
"aws_db_subnet_group.foo", "name", rName),
resource.TestCheckResourceAttr(
"aws_db_subnet_group.foo", "description", "Managed by Terraform"),
resource.TestMatchResourceAttr(
"aws_db_subnet_group.foo", "arn", regexp.MustCompile(fmt.Sprintf("^arn:[^:]+:rds:[^:]+:\\d{12}:subgrp:%s", rName))),
testCheck,
),
},
Expand Down

0 comments on commit 1642c12

Please sign in to comment.