mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
e2e: use CurrentSpecReport for failed spec run
CurrentGinkgoTestDescription() has been deprecated in favor of CurrentSpecReport and this commit address the same. Ref#https://github.com/onsi/ginkgo/blob/master/deprecated_dsl.go#L53 Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
cf237d1f7e
commit
628263e9b1
@ -200,7 +200,7 @@ var _ = Describe(cephfsType, func() {
|
||||
if !testCephFS || upgradeTesting {
|
||||
Skip("Skipping CephFS E2E")
|
||||
}
|
||||
if CurrentGinkgoTestDescription().Failed {
|
||||
if CurrentSpecReport().Failed() {
|
||||
// log pods created by helm chart
|
||||
logsCSIPods("app=ceph-csi-cephfs", c)
|
||||
// log provisioner
|
||||
|
@ -285,7 +285,7 @@ var _ = Describe("nfs", func() {
|
||||
if !testNFS || upgradeTesting {
|
||||
Skip("Skipping NFS E2E")
|
||||
}
|
||||
if CurrentGinkgoTestDescription().Failed {
|
||||
if CurrentSpecReport().Failed() {
|
||||
// log pods created by helm chart
|
||||
logsCSIPods("app=ceph-csi-nfs", c)
|
||||
// log provisioner
|
||||
|
@ -345,7 +345,7 @@ var _ = Describe("RBD", func() {
|
||||
if !testRBD || upgradeTesting {
|
||||
Skip("Skipping RBD E2E")
|
||||
}
|
||||
if CurrentGinkgoTestDescription().Failed {
|
||||
if CurrentSpecReport().Failed() {
|
||||
// log pods created by helm chart
|
||||
logsCSIPods("app=ceph-csi-rbd", c)
|
||||
// log provisioner
|
||||
|
@ -115,7 +115,7 @@ var _ = Describe("CephFS Upgrade Testing", func() {
|
||||
if !testCephFS || !upgradeTesting {
|
||||
Skip("Skipping CephFS Upgrade Test")
|
||||
}
|
||||
if CurrentGinkgoTestDescription().Failed {
|
||||
if CurrentSpecReport().Failed() {
|
||||
// log pods created by helm chart
|
||||
logsCSIPods("app=ceph-csi-cephfs", c)
|
||||
// log provisoner
|
||||
|
@ -121,7 +121,7 @@ var _ = Describe("RBD Upgrade Testing", func() {
|
||||
if !testRBD || !upgradeTesting {
|
||||
Skip("Skipping RBD Upgrade Testing")
|
||||
}
|
||||
if CurrentGinkgoTestDescription().Failed {
|
||||
if CurrentSpecReport().Failed() {
|
||||
// log pods created by helm chart
|
||||
logsCSIPods("app=ceph-csi-rbd", c)
|
||||
// log provisoner
|
||||
|
Loading…
Reference in New Issue
Block a user