From f800441fe1b7f759d9978a196da5383f86a3f6b5 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Sat, 10 Jan 2015 15:19:24 -0600 Subject: [PATCH] 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 --- builtin/providers/aws/resource_aws_db_instance_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/resource_aws_db_instance_test.go b/builtin/providers/aws/resource_aws_db_instance_test.go index 8f87e450f..c2c1ae11c 100644 --- a/builtin/providers/aws/resource_aws_db_instance_test.go +++ b/builtin/providers/aws/resource_aws_db_instance_test.go @@ -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"