-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rules to check loading of URLs in package index
These rules check whether the various URLs provided in the package index data can be loaded.
- Loading branch information
Showing
11 changed files
with
547 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ule/rulefunction/testdata/packageindexes/packages-help-online-dead/package_foo_index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"packages": [ | ||
{ | ||
"name": "myboard1", | ||
"maintainer": "Jane Developer", | ||
"websiteURL": "http://example.com", | ||
"email": "jane@example.com", | ||
"help": { | ||
"online": "http://httpstat.us/403" | ||
}, | ||
"platforms": [], | ||
"tools": [] | ||
}, | ||
{ | ||
"name": "myboard2", | ||
"maintainer": "Jane Developer", | ||
"websiteURL": "http://example.com", | ||
"email": "jane@example.com", | ||
"help": { | ||
"online": "http://httpstat.us/404" | ||
}, | ||
"platforms": [], | ||
"tools": [] | ||
} | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
...nction/testdata/packageindexes/packages-platforms-help-online-dead/package_foo_index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"packages": [ | ||
{ | ||
"name": "myboard", | ||
"maintainer": "Jane Developer", | ||
"websiteURL": "http://example.com", | ||
"email": "jane@example.com", | ||
"help": { | ||
"online": "http://example.com" | ||
}, | ||
"platforms": [ | ||
{ | ||
"name": "My AVR Board", | ||
"architecture": "avr", | ||
"version": "1.0.0", | ||
"category": "Contributed", | ||
"help": { | ||
"online": "http://httpstat.us/403" | ||
}, | ||
"url": "https://janedeveloper.github.io/myboard/myboard-1.0.0.zip", | ||
"archiveFileName": "myboard-1.0.0.zip", | ||
"checksum": "SHA-256:ec3ff8a1dc96d3ba6f432b9b837a35fd4174a34b3d2927de1d51010e8b94f9f1", | ||
"size": "15005", | ||
"boards": [], | ||
"toolsDependencies": [] | ||
}, | ||
{ | ||
"name": "My SAMD Board", | ||
"architecture": "samd", | ||
"version": "1.0.0", | ||
"category": "Contributed", | ||
"help": { | ||
"online": "http://httpstat.us/404" | ||
}, | ||
"url": "https://janedeveloper.github.io/myboard/myboard-1.0.0.zip", | ||
"archiveFileName": "myboard-1.0.0.zip", | ||
"checksum": "SHA-256:ec3ff8a1dc96d3ba6f432b9b837a35fd4174a34b3d2927de1d51010e8b94f9f1", | ||
"size": "15005", | ||
"boards": [], | ||
"toolsDependencies": [] | ||
} | ||
], | ||
"tools": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.