1import ./make-test-python.nix (
2 { pkgs, ... }:
3 {
4 name = "roundcube";
5 meta = with pkgs.lib.maintainers; {
6 maintainers = [ globin ];
7 };
8
9 nodes = {
10 roundcube =
11 { config, pkgs, ... }:
12 {
13 services.roundcube = {
14 enable = true;
15 hostName = "roundcube";
16 database.password = "not production";
17 package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
18 plugins = [ "persistent_login" ];
19 dicts = with pkgs.aspellDicts; [
20 en
21 fr
22 de
23 ];
24 };
25 services.nginx.virtualHosts.roundcube = {
26 forceSSL = false;
27 enableACME = false;
28 };
29 };
30 };
31
32 testScript = ''
33 roundcube.start
34 roundcube.wait_for_unit("postgresql.service")
35 roundcube.wait_for_unit("phpfpm-roundcube.service")
36 roundcube.wait_for_unit("nginx.service")
37 roundcube.succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'")
38 '';
39 }
40)