vault: fix dropped test errors (#14402)

This commit is contained in:
Lars Lehtonen 2022-03-08 11:32:27 -08:00 committed by GitHub
parent e89bbd51d9
commit b9a6ec67c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,10 @@ func TestConfigCustomHeaders(t *testing.T) {
}
uiHeaders, err := uiConfig.Headers(context.Background())
if err != nil {
t.Fatal(err)
}
listenerCustomHeaders := NewListenerCustomHeader(rawListenerConfig, logger, uiHeaders)
if listenerCustomHeaders == nil || len(listenerCustomHeaders) != 1 {
t.Fatalf("failed to get custom header configuration")
@ -171,6 +175,9 @@ func TestCustomResponseHeadersConfigInteractUiConfig(t *testing.T) {
}
h, err = b.(*SystemBackend).Core.uiConfig.Headers(context.Background())
if err != nil {
t.Fatal(err)
}
if h.Get("X-CustomUiHeader") != "Ui header value" {
t.Fatalf("failed to set a header that is not in custom response headers")
}