nixpkgs/nixos/tests/mealie.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
446 B
Nix
Raw Permalink Normal View History

import ./make-test-python.nix ({ pkgs, ...} :
{
name = "mealie";
meta = with pkgs.lib.maintainers; {
maintainers = [ litchipi anoa ];
};
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")
'';
})