mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
mock tests: remove redundant retrieval of log output
The code became obsolete with the introduction of parseMockLogs because that will retrieve the log itself. For debugging of a running test the normal pod output logging is sufficient.
This commit is contained in:
parent
d06589e4b6
commit
367a23e4d9
@ -885,13 +885,7 @@ func checkPodLogs(cs clientset.Interface, namespace, driverPodName, driverContai
|
|||||||
expectedAttributes["csi.storage.k8s.io/ephemeral"] = strconv.FormatBool(ephemeralVolume)
|
expectedAttributes["csi.storage.k8s.io/ephemeral"] = strconv.FormatBool(ephemeralVolume)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load logs of driver pod
|
// Find NodePublish in the GRPC calls.
|
||||||
log, err := e2epod.GetPodLogs(cs, namespace, driverPodName, driverContainerName)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("could not load CSI driver logs: %s", err)
|
|
||||||
}
|
|
||||||
framework.Logf("CSI driver logs:\n%s", log)
|
|
||||||
// Find NodePublish in the logs
|
|
||||||
foundAttributes := sets.NewString()
|
foundAttributes := sets.NewString()
|
||||||
numNodePublishVolume := 0
|
numNodePublishVolume := 0
|
||||||
numNodeUnpublishVolume := 0
|
numNodeUnpublishVolume := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user