From 00d1d304d22422d4ea76c1bc1a05cb9f8a3f6199 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 9 Apr 2020 20:35:51 +0200 Subject: [PATCH] Fix integration test certificate path Fix integration tests using the default certificate paths instead of having them located in the dedicated test database directory. Also increment key size to the minimum allowed of 1024. --- test/integration/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/index.js b/test/integration/index.js index 046e7a65..49546554 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -77,7 +77,9 @@ before(async function() { await exec(`node master --config ${masterConfigPath} config set master.auth_secret TestSecretDoNotUse`); await exec(`node master --config ${masterConfigPath} config set master.http_port 8880`); await exec(`node master --config ${masterConfigPath} config set master.https_port 4443`); - await exec(`node master --config ${masterConfigPath} config set master.tls_bits 512`); + await exec(`node master --config ${masterConfigPath} config set master.tls_certificate ${path.join(databaseDir, "cert.crt")}`); + await exec(`node master --config ${masterConfigPath} config set master.tls_private_key ${path.join(databaseDir, "cert.key")}`); + await exec(`node master --config ${masterConfigPath} config set master.tls_bits 1024`); await exec(`node master --config ${masterConfigPath} config set master.heartbeat_interval 0.25`); await exec(`node master --config ${masterConfigPath} config set master.connector_shutdown_timeout 2`);