fix: configure supplier payable production storage

This commit is contained in:
yueyang 2026-09-22 15:38:15 +08:00
parent 1c7647a3c2
commit 1f33d4620d
2 changed files with 14 additions and 0 deletions

View File

@ -95,6 +95,7 @@ services:
condition: service_healthy
environment:
RUN_MIGRATIONS: ${RUN_MIGRATIONS:-0}
SUPPLIER_PAYABLE_MAINTENANCE_DB_CONNECTION: business_mirror
env_file:
- ./runtime/qiniu-storage.env
- ./runtime/clickhouse.env

View File

@ -92,6 +92,19 @@ class BusinessMirrorScheduleTest extends TestCase
}
}
public function test_production_supplier_payable_maintenance_uses_the_business_mirror(): void
{
$compose = file_get_contents(dirname(__DIR__, 3) . '/compose.jiangling.yml');
$start = strpos($compose, " app:\n");
$end = strpos($compose, "\nvolumes:\n", $start);
$service = substr($compose, $start, $end - $start);
$this->assertStringContainsString(
'SUPPLIER_PAYABLE_MAINTENANCE_DB_CONNECTION: business_mirror',
$service,
);
}
public function test_tunnel_task_accepts_both_missing_task_exception_types(): void
{
$contents = file_get_contents(dirname(__DIR__, 3) . '/scripts/install-upstream-tunnel-task.ps1');