mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-28 13:03:43 +00:00
Add UT Test to TestAttacherUnmountDevice
This commit is contained in:
parent
7a273aa85d
commit
89340a5948
@ -582,6 +582,13 @@ func TestAttacherUnmountDevice(t *testing.T) {
|
|||||||
deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount",
|
deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount",
|
||||||
stageUnstageSet: true,
|
stageUnstageSet: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
testName: "no volID",
|
||||||
|
volID: "",
|
||||||
|
deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount",
|
||||||
|
stageUnstageSet: true,
|
||||||
|
shouldFail: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
testName: "no device mount path",
|
testName: "no device mount path",
|
||||||
volID: "project/zone/test-vol1",
|
volID: "project/zone/test-vol1",
|
||||||
|
Loading…
Reference in New Issue
Block a user