at 23.11-beta 490 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "anuko-time-tracker"; 3 meta = { 4 maintainers = with pkgs.lib.maintainers; [ michaelshmitty ]; 5 }; 6 nodes = { 7 machine = { 8 services.anuko-time-tracker.enable = true; 9 }; 10 }; 11 testScript = '' 12 start_all() 13 machine.wait_for_unit("phpfpm-anuko-time-tracker") 14 machine.wait_for_open_port(80); 15 machine.wait_until_succeeds("curl -s --fail -L http://localhost/time.php | grep 'Anuko Time Tracker'") 16 ''; 17})