From af5132f1001fc0c9ceddae7e699c0df77807d807 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Wed, 19 Jul 2023 14:32:53 -0400 Subject: [PATCH] backport of commit 215687795d6b9ad2b3a3e2c7dbb70b01cc470e44 (#21954) Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com> --- vault/mount.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vault/mount.go b/vault/mount.go index a29b44b42..a485f2acf 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -509,6 +509,11 @@ func (entry *MountEntry) Deserialize() map[string]interface{} { } } +// DecodeMountTable is used for testing +func (c *Core) DecodeMountTable(ctx context.Context, raw []byte) (*MountTable, error) { + return c.decodeMountTable(ctx, raw) +} + func (c *Core) decodeMountTable(ctx context.Context, raw []byte) (*MountTable, error) { // Decode into mount table mountTable := new(MountTable)