From c5bd77e5fea3644fb4b586f6953d889e7e28fcc2 Mon Sep 17 00:00:00 2001 From: Yug Date: Thu, 24 Jun 2021 15:13:48 +0530 Subject: [PATCH] e2e: provide an option if tests run on helm deployment add an e2eArg `helmTest` to specify if tests are running on ceph-csi deployment via helm. For testing in CI, Storageclass and secret deployment is enabled on helm installation. Signed-off-by: Yug (cherry picked from commit a4548c39832950b4523b7f4c35cecc2cf720f188) --- e2e/e2e_test.go | 1 + e2e/utils.go | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index d51bad24e..969fce3ef 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -22,6 +22,7 @@ func init() { flag.BoolVar(&deployRBD, "deploy-rbd", true, "deploy rbd csi driver") flag.BoolVar(&testCephFS, "test-cephfs", true, "test cephfs csi driver") flag.BoolVar(&testRBD, "test-rbd", true, "test rbd csi driver") + flag.BoolVar(&helmTest, "helm-test", false, "tests running on deployment via helm") flag.BoolVar(&upgradeTesting, "upgrade-testing", false, "perform upgrade testing") flag.StringVar(&upgradeVersion, "upgrade-version", "v2.1.2", "target version for upgrade testing") flag.StringVar(&cephCSINamespace, "cephcsi-namespace", defaultNs, "namespace in which cephcsi deployed") diff --git a/e2e/utils.go b/e2e/utils.go index 4f4580414..61011c6d1 100644 --- a/e2e/utils.go +++ b/e2e/utils.go @@ -55,6 +55,7 @@ var ( deployRBD bool testCephFS bool testRBD bool + helmTest bool upgradeTesting bool upgradeVersion string cephCSINamespace string