mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #121531 from saschagrunert/e2e-node-imageid
Make e2e node image ID test more flexible
This commit is contained in:
commit
c7a7cb8e17
@ -60,12 +60,12 @@ var _ = SIGDescribe("ImageID [NodeFeature: ImageID]", func() {
|
|||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
status := runningPod.Status
|
status := runningPod.Status
|
||||||
|
gomega.Expect(status.ContainerStatuses).To(gomega.HaveLen(1), dump.Pretty(status))
|
||||||
if len(status.ContainerStatuses) == 0 {
|
gomega.Expect(status.ContainerStatuses[0].ImageID).To(
|
||||||
framework.Failf("Unexpected pod status; %s", dump.Pretty(status))
|
gomega.SatisfyAny(
|
||||||
return
|
gomega.Equal(busyBoxImage),
|
||||||
}
|
gomega.MatchRegexp(`[[:xdigit:]]{64}`),
|
||||||
|
),
|
||||||
gomega.Expect(status.ContainerStatuses[0].ImageID).To(gomega.ContainSubstring(busyBoxImage))
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user