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 7ea2e9e commit 693004d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion e2e/backup_with_env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

//go:embed testdata/makebucket_with_env.yaml

Check failure on line 20 in e2e/backup_with_env_test.go

View workflow job for this annotation

GitHub Actions / Small tests

pattern testdata/makebucket_with_env.yaml: no matching files found
var makeBucketWithEnvYAML string

//go:embed testdata/backup_with_env.yaml
var backupWithEnvYAML string

Expand All @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/backup_with_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ metadata:
namespace: backup-with-env
name: bucket-name
data:
BUCKET_NAME: moco
BUCKET_NAME: moco-with-env

0 comments on commit 693004d

Please sign in to comment.