From 455a4505c13f9a43a0361d9a70e2a74ef54570b6 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 6 Oct 2023 19:37:48 +0100 Subject: [PATCH] make sure we initialize the DefaultHandlerProperties -> ListenerConfig in ClusterSetup (#23558) --- helper/testhelpers/teststorage/teststorage.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helper/testhelpers/teststorage/teststorage.go b/helper/testhelpers/teststorage/teststorage.go index 9c588078fab1..75431867a274 100644 --- a/helper/testhelpers/teststorage/teststorage.go +++ b/helper/testhelpers/teststorage/teststorage.go @@ -10,6 +10,8 @@ import ( "os" "time" + "github.com/hashicorp/vault/internalshared/configutil" + "github.com/hashicorp/go-hclog" logicalKv "github.com/hashicorp/vault-plugin-secrets-kv" "github.com/hashicorp/vault/audit" @@ -242,6 +244,9 @@ func ClusterSetup(conf *vault.CoreConfig, opts *vault.TestClusterOptions, setup } localOpts := vault.TestClusterOptions{ HandlerFunc: vaulthttp.Handler, + DefaultHandlerProperties: vault.HandlerProperties{ + ListenerConfig: &configutil.Listener{}, + }, } if opts != nil { localOpts = *opts