allow plugins/ as a valid directory in the BSL bucket

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2020-03-17 11:14:41 -06:00
parent 981e92c3e7
commit 1ba7b573e0
2 changed files with 8 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ func NewObjectStoreLayout(prefix string) *ObjectStoreLayout {
"restores": path.Join(prefix, "restores") + "/",
"restic": path.Join(prefix, "restic") + "/",
"metadata": path.Join(prefix, "metadata") + "/",
"plugins": path.Join(prefix, "plugins") + "/",
}
return &ObjectStoreLayout{

View File

@@ -138,6 +138,13 @@ func TestIsValid(t *testing.T) {
},
expectErr: false,
},
{
name: "backup store with plugins directory is valid",
storageData: map[string][]byte{
"plugins/vsphere/foo": {},
},
expectErr: false,
},
}
for _, tc := range tests {