Skip to content

Commit c1afae0

Browse files
authored
test: use the main branch for remote testdata files (italia#241)
Use the main branch now that those files are on main.
1 parent ac7642a commit c1afae0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

parser_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ func TestRelativePathsOrURLs(t *testing.T) {
711711
testRemoteFiles := []testType{
712712
// Remote publiccode.yml and relative path in screenshots:
713713
// should look for the screenshot remotely relative to this URL
714-
{"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/relative-paths/testdata/v0/invalid/description_en_screenshots_missing_file.yml", ValidationResults{
715-
ValidationError{"description.en.screenshots[0]", "'no_such_file.png' is not an image: HTTP GET failed for https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/relative-paths/testdata/v0/invalid/no_such_file.png: not found", 20, 5},
714+
{"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/main/testdata/v0/invalid/description_en_screenshots_missing_file.yml", ValidationResults{
715+
ValidationError{"description.en.screenshots[0]", "'no_such_file.png' is not an image: HTTP GET failed for https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/main/testdata/v0/invalid/no_such_file.png: not found", 20, 5},
716716
}},
717717

718718
// Local publiccode.yml and relative path in screenshot:
@@ -723,7 +723,7 @@ func TestRelativePathsOrURLs(t *testing.T) {
723723

724724
// Remote publiccode.yml and URL in logo:
725725
// should look for the logo remotely
726-
{"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/relative-paths/testdata/v0/invalid/logo_missing_url.yml", ValidationResults{
726+
{"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/main/testdata/v0/invalid/logo_missing_url.yml", ValidationResults{
727727
ValidationError{"logo", "HTTP GET failed for https://google.com/no_such_file.png: not found", 18, 1},
728728
}},
729729

@@ -763,7 +763,7 @@ func TestRelativePathsOrURLsNoNetworkRemoteChecks(t *testing.T) {
763763

764764
// Remote publiccode.yml and URL in logo:
765765
// should look for the logo remotely but DisableNetwork is true, so no check is performed.
766-
"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/relative-paths/testdata/v0/invalid/logo_missing_url.yml",
766+
"https://raw.githubusercontent.com/italia/publiccode-parser-go/refs/heads/main/testdata/v0/invalid/logo_missing_url.yml",
767767

768768
// Local publiccode.yml and URL in logo:
769769
// should look for the logo remotely but DisableNetwork is true, so no check is performed.
39 KB
Loading

0 commit comments

Comments
 (0)