1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ globin ];
8 postfixadmin = { config, pkgs, ... }: {
9 services.postfixadmin = {
11 hostName = "postfixadmin";
12 setupPasswordFile = pkgs.writeText "insecure-test-setup-pw-file" "$2y$10$r0p63YCjd9rb9nHrV9UtVuFgGTmPDLKu.0UIJoQTkWCZZze2iuB1m";
14 services.nginx.virtualHosts.postfixadmin = {
23 postfixadmin.wait_for_unit("postgresql.service")
24 postfixadmin.wait_for_unit("phpfpm-postfixadmin.service")
25 postfixadmin.wait_for_unit("nginx.service")
27 "curl -sSfL http://postfixadmin/setup.php -X POST -F 'setup_password=not production'"
29 postfixadmin.succeed("curl -sSfL http://postfixadmin/ | grep 'Mail admins login here'")