pump.io: fix tests

fixes #23568
This commit is contained in:
Jörg Thalheim 2017-03-12 15:56:31 +01:00
parent f488b1811b
commit 41625dcab6
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -51,16 +51,6 @@ import ./make-test.nix ({ pkgs, ...} : let
Vd5WD2HJhLb9u0UxVp9vfWIUDgydopV5ZmWCQ5YvNepb1w==
-----END CERTIFICATE-----
'';
makePump = { opts ? { } }:
{
enable = true;
sslCert = pkgs.writeText "snakeoil.cert" snakeOilCert;
sslKey = pkgs.writeText "snakeoil.pem" snakeOilKey;
secret = "test";
site = "test";
} // opts;
in {
name = "pumpio";
meta = with pkgs.stdenv.lib.maintainers; {
@ -72,9 +62,14 @@ in {
{ config, pkgs, ... }:
{
services = {
pumpio = makePump { opts = {
pumpio = {
port = 443;
}; };
enable = true;
sslCert = pkgs.writeText "snakeoil.cert" snakeOilCert;
sslKey = pkgs.writeText "snakeoil.pem" snakeOilKey;
secretFile = pkgs.writeText "secretFile" "test123";
site = "test";
};
mongodb.enable = true;
mongodb.extraConfig = ''
storage.journal.enabled: false