From 5801b991c9f482622ec2981835ddecddb85d51a2 Mon Sep 17 00:00:00 2001 From: Trevor Pounds Date: Mon, 8 Feb 2016 20:02:57 -0800 Subject: [PATCH] Cleanup unrelated config to speed up autogenerate name acc test. Removes overspecified config that is unrelated to testing the auto scaling group's autogenerated name. The test is only concerned with checking that the auto scaling group was created successfully with an autogenerated name matching a specific pattern. --- .../aws/resource_aws_autoscaling_group_test.go | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/builtin/providers/aws/resource_aws_autoscaling_group_test.go b/builtin/providers/aws/resource_aws_autoscaling_group_test.go index 12f4e593c8..a3aa6c47ee 100644 --- a/builtin/providers/aws/resource_aws_autoscaling_group_test.go +++ b/builtin/providers/aws/resource_aws_autoscaling_group_test.go @@ -89,7 +89,6 @@ func TestAccAWSAutoScalingGroup_autoGeneratedName(t *testing.T) { }, }, }) - } func TestAccAWSAutoScalingGroup_tags(t *testing.T) { @@ -409,21 +408,10 @@ resource "aws_launch_configuration" "foobar" { resource "aws_autoscaling_group" "bar" { availability_zones = ["us-west-2a"] - max_size = 1 - min_size = 1 - health_check_grace_period = 300 - health_check_type = "ELB" - desired_capacity = 1 - force_delete = true - termination_policies = ["OldestInstance","ClosestToNextInstanceHour"] - + desired_capacity = 0 + max_size = 0 + min_size = 0 launch_configuration = "${aws_launch_configuration.foobar.name}" - - tag { - key = "Foo" - value = "foo-bar" - propagate_at_launch = true - } } `