tests: Use an env variable for the private seed

This commit is contained in:
Valentin Tolmer
2023-08-04 17:09:32 +02:00
committed by nitnelave
parent 042429a11d
commit 6cd6b412fe
2 changed files with 2 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
use std::env::var;
pub const DB_KEY: &str = "LLDAP_DATABASE_URL";
pub const PRIVATE_KEY_SEED: &str = "LLDAP_KEY_SEED";
pub fn database_url() -> String {
let url = var(DB_KEY).ok();

View File

@@ -236,5 +236,6 @@ fn create_lldap_command() -> Command {
let db_url = env::database_url();
cmd.current_dir(path);
cmd.env(env::DB_KEY, db_url);
cmd.env(env::PRIVATE_KEY_SEED, "Random value");
cmd
}