Commit 603c4d0
committed
test(sqlx): add config management tests (41 assertions)
Converted from src/config/config_test.sql
Implemented 7 config management tests:
- add_and_remove_multiple_indexes: Test adding/removing multiple indexes
- add_and_remove_indexes_from_multiple_tables: Multi-table index management
- add_and_modify_index: Modify index with options and cast
- add_index_with_existing_active_config: Pending config creation with active
- add_column_to_nonexistent_table_fails: Error handling for invalid tables
- add_and_remove_column: Column lifecycle management
- configuration_constraint_validation: Schema validation constraints
Key implementation details:
- Created config_tables.sql fixture with users and blah tables
- Helper function search_config_exists() for config state verification
- Note: Empty tables {} is VALID per constraints.sql (config_check_tables
only validates field existence, not emptiness)
All 7 tests passing.1 parent 53da200 commit 603c4d0
2 files changed
+531
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments