Skip to content

Commit

Permalink
Merge commit '9db7dddd6ed0c06a2f19662c313dfb67ab09f2c8' into b-route5…
Browse files Browse the repository at this point in the history
…3-domain-wildcard
  • Loading branch information
ewbankkit committed Jan 10, 2025
2 parents c27f6aa + 9db7ddd commit 4334120
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions internal/service/route53/record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import (
"github.com/hashicorp/aws-sdk-go-base/v2/endpoints"
sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
"github.com/hashicorp/terraform-plugin-testing/plancheck"
"github.com/hashicorp/terraform-plugin-testing/statecheck"
"github.com/hashicorp/terraform-plugin-testing/terraform"
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
"github.com/hashicorp/terraform-provider-aws/internal/acctest"
"github.com/hashicorp/terraform-provider-aws/internal/conns"
tfroute53 "github.com/hashicorp/terraform-provider-aws/internal/service/route53"
Expand Down Expand Up @@ -375,6 +379,15 @@ func TestAccRoute53Record_wildcard(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckRecordExists(ctx, resourceName, &record1),
),
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionCreate),
},
},
ConfigStateChecks: []statecheck.StateCheck{
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New("fqdn"), knownvalue.StringExact("*.domain.test")),
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrName), knownvalue.StringExact("*.domain.test")),
},
},
{
ResourceName: resourceName,
Expand All @@ -389,6 +402,15 @@ func TestAccRoute53Record_wildcard(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckRecordExists(ctx, resourceName, &record2),
),
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionUpdate),
},
},
ConfigStateChecks: []statecheck.StateCheck{
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New("fqdn"), knownvalue.StringExact("*.domain.test")),
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrName), knownvalue.StringExact("*.domain.test")),
},
},
},
})
Expand Down

0 comments on commit 4334120

Please sign in to comment.