Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatcha committed Dec 12, 2024
1 parent 91bf16e commit ca68179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/backup_with_env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ var _ = Context("backup with ObjectBucketName is set in environments variables",
It("should create a bucket", func() {
kubectlSafe([]byte(makeBucketWithEnvYAML), "apply", "-f", "-")
Eventually(func(g Gomega) {
out, err := kubectl(nil, "get", "jobs", "make-bucket", "-o", "json")
out, err := kubectl(nil, "get", "jobs", "make-bucket-with-env", "-o", "json")
g.Expect(err).NotTo(HaveOccurred())
job := &batchv1.Job{}
err = json.Unmarshal(out, job)
g.Expect(err).NotTo(HaveOccurred())
condComplete, err := getJobCondition(job, batchv1.JobComplete)
g.Expect(err).NotTo(HaveOccurred())
g.Expect(condComplete.Status).To(Equal(corev1.ConditionTrue), "make-bucket has not been finished")
g.Expect(condComplete.Status).To(Equal(corev1.ConditionTrue), "make-bucket-with-env has not been finished")
}).Should(Succeed())
})

Expand Down

0 comments on commit ca68179

Please sign in to comment.