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