mirror of https://github.com/k3s-io/k3s
Add UT Test to TestAttacherUnmountDevice
parent
7a273aa85d
commit
89340a5948
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue