nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 22 lines 467 B view raw
1import ./make-test-python.nix ({pkgs, lib, ...}: 2{ 3 name = "code-server"; 4 5 nodes = { 6 machine = {pkgs, ...}: { 7 services.code-server = { 8 enable = true; 9 auth = "none"; 10 }; 11 }; 12 }; 13 14 testScript = '' 15 start_all() 16 machine.wait_for_unit("code-server.service") 17 machine.wait_for_open_port(4444) 18 machine.succeed("curl -k --fail http://localhost:4444", timeout=10) 19 ''; 20 21 meta.maintainers = [ lib.maintainers.drupol ]; 22})