about summary refs log tree commit diff
path: root/nixos/tests/eintopf.nix
blob: a1c05d6513041512136002a74dcb733c953ebbc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test-python.nix ({ pkgs, ...} : {
  name = "eintopf";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ onny ];
  };

  nodes = {
    eintopf = { config, pkgs, ... }: {
      services.eintopf = {
        enable = true;
      };
    };
  };

  testScript = ''
    eintopf.start
    eintopf.wait_for_unit("eintopf.service")
    eintopf.wait_for_open_port(3333)
    eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'Es sind keine Veranstaltungen eingetragen'")
  '';
})