From fb62a2595958d71386a81f10483f74c9c5951ae6 Mon Sep 17 00:00:00 2001 From: Ryan Old Date: Tue, 26 Nov 2024 10:36:04 -0800 Subject: [PATCH] Merged assertions --- test/kubernetes/e2e/features/virtualhost_options/types.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/kubernetes/e2e/features/virtualhost_options/types.go b/test/kubernetes/e2e/features/virtualhost_options/types.go index b333ddeedeb..cd6b1851581 100644 --- a/test/kubernetes/e2e/features/virtualhost_options/types.go +++ b/test/kubernetes/e2e/features/virtualhost_options/types.go @@ -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(), } @@ -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(), }