feat(backend): update main entry and test DB utilities
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable"
|
||||
const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable&require_auth=scram-sha-256"
|
||||
|
||||
func Pool(t *testing.T) *pgxpool.Pool {
|
||||
t.Helper()
|
||||
@@ -140,6 +140,9 @@ func Migrate(t *testing.T, pool *pgxpool.Pool) {
|
||||
"exceptional_working_hours",
|
||||
"exceptional_working_hours_groups",
|
||||
"business_settings",
|
||||
"login_audit",
|
||||
"refresh_tokens",
|
||||
"revoked_jtis",
|
||||
}
|
||||
|
||||
for _, table := range dropOrder {
|
||||
@@ -312,6 +315,9 @@ func TruncateTables(t *testing.T, pool *pgxpool.Pool) {
|
||||
"users",
|
||||
"images",
|
||||
"tags",
|
||||
"login_audit",
|
||||
"refresh_tokens",
|
||||
"revoked_jtis",
|
||||
}
|
||||
|
||||
for _, table := range tables {
|
||||
|
||||
Reference in New Issue
Block a user