Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,37 @@
"name": "my-bucket"
}
}
},
{
"request": {
"method": "POST",
"path": "/storage/v1/vector/ListVectorBuckets",
"query": {},
"headers": {
"accept-encoding": "gzip",
"apikey": "__JWT__",
"authorization": "Bearer __ACCESS_TOKEN__",
"content-length": "3",
"content-type": "application/json",
"host": "localhost:__PORT__",
"user-agent": "SupabaseCLI/"
},
"body": {}
},
"response": {
"status": 200,
"headers": {
"access-control-allow-origin": "*",
"content-type": "application/json; charset=utf-8",
"sb-gateway-mode": "direct",
"sb-gateway-version": "1",
"sb-project-ref": "__PROJECT_REF__",
"sb-request-id": "__UUID__",
"x-content-type-options": "nosniff"
},
"body": {
"vectorBuckets": []
}
}
}
]
4 changes: 4 additions & 0 deletions apps/cli-go/internal/start/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ func TestDatabaseStart(t *testing.T) {
Get("/storage/v1/bucket").
Reply(http.StatusOK).
JSON([]storage.BucketResponse{})
gock.New(utils.Config.Api.ExternalUrl).
Post("/storage/v1/vector/ListVectorBuckets").
Reply(http.StatusOK).
JSON(storage.ListVectorBucketsResponse{})
// Run test
err = run(ctx, fsys, []string{}, pgconn.Config{Host: utils.DbId}, conn.Intercept)
// Check error
Expand Down
1 change: 1 addition & 0 deletions apps/cli-go/pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestConfigParsing(t *testing.T) {
err := config.Load("", fs.MapFS{})
// Check error
assert.NoError(t, err)
assert.True(t, config.Storage.VectorBuckets.Enabled)
})

t.Run("auth external url defaults from api external url", func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion apps/cli-go/pkg/config/templates/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ max_catalogs = 2

# Store vector embeddings in S3 for large and durable datasets
[storage.vector]
enabled = false
enabled = true
max_buckets = 10
max_indexes = 5

Expand Down
Loading