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 8, 2023
1 parent 157161d commit af9fa34
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 af9fa34

Please sign in to comment.