Skip to content

Commit

Permalink
test: index and action API
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Oct 22, 2024
1 parent 0d3e6b5 commit e5cfef2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/supabase/supabase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1574,15 +1574,21 @@ func TestDeleteFunction_SelfHosted(t *testing.T) {
func TestGetIndexes_Cloud(t *testing.T) {
cfg := loadCloudConfig()

_, err := supabase.GetIndexes(cfg, "public")
assert.Error(t, err)
_, err0 := supabase.GetIndexes(cfg, "")
assert.Error(t, err0)

_, err1 := supabase.GetIndexes(cfg, "public")
assert.Error(t, err1)
}

func TestGetIndexes_SelfHosted(t *testing.T) {
cfg := loadSelfHostedConfig()

_, err := supabase.GetIndexes(cfg, "public")
assert.Error(t, err)
_, err0 := supabase.GetIndexes(cfg, "")
assert.Error(t, err0)

_, err1 := supabase.GetIndexes(cfg, "public")
assert.Error(t, err1)
}

func TestAdminUpdateUser_Cloud(t *testing.T) {
Expand Down

0 comments on commit e5cfef2

Please sign in to comment.