forked from projectcontour/contour
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: consolidate envoy Cluster defaults
Many tests need to specify default fields for envoy `Cluster` structs so that struct equality tests can succeed. Specifying these defaults in many places is fragile and tends to make it harder to see the field values that actually matter to the tests. Consolidating the defaults into a handful of helpers reduces the overally clutter. We still need a couple of duplicates of the helper so that we can avoid package dependency cycles. This updates projectcontour#1375. Signed-off-by: James Peach <jpeach@vmware.com>
- Loading branch information
Showing
6 changed files
with
113 additions
and
209 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.