Skip to content

Commit

Permalink
test: fixed pre-delete hook tests for advance daemonset
Browse files Browse the repository at this point in the history
Signed-off-by: LavenderQAQ <lavenderqaq.cs@gmail.com>
  • Loading branch information
LavenderQAQ committed Aug 7, 2023
1 parent 04b5eb8 commit 4e13c0d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/apps/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ var _ = SIGDescribe("DaemonSet", func() {
v1.ResourceCPU: resource.MustParse("100m"),
},
}
ads.Spec.Template.Spec.Containers[0].Env = []v1.EnvVar{
{
Name: "TEST",
Value: "",
},
}
ds, err := tester.CreateDaemonSet(ads)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

Expand All @@ -351,6 +357,12 @@ var _ = SIGDescribe("DaemonSet", func() {
v1.ResourceCPU: resource.MustParse("120m"),
},
}
ads.Spec.Template.Spec.Containers[0].Env = []v1.EnvVar{
{
Name: "TEST",
Value: "TEST",
},
}
})
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "error to update daemon")

Expand Down

0 comments on commit 4e13c0d

Please sign in to comment.