From ccb990e349ce69f30d449a4774a0dc9280779449 Mon Sep 17 00:00:00 2001 From: Christian Groschupp Date: Wed, 14 Jun 2023 11:08:26 +0200 Subject: [PATCH] fix annotation test --- internal/ingress/annotations/annotations_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/ingress/annotations/annotations_test.go b/internal/ingress/annotations/annotations_test.go index b1a50401c..f6b09be0e 100644 --- a/internal/ingress/annotations/annotations_test.go +++ b/internal/ingress/annotations/annotations_test.go @@ -54,7 +54,9 @@ type mockCfg struct { } func (m mockCfg) GetDefaultBackend() defaults.Backend { - return defaults.Backend{} + return defaults.Backend{ + AllowedResponseHeaders: []string{"Content-Type"}, + } } func (m mockCfg) GetSecret(name string) (*apiv1.Secret, error) { @@ -332,7 +334,6 @@ func TestCustomResponseHeaders(t *testing.T) { ec := NewAnnotationExtractor(mockObj) ing := buildIngress() - fooAnns := []struct { annotations map[string]string headers map[string]string