Loading nixos/tests/mealie.nix +24 −9 Original line number Diff line number Diff line Loading @@ -10,20 +10,35 @@ import ./make-test-python.nix ( ]; }; nodes = { server = { nodes = let sqlite = { services.mealie = { enable = true; port = 9001; }; }; postgres = { imports = [ sqlite ]; services.mealie.database.createLocally = true; }; in { inherit sqlite postgres; }; testScript = '' start_all() server.wait_for_unit("mealie.service") server.wait_for_open_port(9001) server.succeed("curl --fail http://localhost:9001") def test_mealie(node): node.wait_for_unit("mealie.service") node.wait_for_open_port(9001) node.succeed("curl --fail http://localhost:9001") test_mealie(sqlite) simple.send_monitor_command("quit") simple.wait_for_shutdown() test_mealie(postgres) ''; } ) Loading
nixos/tests/mealie.nix +24 −9 Original line number Diff line number Diff line Loading @@ -10,20 +10,35 @@ import ./make-test-python.nix ( ]; }; nodes = { server = { nodes = let sqlite = { services.mealie = { enable = true; port = 9001; }; }; postgres = { imports = [ sqlite ]; services.mealie.database.createLocally = true; }; in { inherit sqlite postgres; }; testScript = '' start_all() server.wait_for_unit("mealie.service") server.wait_for_open_port(9001) server.succeed("curl --fail http://localhost:9001") def test_mealie(node): node.wait_for_unit("mealie.service") node.wait_for_open_port(9001) node.succeed("curl --fail http://localhost:9001") test_mealie(sqlite) simple.send_monitor_command("quit") simple.wait_for_shutdown() test_mealie(postgres) ''; } )