From 693004db3041cf1f6f071efd11dad2fc4ace8906 Mon Sep 17 00:00:00 2001 From: yamatcha Date: Thu, 12 Dec 2024 04:57:33 +0000 Subject: [PATCH] fix --- e2e/backup_with_env_test.go | 5 ++++- e2e/testdata/backup_with_env.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/backup_with_env_test.go b/e2e/backup_with_env_test.go index 84aec52c..e775f6f7 100644 --- a/e2e/backup_with_env_test.go +++ b/e2e/backup_with_env_test.go @@ -17,6 +17,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +//go:embed testdata/makebucket_with_env.yaml +var makeBucketWithEnvYAML string + //go:embed testdata/backup_with_env.yaml var backupWithEnvYAML string @@ -31,7 +34,7 @@ var _ = Context("backup with ObjectBucketName is set in environments variables", var restorePoint time.Time It("should create a bucket", func() { - kubectlSafe([]byte(makeBucketYAML), "apply", "-f", "-") + kubectlSafe([]byte(makeBucketWithEnvYAML), "apply", "-f", "-") Eventually(func(g Gomega) { out, err := kubectl(nil, "get", "jobs", "make-bucket", "-o", "json") g.Expect(err).NotTo(HaveOccurred()) diff --git a/e2e/testdata/backup_with_env.yaml b/e2e/testdata/backup_with_env.yaml index 18fe81ae..1598b02d 100644 --- a/e2e/testdata/backup_with_env.yaml +++ b/e2e/testdata/backup_with_env.yaml @@ -72,4 +72,4 @@ metadata: namespace: backup-with-env name: bucket-name data: - BUCKET_NAME: moco + BUCKET_NAME: moco-with-env