Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
20 lines
438 B
Nix
20 lines
438 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "tinyproxy";
|
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
|
services.tinyproxy = {
|
|
enable = true;
|
|
settings = {
|
|
Listen = "127.0.0.1";
|
|
Port = 8080;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("tinyproxy.service")
|
|
machine.wait_for_open_port(8080)
|
|
|
|
machine.succeed('curl -s http://localhost:8080 |grep -i tinyproxy')
|
|
'';
|
|
})
|