at 23.11-pre 534 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "coder"; 3 meta = with pkgs.lib.maintainers; { 4 maintainers = [ shyim ghuntley ]; 5 }; 6 7 nodes.machine = 8 { pkgs, ... }: 9 { 10 services.coder = { 11 enable = true; 12 accessUrl = "http://localhost:3000"; 13 }; 14 }; 15 16 testScript = '' 17 machine.start() 18 machine.wait_for_unit("postgresql.service") 19 machine.wait_for_unit("coder.service") 20 machine.wait_for_open_port(3000) 21 22 machine.succeed("curl --fail http://localhost:3000") 23 ''; 24})