Skip to content

Commit 28a26ae

Browse files
committed
Test
1 parent 2110a5c commit 28a26ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sysdig/resource_sysdig_secure_custom_policy_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
func TestAccCustomPolicy(t *testing.T) {
1717
rText := func() string { return acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum) }
18-
18+
policy1 := rText()
1919
resource.ParallelTest(t, resource.TestCase{
2020
PreCheck: preCheckAnyEnv(t, SysdigSecureApiTokenEnv),
2121
ProviderFactories: map[string]func() (*schema.Provider, error){
@@ -25,15 +25,15 @@ func TestAccCustomPolicy(t *testing.T) {
2525
},
2626
Steps: []resource.TestStep{
2727
{
28-
Config: customPolicyWithName(rText()),
28+
Config: customPolicyWithName(policy1()),
2929
},
3030
{
3131
ResourceName: "sysdig_secure_custom_policy.sample",
3232
ImportState: true,
3333
ImportStateVerify: true,
3434
},
3535
{
36-
Config: customPolicyWithName(rText()),
36+
Config: customPolicyWithRulesOrderChange(policy1()),
3737
},
3838
{
3939
ResourceName: "sysdig_secure_custom_policy.sample",

0 commit comments

Comments
 (0)