about summary refs log tree commit diff
path: root/nixos/tests/mealie.nix
blob: 88f749c7129484146d0d0d7b3c96db620d630aac (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
import ./make-test-python.nix ({ pkgs, ...} :

{
  name = "mealie";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ litchipi ];
  };

  nodes = {
    server = {
      services.mealie = {
        enable = true;
        port = 9001;
      };
    };
  };

  testScript = ''
    start_all()
    server.wait_for_unit("mealie.service")
    server.wait_for_open_port(9001)
    server.succeed("curl --fail http://localhost:9001")
  '';
})