Skip to content

Commit

Permalink
case20 revmoe prune
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Rae Kim <yikim@redhat.com>
  • Loading branch information
yiraeChristineKim committed Jun 27, 2023
1 parent 10745ff commit 0b7955c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e/case13_templatization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ var _ = Describe("Test templatization", Ordered, func() {

return utils.GetStatusMessage(managedPlc)
}, defaultTimeoutSeconds, 1).Should(Equal(
"pods [testvalue] found as specified, therefore, this object template is compliant in " +
"pods [c13-pod] found as specified, therefore, this object template is compliant in " +
"namespace default",
))

Expand Down
3 changes: 0 additions & 3 deletions test/e2e/case20_delete_objects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,6 @@ var _ = Describe("Object Should not be deleted", Ordered, func() {
)
BeforeEach(func() {
utils.Kubectl("apply", "-f", case20ChangeConfigYaml, "-n", testNamespace)
patch := `[{"op": "remove", "path": "/spec/pruneObjectBehavior"}]`
utils.Kubectl("patch", "configurationpolicy", configplcName, "-n", testNamespace,
"--type=json", "-p", patch)
})
cleanup := func() {
policies := []string{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: managed
spec:
remediationAction: enforce
pruneObjectBehavior: DeleteAll
object-templates:
- complianceType: musthave
objectDefinition:
Expand Down

0 comments on commit 0b7955c

Please sign in to comment.