Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions pkg/controller/csi_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ func node() *v1.Node {
}
}

func nodeWithAnnotations() *v1.Node {
node := node()
node.Annotations = map[string]string{
"csi.volume.kubernetes.io/nodeid": fmt.Sprintf("{ %q: %q }", testAttacherName, testNodeID),
}
return node
}

func csiNode() *storage.CSINode {
return &storage.CSINode{
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -887,17 +879,6 @@ func TestCSIHandler(t *testing.T) {
vaWithAttachError(va(false, fin, ann), "csinode.storage.k8s.io \"node1\" not found")), "status"),
},
},
{
name: "Node with annotations, CSINode is absent -> error",
initialObjects: []runtime.Object{pvWithFinalizer(), nodeWithAnnotations()},
addedVA: va(false, fin, ann),
expectedActions: []core.Action{
core.NewPatchSubresourceAction(vaGroupResourceVersion, metav1.NamespaceNone, testPVName+"-"+testNodeName,
types.MergePatchType, patch(va(false /*attached*/, fin, ann),
vaWithAttachError(va(false, fin, ann), "csinode.storage.k8s.io \"node1\" not found")),
"status"),
},
},
{
name: "CSINode exists without the driver -> error",
initialObjects: []runtime.Object{pvWithFinalizer(), csiNodeEmpty()},
Expand Down