diff --git a/test/e2e/case20_delete_objects_test.go b/test/e2e/case20_delete_objects_test.go index f68695ad..f823197f 100644 --- a/test/e2e/case20_delete_objects_test.go +++ b/test/e2e/case20_delete_objects_test.go @@ -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{ diff --git a/test/resources/case20_delete_objects/case20_change_config_policy_not_prune.yaml b/test/resources/case20_delete_objects/case20_change_config_policy_not_prune.yaml index 8887429f..4d595c53 100644 --- a/test/resources/case20_delete_objects/case20_change_config_policy_not_prune.yaml +++ b/test/resources/case20_delete_objects/case20_change_config_policy_not_prune.yaml @@ -5,7 +5,6 @@ metadata: namespace: managed spec: remediationAction: enforce - pruneObjectBehavior: DeleteAll object-templates: - complianceType: musthave objectDefinition: