at 23.11-pre 501 B view raw
1import ./make-test-python.nix ({pkgs, lib, ...}: 2{ 3 name = "openvscode-server"; 4 5 nodes = { 6 machine = {pkgs, ...}: { 7 services.openvscode-server = { 8 enable = true; 9 withoutConnectionToken = true; 10 }; 11 }; 12 }; 13 14 testScript = '' 15 start_all() 16 machine.wait_for_unit("openvscode-server.service") 17 machine.wait_for_open_port(3000) 18 machine.succeed("curl -k --fail http://localhost:3000", timeout=10) 19 ''; 20 21 meta.maintainers = [ lib.maintainers.drupol ]; 22})