-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/proxy, all: refactor proxy tests
Move code for proxy testing to the proxy package and re-use it across the module. This allows us to remove many real calls to the proxy in tests, which are brittle and require a network connection. Additionally, refactor testing in genericosv.ToReport so that each sub-test has it's own stored proxy responses JSON blob. This will make it easier to see which tests are affected by a change, and to isolate proxy responses between tests. Change-Id: Icf52cff82ded3bb4627d55448051d230310eb670 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/524076 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
- Loading branch information
Showing
47 changed files
with
677 additions
and
501 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
Oops, something went wrong.