Documentation
¶
Index ¶
- func CleanupTaskData(db *sql.DB, tenantID uuid.UUID) error
- func CleanupTestData(db *sql.DB, tenantID uuid.UUID) error
- func CleanupWorkflowData(db *sql.DB, tenantID uuid.UUID) error
- func CleanupWorkspaceData(db *sql.DB, tenantID uuid.UUID) error
- func CreateTestTenant(db *sql.DB) (uuid.UUID, error)
- func CreateTestUser(db *sql.DB, tenantID uuid.UUID) (uuid.UUID, error)
- func GetTestDatabase(ctx context.Context) (*sql.DB, error)
- func RunMigrations(db *sql.DB) error
- func WaitForCondition(timeout time.Duration, check func() bool) bool
- type TestDatabaseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTaskData ¶
CleanupTaskData removes task-related data for a tenant
func CleanupTestData ¶
CleanupTestData removes all test data for a tenant
func CleanupWorkflowData ¶
CleanupWorkflowData removes workflow-related data for a tenant
func CleanupWorkspaceData ¶
CleanupWorkspaceData removes workspace-related data for a tenant
func CreateTestTenant ¶
CreateTestTenant creates a test tenant
func CreateTestUser ¶
CreateTestUser creates a test user
func GetTestDatabase ¶
GetTestDatabase returns a test database connection
Types ¶
type TestDatabaseConfig ¶
type TestDatabaseConfig struct { Host string Port string User string Password string Database string SSLMode string }
TestDatabaseConfig holds test database configuration
func GetTestDatabaseConfig ¶
func GetTestDatabaseConfig() TestDatabaseConfig
GetTestDatabaseConfig returns test database configuration
Click to show internal directories.
Click to hide internal directories.