fix annotation test
This commit is contained in:
parent
6836b7103d
commit
ccb990e349
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue