Skip to content

Commit

Permalink
test: use publiccode-editor repository for remote validation
Browse files Browse the repository at this point in the history
Use the italia/publiccode-editor repository as we can change the
publiccode.yml more quickly, if we need to.
  • Loading branch information
bfabio committed Feb 16, 2021
1 parent 517159a commit 3607667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,14 @@ func TestValidTestcasesV0_2(t *testing.T) {
// Test publiccode.yml remote files for key errors.
func TestDecodeValueErrorsRemote(t *testing.T) {
testRemoteFiles := []testType{
{"https://raw.githubusercontent.com/pagopa/io-app/master/publiccode.yml", nil},
{"https://raw.githubusercontent.com/italia/publiccode-editor/master/publiccode.yml", nil},
}

for _, test := range testRemoteFiles {
t.Run(fmt.Sprintf("%v", test.err), func(t *testing.T) {
// Parse data into pc struct.
p := NewParser()
p.RemoteBaseURL = "https://raw.githubusercontent.com/pagopa/io-app/master"
p.RemoteBaseURL = "https://raw.githubusercontent.com/italia/publiccode-editor/master"
err := p.ParseRemoteFile(test.file)

checkParseErrors(t, err, test)
Expand Down

0 comments on commit 3607667

Please sign in to comment.