mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
backport of commit e29842e49e (#21711)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
5ee5e2ce46
commit
7c8408e6af
@@ -448,6 +448,7 @@ func TestCertStorageMetrics(t *testing.T) {
|
||||
}
|
||||
cluster := vault.NewTestCluster(t, coreConfig, &vault.TestClusterOptions{
|
||||
HandlerFunc: vaulthttp.Handler,
|
||||
NumCores: 1,
|
||||
})
|
||||
cluster.Start()
|
||||
defer cluster.Cleanup()
|
||||
@@ -529,9 +530,9 @@ func TestCertStorageMetrics(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
// Reload the Mount - Otherwise Stored Certificate Counts Will Not Be Populated
|
||||
_, err = client.Logical().Write("/sys/plugins/reload/backend", map[string]interface{}{
|
||||
"plugin": "pki",
|
||||
})
|
||||
// Sealing cores as plugin reload triggers the race detector - VAULT-13635
|
||||
testhelpers.EnsureCoresSealed(t, cluster)
|
||||
testhelpers.EnsureCoresUnsealed(t, cluster)
|
||||
|
||||
// By reading the auto-tidy endpoint, we ensure that initialize has completed (which has a write lock on auto-tidy)
|
||||
_, err = client.Logical().Read("/pki/config/auto-tidy")
|
||||
|
||||
Reference in New Issue
Block a user