-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve tests for http executor (#936)
While troubleshooting issues with HTTP jobs, I noticed that test cases that I expected to fail, were not causing the test to fail. I dug in and realilzed that the errors from the output were not being checked. The returned error was being checked, but this is hardcoded to nil in the return so it offers very little value. This adds some common test cases for the HTTP executor and ensures that many input validations return an error and known good configurations work as expected. This also updates the Dockerfile to go 1.16 because 1.15 does not include go:embed and was causing `make test` to fail.
- Loading branch information
Showing
1 changed file
with
87 additions
and
35 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