Add UT Test to TestAttacherUnmountDevice

pull/8/head
jianglingxia 2018-03-21 09:33:31 +08:00
parent 7a273aa85d
commit 89340a5948
1 changed files with 7 additions and 0 deletions

View File

@ -582,6 +582,13 @@ func TestAttacherUnmountDevice(t *testing.T) {
deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount",
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",
volID: "project/zone/test-vol1",