s: add dummy_secrets for tests

This commit is contained in:
lassulus 2016-08-05 13:30:27 +02:00
parent e58635b1d2
commit d68b340b9b
3 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,10 @@ with config.krebs.lib;
url = https://github.com/NixOS/nixpkgs;
ref = "63b9785"; # stable @ 2016-06-01
};
secrets.file = "${getEnv "HOME"}/secrets/krebs/${host.name}";
secrets.file =
if getEnv "dummy_secrets" == "true"
then toString <stockholm/shared/6tests/data/secrets>
else "${getEnv "HOME"}/secrets/krebs/${host.name}";
stockholm.file = getEnv "PWD";
};

View File

@ -71,7 +71,11 @@
# prepare grab_repo step for stockholm
grab_repo = steps.Git(repourl=stockholm_repo, mode='incremental')
env = {"LOGNAME": "shared", "NIX_REMOTE": "daemon"}
env = {
"LOGNAME": "shared",
"NIX_REMOTE": "daemon",
"dummy_secrets": "true",
}
# prepare nix-shell
# the dependencies which are used by the test script