File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,27 @@ func TestSecurePosturePolicy(t *testing.T) {
24
24
},
25
25
Steps : []resource.TestStep {
26
26
{
27
- Config : createPolicyResource (rText () ),
27
+ Config : createPolicyResource (),
28
28
},
29
29
{
30
- Config : updatePolicyResource (rText () ),
30
+ Config : updatePolicyResource (),
31
31
},
32
32
},
33
33
})
34
34
}
35
+
35
36
func createPolicyResource (name string ) string {
36
37
return fmt .Sprintf (`
37
38
resource "sysdig_secure_posture_policy" "sample" {
38
- name = "policy-%s "
39
+ name = "policy-test "
39
40
description = "policy description"
40
41
}` , name )
41
42
}
43
+
42
44
func updatePolicyResource (name string ) string {
43
45
return fmt .Sprintf (`
44
46
resource "sysdig_secure_posture_policy" "sample" {
45
- name = "save-my-policy-%s "
47
+ name = "save-my-policy-test "
46
48
description = "updated policy description"
47
49
}` , name )
48
50
}
You can’t perform that action at this time.
0 commit comments