MCPcopy Create free account
hub / github.com/PostHog/duckgres / startIntegrationPostgres

Function startIntegrationPostgres

controlplane/admin/api_postgres_test.go:47–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45 },
46 },
47 {
48 name: "delete org",
49 orgID: "admission-delete-org",
50 seed: func(t *testing.T, store *configstore.ConfigStore) {
51 t.Helper()
52 if err := store.DB().Create(&configstore.Org{Name: "admission-delete-org", DatabaseName: "admission_delete_org"}).Error; err != nil {
53 t.Fatalf("create org: %v", err)
54 }
55 },
56 mutation: func(store *gormAPIStore) error {
57 found, err := store.DeleteOrg("admission-delete-org")
58 if err == nil && !found {
59 return errors.New("deleted org was not found")
60 }
61 return err
62 },
63 },
64 {
65 name: "update user",
66 orgID: "admission-update-user",

Callers 1

newPostgresConfigStoreFunction · 0.85

Calls 4

AddMethod · 0.80
NowMethod · 0.80
findProjectRootFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected