Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin-test: check Auth is used when list-all uses Github API
Many plugins were having this problem where they rely on accessing GitHub's API for listing versions from some repo releases. But not setting an Authorization token for `curl`, causes the test to fail. We now detect that if the plugin `list-all` looks like accessing `api.github.com` and if so, we also try to guess if the Authroization header will be set. If not, we fail the test and head the plugin author to some documentation on how to add it. Hope this reduces the number of failures due to GitHub API rate limiting on travis.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 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