fix(2): mattermost-lts P4 overlay — postgres service is named 'postgres' not 'db' (exec_in_app container discovery)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-30 01:18:57 +01:00
parent 21e0b16ac4
commit 012a477540
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ def _psql(domain, sql):
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
f'psql -U mattermost -d mattermost -tAc "{sql}"'
)
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="db").strip()
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="postgres").strip()
def _seed(domain, value):

View File

@ -14,7 +14,7 @@ def _psql(domain, sql):
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
f'psql -U mattermost -d mattermost -tAc "{sql}"'
)
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="db").strip()
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="postgres").strip()
def test_backup_captures_state(live_app):

View File

@ -15,7 +15,7 @@ def _psql(domain, sql):
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
f'psql -U mattermost -d mattermost -tAc "{sql}"'
)
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="db").strip()
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="postgres").strip()
def test_restore_returns_state(live_app):

View File

@ -14,7 +14,7 @@ def _psql(domain, sql):
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
f'psql -U mattermost -d mattermost -tAc "{sql}"'
)
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="db").strip()
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="postgres").strip()
def test_upgrade_preserves_data(live_app):