at 25.11-pre 865 B view raw
1import ./make-test-python.nix ( 2 { pkgs, ... }: 3 4 { 5 name = "mealie"; 6 meta = with pkgs.lib.maintainers; { 7 maintainers = [ 8 litchipi 9 anoa 10 ]; 11 }; 12 13 nodes = 14 let 15 sqlite = { 16 services.mealie = { 17 enable = true; 18 port = 9001; 19 }; 20 }; 21 postgres = { 22 imports = [ sqlite ]; 23 services.mealie.database.createLocally = true; 24 }; 25 in 26 { 27 inherit sqlite postgres; 28 }; 29 30 testScript = '' 31 start_all() 32 33 def test_mealie(node): 34 node.wait_for_unit("mealie.service") 35 node.wait_for_open_port(9001) 36 node.succeed("curl --fail http://localhost:9001") 37 38 test_mealie(sqlite) 39 simple.send_monitor_command("quit") 40 simple.wait_for_shutdown() 41 test_mealie(postgres) 42 ''; 43 } 44)