mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
2fa56fcb30
This is a work-around for getting the tests working until #216989 is fixed.
19 lines
474 B
Nix
19 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")
|
|
'';
|
|
})
|