e2e: define replicapool as constant

the static check is failing as the replicapool
is used in 3 or more places, we need to define
a variable and use it.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-05-05 09:23:24 +05:30
committed by mergify[bot]
parent 76a55350aa
commit f0b3cee94a
3 changed files with 10 additions and 9 deletions

View File

@ -22,6 +22,7 @@ var (
rbdExamplePath = "../examples/rbd/"
rbdDeploymentName = "csi-rbdplugin-provisioner"
rbdDaemonsetName = "csi-rbdplugin"
defaultRBDPool = "replicapool"
// Topology related variables
nodeRegionLabel = "test.failure-domain/region"
regionValue = "testregion"
@ -267,7 +268,7 @@ var _ = Describe("RBD", func() {
if err != nil {
Fail(err.Error())
}
pool := "replicapool"
pool := defaultRBDPool
snapList, err := listSnapshots(f, pool, images[0])
if err != nil {
Fail(err.Error())