Commit 19b621b zhouhao
committed
1 parent c16fa01 commit 19b621b Copy full SHA for 19b621b
File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ func TestManifestList(t *testing.T) {
94
94
fail : true ,
95
95
},
96
96
97
- // expected pass: manifest. platform is optional
97
+ // expected failure: in the optional field platform platform.architecture is missing, expected required
98
98
{
99
99
manifestList : `
100
100
{
@@ -103,12 +103,15 @@ func TestManifestList(t *testing.T) {
103
103
{
104
104
"mediaType": "application/vnd.oci.image.manifest.v1+json",
105
105
"size": 7682,
106
- "digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270"
106
+ "digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
107
+ "platform": {
108
+ "os": "linux",
109
+ }
107
110
}
108
111
]
109
112
}
110
113
` ,
111
- fail : false ,
114
+ fail : true ,
112
115
},
113
116
114
117
// expected failure: invalid referenced manifest media type
@@ -205,11 +208,7 @@ func TestManifestList(t *testing.T) {
205
208
{
206
209
"mediaType": "application/vnd.oci.image.manifest.v1+json",
207
210
"size": 7143,
208
- "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
209
- "platform": {
210
- "architecture": "ppc64le",
211
- "os": "linux"
212
- }
211
+ "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f"
213
212
}
214
213
]
215
214
}
You can’t perform that action at this time.
0 commit comments