From a29fb9abae6218a6991779c97051e6bd0fa7af7f Mon Sep 17 00:00:00 2001 From: Brian Pursley Date: Sat, 30 Jul 2022 10:33:27 -0400 Subject: [PATCH] Add logging for reconciler unit test --- .../volume/attachdetach/reconciler/reconciler_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/controller/volume/attachdetach/reconciler/reconciler_test.go b/pkg/controller/volume/attachdetach/reconciler/reconciler_test.go index da6d988dcc8..a95d6080474 100644 --- a/pkg/controller/volume/attachdetach/reconciler/reconciler_test.go +++ b/pkg/controller/volume/attachdetach/reconciler/reconciler_test.go @@ -1522,6 +1522,7 @@ func verifyVolumeAttachedToNode( attachState, expectedAttachState) } + t.Logf("Volume <%v> is attached to node <%v>: %v", volumeName, nodeName, attachState) } func verifyVolumeReportedAsAttachedToNode( @@ -1540,6 +1541,7 @@ func verifyVolumeReportedAsAttachedToNode( } if result == isAttached { + t.Logf("Volume <%v> is reported as attached to node <%v>: %v", volumeName, nodeName, result) return } t.Fatalf("Check volume <%v> is reported as attached to node <%v>, got %v, expected %v", @@ -1564,6 +1566,7 @@ func verifyVolumeNoStatusUpdateNeeded( nodeName) } } + t.Logf("Volume <%v> is not reported as need to update status on node <%v>", volumeName, nodeName) } func verifyNewDetacherCallCount(