summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-08-05 13:30:27 +0200
committerlassulus <lass@aidsballs.de>2016-08-05 14:25:48 +0200
commit32a8bb4f7883befc11fac0ab1a529df280c03dec (patch)
treef7b00dcff5b37890ddad040ada4605e6cda212fd /shared
parent6c0fd28d3cc5c7ee1144a55f5cb1fea73b520f7f (diff)
s: add dummy_secrets for tests
Diffstat (limited to 'shared')
-rw-r--r--shared/2configs/default.nix5
-rw-r--r--shared/2configs/shared-buildbot.nix6
-rw-r--r--shared/6tests/data/secrets/retiolum.rsa_key.priv0
3 files changed, 9 insertions, 2 deletions
diff --git a/shared/2configs/default.nix b/shared/2configs/default.nix
index 4926894..1c875d2 100644
--- a/shared/2configs/default.nix
+++ b/shared/2configs/default.nix
@@ -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";
};
diff --git a/shared/2configs/shared-buildbot.nix b/shared/2configs/shared-buildbot.nix
index f1bd701..85e3cdf 100644
--- a/shared/2configs/shared-buildbot.nix
+++ b/shared/2configs/shared-buildbot.nix
@@ -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
diff --git a/shared/6tests/data/secrets/retiolum.rsa_key.priv b/shared/6tests/data/secrets/retiolum.rsa_key.priv
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/shared/6tests/data/secrets/retiolum.rsa_key.priv