tests! yes! (thanks stack72)

This commit is contained in:
Sunil K Chopra 2015-11-02 09:37:09 -06:00
parent c7b02d9fdb
commit df41f10d1d
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@ func TestAccAWSAutoScalingGroup_basic(t *testing.T) {
"aws_autoscaling_group.bar", "termination_policies.0", "OldestInstance"),
resource.TestCheckResourceAttr(
"aws_autoscaling_group.bar", "termination_policies.1", "ClosestToNextInstanceHour"),
resource.TestCheckResourceAttr(
"aws_autoscaling_group.bar", "placement_group", "test"),
),
},
@ -364,6 +366,7 @@ resource "aws_autoscaling_group" "bar" {
desired_capacity = 4
force_delete = true
termination_policies = ["OldestInstance","ClosestToNextInstanceHour"]
placement_group = "test"
launch_configuration = "${aws_launch_configuration.foobar.name}"