Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LorcanMcVeigh committed Jul 24, 2019
2 parents db6c954 + e22d797 commit dacd4a7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pkg/apis/configuration/validation/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,20 @@ func TestValidateUpstreams(t *testing.T) {
{
upstreams: []v1alpha1.Upstream{
{
Name: "upstream1",
Service: "test-1",
Port: 80,
Name: "upstream1",
Service: "test-1",
Port: 80,
ProxyNextUpstream: "error timeout",
ProxyNextUpstreamTimeout: "10s",
ProxyNextUpstreamTries: createPointerFromInt(5),
},
{
Name: "upstream2",
Service: "test-2",
Port: 80,
Name: "upstream2",
Service: "test-2",
Port: 80,
ProxyNextUpstream: "http_404",
ProxyNextUpstreamTimeout: "3s",
ProxyNextUpstreamTries: createPointerFromInt(15),
},
},
expectedUpstreamNames: map[string]sets.Empty{
Expand Down

0 comments on commit dacd4a7

Please sign in to comment.