We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dc9001 commit a2dab39Copy full SHA for a2dab39
schema/descriptor_test.go
@@ -199,6 +199,21 @@ func TestDescriptor(t *testing.T) {
199
"size": 7682,
200
"digest": "sha256:5B0BCABD1ED22E9FB1310CF6C2DEC7CDEF19F0AD69EFA1F392E94A4333501270"
201
}
202
+`,
203
+ fail: true,
204
+ },
205
+
206
+ // expected failure: urls does not match format (invalide url characters)
207
+ {
208
+ descriptor: `
209
+{
210
+ "mediaType": "application/vnd.oci.image.manifest.v1+json",
211
+ "size": 7682,
212
+ "digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
213
+ "urls": [
214
+ "value"
215
+ ]
216
+}
217
`,
218
fail: true,
219
},
0 commit comments