@@ -138,7 +138,7 @@ var _ = Describe("Pusher", func() {
138
138
Expect (err ).ToNot (HaveOccurred ())
139
139
// Being the artifact of type plugin we expect that the retrieved descriptor is of type image index.
140
140
Expect (d .MediaType ).To (Equal (v1 .MediaTypeImageIndex ))
141
- Expect (d .Digest .String ()).To (Equal (result .Digest ))
141
+ Expect (d .Digest .String ()).To (Equal (result .RootDigest ))
142
142
Expect (index .Manifests ).To (HaveLen (1 ))
143
143
Expect (fmt .Sprintf ("%s/%s" , index .Manifests [0 ].Platform .OS , index .Manifests [0 ].Platform .Architecture )).To (Equal (testPluginPlatform1 ))
144
144
// Check layer and config media types.
@@ -188,7 +188,7 @@ var _ = Describe("Pusher", func() {
188
188
Expect (err ).ToNot (HaveOccurred ())
189
189
// Being the artifact of type plugin we expect that the retrieved descriptor is of type image index.
190
190
Expect (d .MediaType ).To (Equal (v1 .MediaTypeImageIndex ))
191
- Expect (d .Digest .String ()).To (Equal (result .Digest ))
191
+ Expect (d .Digest .String ()).To (Equal (result .RootDigest ))
192
192
Expect (index .Manifests ).To (HaveLen (3 ))
193
193
Expect (fmt .Sprintf ("%s/%s" , index .Manifests [0 ].Platform .OS , index .Manifests [0 ].Platform .Architecture )).To (Equal (testPluginPlatform1 ))
194
194
Expect (fmt .Sprintf ("%s/%s" , index .Manifests [1 ].Platform .OS , index .Manifests [1 ].Platform .Architecture )).To (Equal (testPluginPlatform2 ))
@@ -225,7 +225,7 @@ var _ = Describe("Pusher", func() {
225
225
Expect (err ).ToNot (HaveOccurred ())
226
226
// Being the artifact of type rulesfile we expect that the retrieved descriptor is of type manifest.
227
227
Expect (d .MediaType ).To (Equal (v1 .MediaTypeImageManifest ))
228
- Expect (d .Digest .String ()).To (Equal (result .Digest ))
228
+ Expect (d .Digest .String ()).To (Equal (result .RootDigest ))
229
229
// It must have only one layer since no config layer is configured.
230
230
Expect (manifest .Layers ).To (HaveLen (1 ))
231
231
// It must have the rulesfile's layer mediatype.
@@ -276,7 +276,7 @@ var _ = Describe("Pusher", func() {
276
276
Expect (err ).ToNot (HaveOccurred ())
277
277
// Being the artifact of type rulesfile we expect that the retrieved descriptor is of type manifest.
278
278
Expect (d .MediaType ).To (Equal (v1 .MediaTypeImageManifest ))
279
- Expect (d .Digest .String ()).To (Equal (result .Digest ))
279
+ Expect (d .Digest .String ()).To (Equal (result .RootDigest ))
280
280
// It must have only one layer since no config layer is configured.
281
281
Expect (manifest .Layers ).To (HaveLen (1 ))
282
282
// It must have the rulesfile's layer mediatype.
@@ -348,7 +348,7 @@ var _ = Describe("Pusher", func() {
348
348
// Being the artifact of type asset we expect that the retrieved descriptor is of type manifest.
349
349
Expect (d .MediaType ).To (Equal (v1 .MediaTypeImageManifest ))
350
350
// Checking the digest is correct.
351
- Expect (d .Digest .String ()).To (Equal (result .Digest ))
351
+ Expect (d .Digest .String ()).To (Equal (result .RootDigest ))
352
352
// It must have only one layer since no config layer is configured.
353
353
Expect (manifest .Layers ).To (HaveLen (1 ))
354
354
// The layer has to be of type asset.
0 commit comments