mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
Combine the variable section in e2e and also introuce new vars.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
47d4e44af0
commit
66bb0e4e54
@ -11,12 +11,10 @@ var (
|
|||||||
cephfsProvisionerRBAC = "csi-provisioner-rbac.yaml"
|
cephfsProvisionerRBAC = "csi-provisioner-rbac.yaml"
|
||||||
cephfsNodePlugin = "csi-cephfsplugin.yaml"
|
cephfsNodePlugin = "csi-cephfsplugin.yaml"
|
||||||
cephfsNodePluginRBAC = "csi-nodeplugin-rbac.yaml"
|
cephfsNodePluginRBAC = "csi-nodeplugin-rbac.yaml"
|
||||||
)
|
cephfsDeploymentName = "csi-cephfsplugin-provisioner"
|
||||||
|
cephfsDeamonSetName = "csi-cephfsplugin"
|
||||||
var (
|
cephfsDirPath = "../deploy/cephfs/kubernetes/"
|
||||||
cephfsDirPath = "../deploy/cephfs/kubernetes/"
|
cephfsExamplePath = "../examples/cephfs/"
|
||||||
|
|
||||||
cephfsExamplePath = "../examples/cephfs/"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func deployCephfsPlugin() {
|
func deployCephfsPlugin() {
|
||||||
@ -53,13 +51,13 @@ var _ = Describe("cephfs", func() {
|
|||||||
Context("Test cephfs CSI", func() {
|
Context("Test cephfs CSI", func() {
|
||||||
It("Test cephfs CSI", func() {
|
It("Test cephfs CSI", func() {
|
||||||
By("checking provisioner deployment is completed")
|
By("checking provisioner deployment is completed")
|
||||||
err := waitForDeploymentComplete("csi-cephfsplugin-provisioner", "default", f.ClientSet, deployTimeout)
|
err := waitForDeploymentComplete(cephfsDeploymentName, namespace, f.ClientSet, deployTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail(err.Error())
|
Fail(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
By("checking nodeplugin deamonsets is running")
|
By("checking nodeplugin deamonsets is running")
|
||||||
err = waitForDaemonSets("csi-cephfsplugin", "default", f.ClientSet, deployTimeout)
|
err = waitForDaemonSets(cephfsDeamonSetName, namespace, f.ClientSet, deployTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail(err.Error())
|
Fail(err.Error())
|
||||||
}
|
}
|
||||||
|
15
e2e/rbd.go
15
e2e/rbd.go
@ -12,12 +12,11 @@ var (
|
|||||||
rbdNodePlugin = "csi-rbdplugin.yaml"
|
rbdNodePlugin = "csi-rbdplugin.yaml"
|
||||||
rbdNodePluginRBAC = "csi-nodeplugin-rbac.yaml"
|
rbdNodePluginRBAC = "csi-nodeplugin-rbac.yaml"
|
||||||
rbdConfigMap = "csi-config-map.yaml"
|
rbdConfigMap = "csi-config-map.yaml"
|
||||||
)
|
rbdDirPath = "../deploy/rbd/kubernetes/"
|
||||||
|
rbdExamplePath = "../examples/rbd/"
|
||||||
var (
|
rbdDeploymentName = "csi-rbdplugin-provisioner"
|
||||||
rbdDirPath = "../deploy/rbd/kubernetes/"
|
rbdDaemonsetName = "csi-rbdplugin"
|
||||||
|
namespace = "default"
|
||||||
rbdExamplePath = "../examples/rbd/"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func deployRBDPlugin() {
|
func deployRBDPlugin() {
|
||||||
@ -54,13 +53,13 @@ var _ = Describe("RBD", func() {
|
|||||||
Context("Test RBD CSI", func() {
|
Context("Test RBD CSI", func() {
|
||||||
It("Test RBD CSI", func() {
|
It("Test RBD CSI", func() {
|
||||||
By("checking provisioner deployment is completed")
|
By("checking provisioner deployment is completed")
|
||||||
err := waitForDeploymentComplete("csi-rbdplugin-provisioner", "default", f.ClientSet, deployTimeout)
|
err := waitForDeploymentComplete(rbdDeploymentName, namespace, f.ClientSet, deployTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail(err.Error())
|
Fail(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
By("checking nodeplugin deamonsets is running")
|
By("checking nodeplugin deamonsets is running")
|
||||||
err = waitForDaemonSets("csi-rbdplugin", "default", f.ClientSet, deployTimeout)
|
err = waitForDaemonSets(rbdDaemonsetName, namespace, f.ClientSet, deployTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail(err.Error())
|
Fail(err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user