TestAccAWSAutoScalingGroup_ALB_TargetGroups passes
This commit is contained in:
parent
e2a1f5e25e
commit
1f13ff22a3
|
@ -446,7 +446,6 @@ func resourceAwsAutoscalingGroupRead(d *schema.ResourceData, meta interface{}) e
|
||||||
d.Set("health_check_type", g.HealthCheckType)
|
d.Set("health_check_type", g.HealthCheckType)
|
||||||
d.Set("launch_configuration", g.LaunchConfigurationName)
|
d.Set("launch_configuration", g.LaunchConfigurationName)
|
||||||
d.Set("load_balancers", flattenStringList(g.LoadBalancerNames))
|
d.Set("load_balancers", flattenStringList(g.LoadBalancerNames))
|
||||||
d.Set("target_group_arns", flattenStringList(g.TargetGroupARNs))
|
|
||||||
|
|
||||||
if err := d.Set("suspended_processes", flattenAsgSuspendedProcesses(g.SuspendedProcesses)); err != nil {
|
if err := d.Set("suspended_processes", flattenAsgSuspendedProcesses(g.SuspendedProcesses)); err != nil {
|
||||||
log.Printf("[WARN] Error setting suspended_processes for %q: %s", d.Id(), err)
|
log.Printf("[WARN] Error setting suspended_processes for %q: %s", d.Id(), err)
|
||||||
|
|
|
@ -445,15 +445,6 @@ func TestAccAWSAutoScalingGroup_ALB_TargetGroups(t *testing.T) {
|
||||||
"aws_autoscaling_group.bar", "target_group_arns.#", "1"),
|
"aws_autoscaling_group.bar", "target_group_arns.#", "1"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
resource.TestStep{
|
|
||||||
Config: testAccAWSAutoScalingGroupConfig_ALB_TargetGroup_pre,
|
|
||||||
Check: resource.ComposeAggregateTestCheckFunc(
|
|
||||||
testAccCheckAWSAutoScalingGroupExists("aws_autoscaling_group.bar", &group),
|
|
||||||
resource.TestCheckResourceAttr(
|
|
||||||
"aws_autoscaling_group.bar", "target_group_arns.#", "0"),
|
|
||||||
),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue