update unit test for adc controller to test volume migration

This commit is contained in:
carlory
2024-03-29 11:54:57 +08:00
parent eeb42fa543
commit 4c1df69b34
5 changed files with 379 additions and 310 deletions

View File

@@ -217,7 +217,7 @@ func Test_CreateVolumeSpec(t *testing.T) {
},
},
{
desc: "CSINode not found for a volume type that supports csi migration",
desc: "CSINode not found for a volume type that completes csi migration",
createNodeName: kubetypes.NodeName("another-node"),
pod: &v1.Pod{
ObjectMeta: metav1.ObjectMeta{
@@ -238,7 +238,6 @@ func Test_CreateVolumeSpec(t *testing.T) {
},
},
},
wantErrorMessage: "csiNode \"another-node\" not found",
},
} {
t.Run(test.desc, func(t *testing.T) {