@@ -57,6 +57,30 @@ var _ = framework.KubeDescribe("Image Manager", func() {
57
57
})
58
58
})
59
59
60
+ It ("image status should support all kinds of references [Conformance]" , func () {
61
+ imageName := testImageWithTag
62
+ // Make sure image does not exist before testing.
63
+ removeImage (c , imageName )
64
+
65
+ framework .PullPublicImage (c , imageName , testImagePodSandbox )
66
+
67
+ status := framework .ImageStatus (c , imageName )
68
+ Expect (status ).NotTo (BeNil (), "should get image status" )
69
+ idStatus := framework .ImageStatus (c , status .GetId ())
70
+ Expect (idStatus ).To (Equal (status ), "image status with %q" , status .GetId ())
71
+ for _ , tag := range status .GetRepoTags () {
72
+ tagStatus := framework .ImageStatus (c , tag )
73
+ Expect (tagStatus ).To (Equal (status ), "image status with %q" , tag )
74
+ }
75
+ for _ , digest := range status .GetRepoDigests () {
76
+ digestStatus := framework .ImageStatus (c , digest )
77
+ Expect (digestStatus ).To (Equal (status ), "image status with %q" , digest )
78
+ }
79
+
80
+ testRemoveImage (c , imageName )
81
+
82
+ })
83
+
60
84
if runtime .GOOS != "windows" || framework .TestContext .IsLcow {
61
85
It ("image status get image fields should not have Uid|Username empty [Conformance]" , func () {
62
86
for _ , item := range []struct {
0 commit comments