Skip to content

Commit

Permalink
Uses ConfigStateChecks for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Jul 10, 2024
1 parent 341b3fe commit 78ced03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/pinpoint/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func TestAccPinpointApp_basic(t *testing.T) {
resource.TestCheckResourceAttrSet(resourceName, names.AttrARN),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttr(resourceName, names.AttrNamePrefix, ""),
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, acctest.Ct0),
),
ConfigStateChecks: []statecheck.StateCheck{
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New("campaign_hook"), knownvalue.ListExact([]knownvalue.Check{
Expand All @@ -67,6 +66,8 @@ func TestAccPinpointApp_basic(t *testing.T) {
"start": knownvalue.StringExact(""),
}),
})),
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTags), knownvalue.Null()),
statecheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), knownvalue.MapExact(map[string]knownvalue.Check{})),
},
},
{
Expand Down

0 comments on commit 78ced03

Please sign in to comment.