2019-11-06 15:07:18 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2018-10-11 08:09:29 +00:00
|
|
|
name = "roundcube";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ globin ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
roundcube = { config, pkgs, ... }: {
|
|
|
|
services.roundcube = {
|
|
|
|
enable = true;
|
|
|
|
hostName = "roundcube";
|
2019-11-04 10:03:00 +00:00
|
|
|
database.password = "not production";
|
2019-01-31 21:45:14 +00:00
|
|
|
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
|
|
|
|
plugins = [ "persistent_login" ];
|
2018-10-11 08:09:29 +00:00
|
|
|
};
|
|
|
|
services.nginx.virtualHosts.roundcube = {
|
|
|
|
forceSSL = false;
|
|
|
|
enableACME = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-11-22 16:01:29 +00:00
|
|
|
roundcube.start
|
|
|
|
roundcube.wait_for_unit("postgresql.service")
|
|
|
|
roundcube.wait_for_unit("phpfpm-roundcube.service")
|
|
|
|
roundcube.wait_for_unit("nginx.service")
|
|
|
|
roundcube.succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'")
|
2018-10-11 08:09:29 +00:00
|
|
|
'';
|
|
|
|
})
|