s: add dummy_secrets for tests
This commit is contained in:
parent
e58635b1d2
commit
d68b340b9b
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
0
shared/6tests/data/secrets/retiolum.rsa_key.priv
Normal file
0
shared/6tests/data/secrets/retiolum.rsa_key.priv
Normal file
Loading…
Reference in a new issue