Configure Sandbox before tests

This commit is contained in:
ms 2021-07-27 07:26:57 +02:00
parent a4bfce6e93
commit 375b3af7e8
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -201,6 +201,15 @@ export class LibeufinSandboxService implements LibeufinSandboxServiceInterface {
} }
async start(): Promise<void> { async start(): Promise<void> {
const stdout = await sh(
this.globalTestState,
"libeufin-sandbox-config",
"libeufin-sandbox config localhost",
{
...process.env,
LIBEUFIN_SANDBOX_DB_CONNECTION: this.sandboxConfig.databaseJdbcUri,
},
);
this.sandboxProc = this.globalTestState.spawnService( this.sandboxProc = this.globalTestState.spawnService(
"libeufin-sandbox", "libeufin-sandbox",
["serve", "--port", `${this.sandboxConfig.httpPort}`], ["serve", "--port", `${this.sandboxConfig.httpPort}`],