mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Add logging for reconciler unit test
This commit is contained in:
parent
262d8b2a77
commit
a29fb9abae
@ -1522,6 +1522,7 @@ func verifyVolumeAttachedToNode(
|
|||||||
attachState,
|
attachState,
|
||||||
expectedAttachState)
|
expectedAttachState)
|
||||||
}
|
}
|
||||||
|
t.Logf("Volume <%v> is attached to node <%v>: %v", volumeName, nodeName, attachState)
|
||||||
}
|
}
|
||||||
|
|
||||||
func verifyVolumeReportedAsAttachedToNode(
|
func verifyVolumeReportedAsAttachedToNode(
|
||||||
@ -1540,6 +1541,7 @@ func verifyVolumeReportedAsAttachedToNode(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if result == isAttached {
|
if result == isAttached {
|
||||||
|
t.Logf("Volume <%v> is reported as attached to node <%v>: %v", volumeName, nodeName, result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
t.Fatalf("Check volume <%v> is reported as attached to node <%v>, got %v, expected %v",
|
t.Fatalf("Check volume <%v> is reported as attached to node <%v>, got %v, expected %v",
|
||||||
@ -1564,6 +1566,7 @@ func verifyVolumeNoStatusUpdateNeeded(
|
|||||||
nodeName)
|
nodeName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
t.Logf("Volume <%v> is not reported as need to update status on node <%v>", volumeName, nodeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func verifyNewDetacherCallCount(
|
func verifyNewDetacherCallCount(
|
||||||
|
Loading…
Reference in New Issue
Block a user