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:
@ -17,7 +17,7 @@ def _psql(domain, sql):
|
|||||||
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
||||||
f'psql -U mattermost -d mattermost -tAc "{sql}"'
|
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):
|
def _seed(domain, value):
|
||||||
|
|||||||
@ -14,7 +14,7 @@ def _psql(domain, sql):
|
|||||||
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
||||||
f'psql -U mattermost -d mattermost -tAc "{sql}"'
|
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):
|
def test_backup_captures_state(live_app):
|
||||||
|
|||||||
@ -15,7 +15,7 @@ def _psql(domain, sql):
|
|||||||
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
||||||
f'psql -U mattermost -d mattermost -tAc "{sql}"'
|
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):
|
def test_restore_returns_state(live_app):
|
||||||
|
|||||||
@ -14,7 +14,7 @@ def _psql(domain, sql):
|
|||||||
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
"PGPASSWORD=$(cat /run/secrets/postgres_password) "
|
||||||
f'psql -U mattermost -d mattermost -tAc "{sql}"'
|
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):
|
def test_upgrade_preserves_data(live_app):
|
||||||
|
|||||||
Reference in New Issue
Block a user