Skip to content

Commit

Permalink
fix err
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 26, 2023
1 parent ab79ae3 commit 4c89fbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/e2e/case15_event_format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const (
case15BecomesNonCompliantParentYaml = "../resources/case15_event_format/case15_parent_becomesnoncompliant.yaml"
case15BecomesNonCompliantParentName = "parent-becomesnoncompliant"
case15PodForNonComplianceYaml = "../resources/case15_event_format/case15_becomesnoncompliant_pod.yaml"
case15PodNoncompliantName = "case15-becomesnoncompliant"
case15PodCompliantName = "case15-becomescompliant"
)

var _ = Describe("Testing compliance event formatting", Ordered, func() {
Expand Down Expand Up @@ -198,5 +200,10 @@ var _ = Describe("Testing compliance event formatting", Ordered, func() {
if !k8serrors.IsNotFound(err) {
Expect(err).ToNot(HaveOccurred())
}

By("Delete pods")
pods := []string{case15PodNoncompliantName, case15PodCompliantName}
namespaces := []string{"default"}
deletePods(pods, namespaces)
})
})
2 changes: 1 addition & 1 deletion test/resources/case13_templatization/case13_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: ConfigMap
metadata:
name: e2e13config
data:
name: testvalue
name: c13-pod

0 comments on commit 4c89fbf

Please sign in to comment.