feat(storage): add multi-instance storage backends per workspace
Introduce tenant-scoped storage backend registry so workspaces can register multiple storage instances and bind each knowledge base to a specific backend, with migration from legacy tenant-level storage config and new settings UI.
This commit is contained in:
@@ -98,6 +98,11 @@ func TestFindIncompleteStorageURL(t *testing.T) {
|
||||
"text minio://",
|
||||
5,
|
||||
},
|
||||
{
|
||||
"partial scoped URL at end",
|
||||
"text storage://backend-a/co",
|
||||
5,
|
||||
},
|
||||
{
|
||||
"no storage URL",
|
||||
"just plain text http://example.com",
|
||||
@@ -291,6 +296,11 @@ func TestHoldbackCutoff(t *testing.T) {
|
||||
"prefix minio://wizard-test/10000/exp",
|
||||
7,
|
||||
},
|
||||
{
|
||||
"bare truncated scoped URL without markdown wrapper",
|
||||
"prefix storage://backend-a/cos://bucket/10000/exp",
|
||||
7,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user