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