mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #61447 from jianglingxia/csiattacher-2018032109
Automatic merge from submit-queue (batch tested with PRs 56045, 61447, 62189). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add UT Test to TestAttacherUnmountDevice **What this PR does / why we need it**: Add UT Test to TestAttacherUnmountDevice if no volumeID scenero **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
f239270ec7
@ -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