Fix lifetime watcher user agent reporting Vault Agent for Vault Proxy requests (#23944)

This commit is contained in:
Violet Hynes
2023-11-03 10:24:43 -04:00
committed by GitHub
parent 1c9090b117
commit fd2c737c51
7 changed files with 44 additions and 29 deletions

View File

@@ -176,10 +176,11 @@ func TestCache_UsingAutoAuthToken(t *testing.T) {
// Create the lease cache proxier and set its underlying proxier to
// the API proxier.
leaseCache, err := cache.NewLeaseCache(&cache.LeaseCacheConfig{
Client: client,
BaseContext: ctx,
Proxier: apiProxy,
Logger: cacheLogger.Named("leasecache"),
Client: client,
BaseContext: ctx,
Proxier: apiProxy,
Logger: cacheLogger.Named("leasecache"),
UserAgentToUse: "test",
})
if err != nil {
t.Fatal(err)