tests: Use an env variable for the private seed
This commit is contained in:
committed by
nitnelave
parent
042429a11d
commit
6cd6b412fe
@@ -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();
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user