Skip to content

Commit

Permalink
Merged assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Nov 26, 2024
1 parent 2b93f93 commit fb62a25
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/kubernetes/e2e/features/virtualhost_options/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ var (
StatusCode: http.StatusOK,
Custom: gomega.And(
gomega.Not(matchers.ContainHeaderKeys([]string{"x-foo"})),
matchers.ContainHeaderKeys([]string{"x-bar"}),
matchers.ContainHeaderKeys([]string{"x-baz"}),
matchers.ContainHeaderKeys([]string{"x-bar", "x-baz"}),
),
Body: gstruct.Ignore(),
}
Expand Down Expand Up @@ -116,9 +115,7 @@ var (
},
// Make sure the x-bar isn't being removed as a function of the unwanted VHO
Custom: gomega.And(
matchers.ContainHeaderKeys([]string{"x-foo"}),
matchers.ContainHeaderKeys([]string{"x-bar"}),
matchers.ContainHeaderKeys([]string{"x-baz"}),
matchers.ContainHeaderKeys([]string{"x-foo", "x-bar", "x-baz"}),
),
Body: gstruct.Ignore(),
}
Expand Down

0 comments on commit fb62a25

Please sign in to comment.