mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
e2e: move yaml filepath declaration to global
declared yaml filepath in gobal for reusing. Co-authored-by: Madhu Rajanna <madhupr007@gmail.com> Signed-off-by: Yug <yuggupta27@gmail.com>
This commit is contained in:
parent
30092ff4e1
commit
91662b54b6
27
e2e/rbd.go
27
e2e/rbd.go
@ -39,6 +39,20 @@ var (
|
|||||||
nodeCSIZoneLabel = "topology.rbd.csi.ceph.com/zone"
|
nodeCSIZoneLabel = "topology.rbd.csi.ceph.com/zone"
|
||||||
rbdTopologyPool = "newrbdpool"
|
rbdTopologyPool = "newrbdpool"
|
||||||
rbdTopologyDataPool = "replicapool" // NOTE: should be different than rbdTopologyPool for test to be effective
|
rbdTopologyDataPool = "replicapool" // NOTE: should be different than rbdTopologyPool for test to be effective
|
||||||
|
|
||||||
|
// yaml files required for deployment
|
||||||
|
pvcPath = rbdExamplePath + "pvc.yaml"
|
||||||
|
appPath = rbdExamplePath + "pod.yaml"
|
||||||
|
rawPvcPath = rbdExamplePath + "raw-block-pvc.yaml"
|
||||||
|
rawAppPath = rbdExamplePath + "raw-block-pod.yaml"
|
||||||
|
pvcClonePath = rbdExamplePath + "pvc-restore.yaml"
|
||||||
|
pvcSmartClonePath = rbdExamplePath + "pvc-clone.yaml"
|
||||||
|
pvcBlockSmartClonePath = rbdExamplePath + "pvc-block-clone.yaml"
|
||||||
|
appClonePath = rbdExamplePath + "pod-restore.yaml"
|
||||||
|
appSmartClonePath = rbdExamplePath + "pod-clone.yaml"
|
||||||
|
appBlockSmartClonePath = rbdExamplePath + "block-pod-clone.yaml"
|
||||||
|
snapshotPath = rbdExamplePath + "snapshot.yaml"
|
||||||
|
defaultCloneCount = 10
|
||||||
)
|
)
|
||||||
|
|
||||||
func deployRBDPlugin() {
|
func deployRBDPlugin() {
|
||||||
@ -271,19 +285,6 @@ var _ = Describe("RBD", func() {
|
|||||||
|
|
||||||
Context("Test RBD CSI", func() {
|
Context("Test RBD CSI", func() {
|
||||||
It("Test RBD CSI", func() {
|
It("Test RBD CSI", func() {
|
||||||
pvcPath := rbdExamplePath + "pvc.yaml"
|
|
||||||
appPath := rbdExamplePath + "pod.yaml"
|
|
||||||
rawPvcPath := rbdExamplePath + "raw-block-pvc.yaml"
|
|
||||||
rawAppPath := rbdExamplePath + "raw-block-pod.yaml"
|
|
||||||
pvcClonePath := rbdExamplePath + "pvc-restore.yaml"
|
|
||||||
pvcSmartClonePath := rbdExamplePath + "pvc-clone.yaml"
|
|
||||||
pvcBlockSmartClonePath := rbdExamplePath + "pvc-block-clone.yaml"
|
|
||||||
appClonePath := rbdExamplePath + "pod-restore.yaml"
|
|
||||||
appSmartClonePath := rbdExamplePath + "pod-clone.yaml"
|
|
||||||
appBlockSmartClonePath := rbdExamplePath + "block-pod-clone.yaml"
|
|
||||||
snapshotPath := rbdExamplePath + "snapshot.yaml"
|
|
||||||
defaultCloneCount := 10
|
|
||||||
|
|
||||||
By("checking provisioner deployment is running", func() {
|
By("checking provisioner deployment is running", func() {
|
||||||
err := waitForDeploymentComplete(rbdDeploymentName, cephCSINamespace, f.ClientSet, deployTimeout)
|
err := waitForDeploymentComplete(rbdDeploymentName, cephCSINamespace, f.ClientSet, deployTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user