Move invocation to not to cause ginkgo panic

This commit is contained in:
Maciej Szulik 2023-10-31 17:46:53 +01:00
parent f5a5d83d7c
commit fba2d2fadc
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -39,6 +39,7 @@ import (
var _ = SIGDescribe("Kubectl rollout", func() {
defer ginkgo.GinkgoRecover()
var deploymentYaml string
f := framework.NewDefaultFramework("kubectl-rollout")
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
@ -47,10 +48,10 @@ var _ = SIGDescribe("Kubectl rollout", func() {
ginkgo.BeforeEach(func() {
c = f.ClientSet
ns = f.Namespace.Name
deploymentYaml = commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename)))
})
ginkgo.Describe("undo", func() {
deploymentYaml := commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename)))
ginkgo.AfterEach(func() {
cleanupKubectlInputs(deploymentYaml, ns, "app=httpd")
})