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 d846b47c9a
commit 4a5e70e00d
2 changed files with 8 additions and 0 deletions
+1
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{
+7
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 {