cephfs: add upgrade testing

Upgrade testing will enable us to keep
in check the backward compatibility of
earlier releases.

Signed-off-by: Yug <yuggupta27@gmail.com>
This commit is contained in:
Yug
2020-07-25 22:09:50 +05:30
committed by mergify[bot]
parent 9c0d5abb5a
commit 9b30969594
5 changed files with 240 additions and 4 deletions

View File

@ -23,6 +23,7 @@ var (
cephfsDeamonSetName = "csi-cephfsplugin"
cephfsDirPath = "../deploy/cephfs/kubernetes/"
cephfsExamplePath = "../examples/cephfs/"
subvolumegroup = "e2e"
)
func deployCephfsPlugin() {
@ -115,7 +116,7 @@ var _ = Describe("cephfs", func() {
var c clientset.Interface
// deploy cephfs CSI
BeforeEach(func() {
if !testCephFS {
if !testCephFS || upgradeTesting {
Skip("Skipping CephFS E2E")
}
c = f.ClientSet
@ -133,7 +134,7 @@ var _ = Describe("cephfs", func() {
})
AfterEach(func() {
if !testCephFS {
if !testCephFS || upgradeTesting {
Skip("Skipping CephFS E2E")
}
if CurrentGinkgoTestDescription().Failed {