at master 487 B view raw
1{ lib, ... }: 2{ 3 name = "tandoor-recipes"; 4 meta.maintainers = with lib.maintainers; [ ]; 5 6 nodes.machine = 7 { pkgs, ... }: 8 { 9 services.tandoor-recipes = { 10 enable = true; 11 database.createLocally = true; 12 }; 13 }; 14 15 testScript = '' 16 machine.wait_for_unit("tandoor-recipes.service") 17 18 with subtest("Web interface gets ready"): 19 # Wait until server accepts connections 20 machine.wait_until_succeeds("curl -fs localhost:8080") 21 ''; 22}