at 25.11-pre 504 B view raw
1import ./make-test-python.nix ( 2 { pkgs, ... }: 3 { 4 name = "tinyproxy"; 5 6 nodes.machine = 7 { config, pkgs, ... }: 8 { 9 services.tinyproxy = { 10 enable = true; 11 settings = { 12 Listen = "127.0.0.1"; 13 Port = 8080; 14 }; 15 }; 16 }; 17 18 testScript = '' 19 machine.wait_for_unit("tinyproxy.service") 20 machine.wait_for_open_port(8080) 21 22 machine.succeed('curl -s http://localhost:8080 |grep -i tinyproxy') 23 ''; 24 } 25)