diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-01-31 22:45:14 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-02-08 13:35:09 +0000 |
commit | 6fb825b057699cba1df25aad4f1e2088b61d11d9 (patch) | |
tree | 75c5418f6c7214ea5e2cd743c9ae599ba4732524 /nixos/tests/roundcube.nix | |
parent | df0d11575c6beaa8f0562e5d0051f8b5e2eb7b14 (diff) |
nixos/roundcube: add package option
With this option it's possible to specify a custom expression for `roundcube`, i.e. a roundcube environment with third-party plugins as shown in the testcase.
Diffstat (limited to 'nixos/tests/roundcube.nix')
-rw-r--r-- | nixos/tests/roundcube.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/roundcube.nix b/nixos/tests/roundcube.nix index 178134fd9b309..ed0ebd7dd19dc 100644 --- a/nixos/tests/roundcube.nix +++ b/nixos/tests/roundcube.nix @@ -10,6 +10,8 @@ import ./make-test.nix ({ pkgs, ...} : { enable = true; hostName = "roundcube"; database.password = "notproduction"; + package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]); + plugins = [ "persistent_login" ]; }; services.nginx.virtualHosts.roundcube = { forceSSL = false; @@ -23,6 +25,6 @@ import ./make-test.nix ({ pkgs, ...} : { $roundcube->waitForUnit("postgresql.service"); $roundcube->waitForUnit("phpfpm-roundcube.service"); $roundcube->waitForUnit("nginx.service"); - $roundcube->succeed("curl -sSfL http://roundcube/"); + $roundcube->succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'"); ''; }) |