providers/aws: route53_health_check id-only

This commit is contained in:
Mitchell Hashimoto 2016-04-21 13:48:48 -07:00
parent 2274bb8c4a
commit f2d91f0c2b
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 5 additions and 4 deletions

View File

@ -246,7 +246,7 @@ func resourceAwsRoute53HealthCheckRead(d *schema.ResourceData, meta interface{})
d.Set("port", updated.Port) d.Set("port", updated.Port)
d.Set("resource_path", updated.ResourcePath) d.Set("resource_path", updated.ResourcePath)
d.Set("measure_latency", updated.MeasureLatency) d.Set("measure_latency", updated.MeasureLatency)
d.Set("invent_healthcheck", updated.Inverted) d.Set("invert_healthcheck", updated.Inverted)
d.Set("child_healthchecks", updated.ChildHealthChecks) d.Set("child_healthchecks", updated.ChildHealthChecks)
d.Set("child_health_threshold", updated.HealthThreshold) d.Set("child_health_threshold", updated.HealthThreshold)

View File

@ -12,9 +12,10 @@ import (
func TestAccAWSRoute53HealthCheck_basic(t *testing.T) { func TestAccAWSRoute53HealthCheck_basic(t *testing.T) {
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders, IDRefreshName: "aws_route53_health_check.foo",
CheckDestroy: testAccCheckRoute53HealthCheckDestroy, Providers: testAccProviders,
CheckDestroy: testAccCheckRoute53HealthCheckDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{
resource.TestStep{ resource.TestStep{
Config: testAccRoute53HealthCheckConfig, Config: testAccRoute53HealthCheckConfig,