1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta = with pkgs.lib.maintainers; {
8 sogo = { config, pkgs, ... }: {
9 services.nginx.enable = true;
13 package = pkgs.mariadb;
14 ensureDatabases = [ "sogo" ];
18 "sogo.*" = "ALL PRIVILEGES";
25 timezone = "Europe/Berlin";
32 userPasswordAlgorithm = md5;
33 viewURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_users";
34 canAuthenticate = YES;
39 SOGoProfileURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_user_profile";
40 OCSFolderInfoURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_folder_info";
41 OCSSessionsFolderURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_sessions_folder";
42 OCSEMailAlarmsFolderURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_alarms_folder";
43 OCSStoreURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_store";
44 OCSAclURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_acl";
45 OCSCacheFolderURL = "mysql://sogo@%2Frun%2Fmysqld%2Fmysqld.sock/sogo/sogo_cache_folder";
53 sogo.wait_for_unit("multi-user.target")
54 sogo.wait_for_open_port(20000)
55 sogo.wait_for_open_port(80)
56 sogo.succeed("curl -sSfL http://sogo/SOGo")