summaryrefslogtreecommitdiffstats
path: root/nixos/tests/tandoor-recipes.nix
blob: 0c7ec61dd28210cf65161987133f4f76e9bf8622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, ... }:
{
  name = "tandoor-recipes";
  meta.maintainers = [ ];

  nodes.machine =
    { pkgs, ... }:
    {
      services.tandoor-recipes = {
        enable = true;
        database.createLocally = true;
      };
    };

  testScript = ''
    machine.wait_for_unit("tandoor-recipes.service")

    with subtest("Web interface gets ready"):
        # Wait until server accepts connections
        machine.wait_until_succeeds("curl -fs localhost:8080")
  '';
}