e2e: provide an option to skip rbd and cephfs e2e

Added two new parameters for e2e test to skip
rbd and cephfs tests. This will help us to
run more test in Travis CI.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-07-08 17:16:31 +05:30
committed by mergify[bot]
parent 4e82384b43
commit 63b795d165
5 changed files with 18 additions and 0 deletions

View File

@ -128,6 +128,9 @@ var _ = Describe("RBD", func() {
var c clientset.Interface
// deploy RBD CSI
BeforeEach(func() {
if !testRBD {
Skip("Skipping RBD E2E")
}
c = f.ClientSet
if deployRBD {
createNodeLabel(f, nodeRegionLabel, regionValue)
@ -147,6 +150,9 @@ var _ = Describe("RBD", func() {
})
AfterEach(func() {
if !testRBD {
Skip("Skipping RBD E2E")
}
if CurrentGinkgoTestDescription().Failed {
// log pods created by helm chart
logsCSIPods("app=ceph-csi-rbd", c)