summary refs log blame commit diff
path: root/nixos/tests/zammad.nix
blob: 0125aa3a8da969590e0df474df9f453c61a0958a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                




                      
                                                                


                                      















                                                                                           
import ../make-test-python.nix (
  { lib, ... }:

    {
      name = "zammad";

      meta.maintainers = with lib.maintainers; [ garbas taeer ];

      nodes.machine = {
        services.zammad.enable = true;
      };

      testScript = ''
        start_all()
        machine.wait_for_unit("postgresql.service")
        machine.wait_for_unit("zammad-web.service")
        machine.wait_for_unit("zammad-websocket.service")
        machine.wait_for_unit("zammad-scheduler.service")
        # without the grep the command does not produce valid utf-8 for some reason
        with subtest("welcome screen loads"):
            machine.succeed(
                "curl -sSfL http://localhost:3000/ | grep '<title>Zammad Helpdesk</title>'"
            )
      '';
    }
)