Skip to content

Commit

Permalink
Add import test with team
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-pinola-rf committed Nov 20, 2024
1 parent 3d637e3 commit 96f383c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion datadog/tests/resource_datadog_authn_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ func TestAccDatadogAuthNMapping_CreateUpdate(t *testing.T) {

func TestAccDatadogAuthNMapping_import(t *testing.T) {
t.Parallel()
_, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)
uniq := strings.ToLower(uniqueEntityName(ctx, t))

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -71,6 +72,14 @@ func TestAccDatadogAuthNMapping_import(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
},
{
Config: testAccCheckDatadogAuthNMappingTeamConfig(uniq, "key_1", "value_1"),
},
{
ResourceName: "datadog_authn_mapping.foo-team",
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down

0 comments on commit 96f383c

Please sign in to comment.