2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
18 lines
474 B
Nix
18 lines
474 B
Nix
import ./make-test-python.nix ({ lib, ... }: {
|
|
name = "tandoor-recipes";
|
|
meta.maintainers = with lib.maintainers; [ ambroisie ];
|
|
|
|
nodes.machine = { pkgs, ... }: {
|
|
services.tandoor-recipes = {
|
|
enable = 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")
|
|
'';
|
|
})
|