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 e5cfef2 commit 7a7d3bc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/supabase/supabase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,26 @@ func TestGetIndexes_SelfHosted(t *testing.T) {
assert.Error(t, err1)
}

func TestGetActions_Cloud(t *testing.T) {
cfg := loadCloudConfig()

_, err0 := supabase.GetTableRelationshipActions(cfg, "")
assert.Error(t, err0)

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

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

_, err0 := supabase.GetTableRelationshipActions(cfg, "")
assert.Error(t, err0)

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

func TestAdminUpdateUser_Cloud(t *testing.T) {
cfg := loadCloudConfig()

Expand Down

0 comments on commit 7a7d3bc

Please sign in to comment.