Commit 91dab26
fix: resolve test script issues and improve error handling
- Fix cluster-lifecycle.sh test by removing invalid --preserve-existing flag from destroy command
* infra destroy doesn't support --preserve-existing (only infra apply does)
* Update documentation text to clarify actual safety mechanism
* Default behavior already only destroys resources defined in YAML configurations
- Fix database-operations.sh unbound variable errors and improve authentication
* Resolve $1 unbound variable error by using ${1:-all} pattern
* Add user existence validation before attempting username/password authentication
* Improve error messages and user feedback for missing manual credentials
* Enhanced robustness when manual database users aren't configured
Both scripts now run successfully with source .env from project root directory.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 96cc888 commit 91dab26
2 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | 477 | | |
479 | 478 | | |
480 | 479 | | |
| |||
1263 | 1262 | | |
1264 | 1263 | | |
1265 | 1264 | | |
1266 | | - | |
| 1265 | + | |
1267 | 1266 | | |
1268 | 1267 | | |
1269 | 1268 | | |
| |||
1337 | 1336 | | |
1338 | 1337 | | |
1339 | 1338 | | |
1340 | | - | |
| 1339 | + | |
1341 | 1340 | | |
1342 | 1341 | | |
1343 | 1342 | | |
| |||
1360 | 1359 | | |
1361 | 1360 | | |
1362 | 1361 | | |
1363 | | - | |
| 1362 | + | |
1364 | 1363 | | |
1365 | 1364 | | |
1366 | 1365 | | |
1367 | 1366 | | |
1368 | 1367 | | |
1369 | 1368 | | |
1370 | | - | |
| 1369 | + | |
1371 | 1370 | | |
1372 | 1371 | | |
1373 | 1372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| |||
175 | 185 | | |
176 | 186 | | |
177 | 187 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
181 | 192 | | |
182 | 193 | | |
183 | 194 | | |
| |||
964 | 975 | | |
965 | 976 | | |
966 | 977 | | |
967 | | - | |
| 978 | + | |
968 | 979 | | |
969 | 980 | | |
970 | 981 | | |
971 | 982 | | |
972 | 983 | | |
973 | 984 | | |
974 | | - | |
| 985 | + | |
975 | 986 | | |
976 | 987 | | |
977 | 988 | | |
| |||
0 commit comments