Closed craddm closed 2 months ago
I just got this result from 3035d81 when running the smoke tests as root
:
root@shm-pink-sre-fuschia-vm-workspace-02:/usr/local/smoke_tests# bats run_all_tests.bats
✓ Mounted drives (/data)
✓ Mounted drives (/home)
✓ Mounted drives (/output)
✓ Mounted drives (/shared)
✓ Python package repository
✓ R package repository
✓ Python functionality
✓ R functionality
✓ MS SQL database (Python)
✓ MS SQL database (R)
✓ Postgres database (Python)
✓ Postgres database (R)
12 tests, 0 failures
Is this the issue (in test_databases.sh
):
we make this assumption about the database hostname
sre_prefix="$(hostname | cut -d "-" -f 1-4)"
hostname="${sre_prefix}-db-server-mssql"
while we should probably pass this in as a variable.
It's not this - it's incorrect escaping when we write special characters to /etc/database_credential
.
Fixed by #2125
:white_check_mark: Checklist
:computer: System information
update-nexus-allowlist
3035d81 (parity withrelease-v5.0.0
):package: Packages
List of packages
```none Paste list of packages here ```:no_entry_sign: Describe the problem
Smoke tests involving databases are failing for both Python and R
:deciduous_tree: Log messages
Relevant log messages
```none root@shm-green-sre-noteasybeing-vm-workspace-01:/usr/local/smoke_tests# bats run_all_tests.bats -f "database" ✗ MS SQL database (Python) (in test file run_all_tests.bats, line 101) `[ "$status" -eq 0 ]' failed ✗ MS SQL database (R) (in test file run_all_tests.bats, line 111) `[ "$status" -eq 0 ]' failed ✗ Postgres database (Python) (in test file run_all_tests.bats, line 119) `[ "$status" -eq 0 ]' failed ```:recycle: To reproduce