about summary refs log tree commit diff
path: root/nixos/tests/web-apps/pretalx.nix
blob: a226639b076b49762faffbc350f0a0d160cb8bce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, ... }:

{
  name = "pretalx";
  meta.maintainers = lib.teams.c3d2.members;

  nodes = {
    pretalx = {
      networking.extraHosts = ''
        127.0.0.1 talks.local
      '';

      services.pretalx = {
        enable = true;
        nginx.domain = "talks.local";
        settings = {
          site.url = "http://talks.local";
        };
      };
    };
  };

  testScript = ''
    start_all()

    pretalx.wait_for_unit("pretalx-web.service")
    pretalx.wait_for_unit("pretalx-worker.service")

    pretalx.wait_until_succeeds("curl -q --fail http://talks.local/orga/")
  '';
}