Skip to content

Commit

Permalink
Merge pull request #3919 from jaidevmane/installVeleroFix
Browse files Browse the repository at this point in the history
Fix -install-velero flag for e2e tests
  • Loading branch information
ywk253100 authored Jul 20, 2021
2 parents f8df9c0 + db375f3 commit 7052680
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/3919-jaidevmane
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix -install-velero flag for e2e tests
4 changes: 3 additions & 1 deletion test/e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ BSL_CONFIG ?=
VSL_CONFIG ?=
CLOUD_PROVIDER ?=
OBJECT_STORE_PROVIDER ?=
INSTALL_VELERO ?= true

# Flags to create an additional BSL for multiple credentials tests
ADDITIONAL_OBJECT_STORE_PROVIDER ?=
Expand Down Expand Up @@ -90,7 +91,8 @@ run: ginkgo
-additional-bsl-credentials-file=$(ADDITIONAL_CREDS_FILE) \
-additional-bsl-bucket=$(ADDITIONAL_BSL_BUCKET) \
-additional-bsl-prefix=$(ADDITIONAL_BSL_PREFIX) \
-additional-bsl-config=$(ADDITIONAL_BSL_CONFIG)
-additional-bsl-config=$(ADDITIONAL_BSL_CONFIG) \
-install-velero=$(INSTALL_VELERO)

build: ginkgo
mkdir -p $(OUTPUT_DIR)
Expand Down
6 changes: 4 additions & 2 deletions test/e2e/enable_api_group_versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ var _ = Describe("[APIGroup] Velero tests with various CRD API group versions",
}
Expect(err).NotTo(HaveOccurred())

err = veleroUninstall(ctx, client.kubebuilder, installVelero, veleroNamespace)
Expect(err).NotTo(HaveOccurred())
if installVelero {
err = veleroUninstall(ctx, client.kubebuilder, installVelero, veleroNamespace)
Expect(err).NotTo(HaveOccurred())
}

})

Expand Down

0 comments on commit 7052680

Please sign in to comment.