Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simulated GitHub API requests and responses
Used Hoverfly[1] to capture[2] these simulations[3] Now if we run the tests as below[4], Hoverfly will intercept the requests to the GitHub API and return the simulated responses. This means that we no longer need to provide a GitHub `INPUT_REPO_TOKEN` when running the tests (fixes #85). Local setup of Hoverfly to get the tests to run is as simple as 1. Install Hoverfly[5] 2. Download the Hoverfly default cert[6] 3. Install and trust the Hoverfly default cert[7] [1] https://docs.hoverfly.io/ [2] https://docs.hoverfly.io/en/latest/pages/keyconcepts/modes/capture.html [3] https://docs.hoverfly.io/en/latest/pages/keyconcepts/simulations/simulations.html [4] HTTPS_PROXY=localhost:8500 go test ./... [5] https://docs.hoverfly.io/en/latest/pages/introduction/downloadinstallation.html [6] https://github.com/SpectoLabs/hoverfly/blob/master/core/cert.pem [7] https://docs.hoverfly.io/en/latest/pages/tutorials/advanced/configuressl/configuressl.html
- Loading branch information