@@ -98,20 +98,24 @@ func TestInvalidTestcasesV0_3(t *testing.T) {
98
98
"url_missing.yml" : ValidationResults {ValidationError {"url" , "required" , 1 , 1 }},
99
99
"url_wrong_type.yml" : ValidationResults {
100
100
ValidationError {"url" , "wrong type for this field" , 6 , 1 },
101
+ ValidationError {"url" , "must be a valid URL" , 6 , 1 },
101
102
ValidationError {"url" , "'' not reachable: missing URL scheme" , 6 , 1 },
102
103
ValidationError {"url" , "is not a valid code repository" , 6 , 1 },
103
104
},
104
105
"url_invalid.yml" : ValidationResults {
106
+ ValidationError {"url" , "must be a valid URL" , 6 , 1 },
105
107
ValidationError {"url" , "'foobar' not reachable: missing URL scheme" , 6 , 1 },
106
108
ValidationError {"url" , "is not a valid code repository" , 6 , 1 },
107
109
},
108
110
109
111
// landingURL
110
112
"landingURL_wrong_type.yml" : ValidationResults {
111
113
ValidationError {"landingURL" , "wrong type for this field" , 8 , 1 },
114
+ ValidationError {"landingURL" , "must be an HTTP URL" , 8 , 1 },
112
115
ValidationError {"landingURL" , "'' not reachable: missing URL scheme" , 8 , 1 },
113
116
},
114
117
"landingURL_invalid.yml" : ValidationResults {
118
+ ValidationError {"landingURL" , "must be an HTTP URL" , 8 , 1 },
115
119
ValidationError {"landingURL" , "'???' not reachable: missing URL scheme" , 8 , 1 },
116
120
},
117
121
@@ -221,10 +225,12 @@ func TestInvalidTestcasesV0_3(t *testing.T) {
221
225
222
226
// roadmap
223
227
"roadmap_invalid.yml" : ValidationResults {
228
+ ValidationError {"roadmap" , "must be an HTTP URL" , 4 , 1 },
224
229
ValidationError {"roadmap" , "'foobar' not reachable: missing URL scheme" , 4 , 1 },
225
230
},
226
231
"roadmap_wrong_type.yml" : ValidationResults {
227
232
ValidationError {"roadmap" , "wrong type for this field" , 4 , 1 },
233
+ ValidationError {"roadmap" , "must be an HTTP URL" , 4 , 1 },
228
234
ValidationError {"roadmap" , "'' not reachable: missing URL scheme" , 4 , 1 },
229
235
},
230
236
@@ -309,6 +315,24 @@ func TestInvalidTestcasesV0_3(t *testing.T) {
309
315
"description_eng_longDescription_too_short_grapheme_clusters.yml" : ValidationResults {
310
316
ValidationError {"description.eng.longDescription" , "must be more or equal than 150" , 28 , 5 },
311
317
},
318
+ "description_eng_documentation_invalid.yml" : ValidationResults {
319
+ ValidationError {"description.eng.documentation" , "must be an HTTP URL" , 25 , 5 },
320
+ ValidationError {"description.eng.documentation" , "'not_a_url' not reachable: missing URL scheme" , 25 , 5 },
321
+ },
322
+ "description_eng_documentation_wrong_type.yml" : ValidationResults {
323
+ ValidationError {"description.eng.documentation" , "wrong type for this field" , 25 , 1 },
324
+ ValidationError {"description.eng.documentation" , "must be an HTTP URL" , 25 , 5 },
325
+ ValidationError {"description.eng.documentation" , "'' not reachable: missing URL scheme" , 25 , 5 },
326
+ },
327
+ "description_eng_apiDocumentation_invalid.yml" : ValidationResults {
328
+ ValidationError {"description.eng.apiDocumentation" , "must be an HTTP URL" , 41 , 5 },
329
+ ValidationError {"description.eng.apiDocumentation" , "'abc' not reachable: missing URL scheme" , 41 , 5 },
330
+ },
331
+ "description_eng_apiDocumentation_wrong_type.yml" : ValidationResults {
332
+ ValidationError {"description.eng.apiDocumentation" , "wrong type for this field" , 43 , 1 },
333
+ ValidationError {"description.eng.apiDocumentation" , "must be an HTTP URL" , 43 , 5 },
334
+ ValidationError {"description.eng.apiDocumentation" , "'' not reachable: missing URL scheme" , 43 , 5 },
335
+ },
312
336
"description_eng_screenshots_missing_file.yml" : ValidationResults {
313
337
ValidationError {
314
338
"description.eng.screenshots[0]" ,
@@ -321,6 +345,10 @@ func TestInvalidTestcasesV0_3(t *testing.T) {
321
345
ValidationError {"description.eng.awards" , "wrong type for this field" , 40 , 1 },
322
346
},
323
347
"description_eng_videos_invalid.yml" : ValidationResults {
348
+ ValidationError {"description.eng.videos[0]" , "must be an HTTP URL" , 20 , 5 },
349
+ ValidationError {"description.eng.videos[0]" , "'ABC' is not a valid video URL supporting oEmbed: invalid oEmbed link: ABC" , 20 , 5 },
350
+ },
351
+ "description_eng_videos_invalid_oembed.yml" : ValidationResults {
324
352
ValidationError {"description.eng.videos[0]" , "'https://google.com' is not a valid video URL supporting oEmbed: invalid oEmbed link: https://google.com" , 20 , 5 },
325
353
},
326
354
@@ -383,6 +411,9 @@ func TestInvalidTestcasesV0_3(t *testing.T) {
383
411
"maintenance_contractors_email_invalid.yml" : ValidationResults {
384
412
ValidationError {"maintenance.contractors[0].email" , "must be a valid email" , 0 , 0 },
385
413
},
414
+ "maintenance_contractors_website_invalid.yml" : ValidationResults {
415
+ ValidationError {"maintenance.contractors[0].website" , "must be an HTTP URL" , 0 , 0 }, // TODO: line number
416
+ },
386
417
387
418
// localisation
388
419
"localisation_availableLanguages_missing.yml" : ValidationResults {
0 commit comments