provider/aws: fix aws_db_instance acceptance tests

- 5.6.17 is no longer a valid mysql engine version, bumping to 5.6.21
- updating security_group_names assertion to match new set structure
  introduce in #663
This commit is contained in:
Paul Hinze 2015-01-10 15:19:24 -06:00
parent aa82c10e39
commit f800441fe1
1 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ func TestAccAWSDBInstance(t *testing.T) {
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "engine", "mysql"),
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "engine_version", "5.6.17"),
"aws_db_instance.bar", "engine_version", "5.6.21"),
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "instance_class", "db.t1.micro"),
resource.TestCheckResourceAttr(
@ -42,7 +42,7 @@ func TestAccAWSDBInstance(t *testing.T) {
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "skip_final_snapshot", "true"),
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "security_group_names.0", "secfoobarbaz-test-terraform"),
"aws_db_instance.bar", "security_group_names.3322503515", "secfoobarbaz-test-terraform"),
resource.TestCheckResourceAttr(
"aws_db_instance.bar", "parameter_group_name", "default.mysql5.6"),
),
@ -96,7 +96,7 @@ func testAccCheckAWSDBInstanceAttributes(v *rds.DBInstance) resource.TestCheckFu
return fmt.Errorf("bad engine: %#v", v.Engine)
}
if v.EngineVersion != "5.6.17" {
if v.EngineVersion != "5.6.21" {
return fmt.Errorf("bad engine_version: %#v", v.EngineVersion)
}
@ -153,7 +153,7 @@ resource "aws_db_instance" "bar" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.6.17"
engine_version = "5.6.21"
instance_class = "db.t1.micro"
name = "baz"
password = "barbarbarbar"