nixpkgs/nixos/tests/tinyproxy.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
430 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
name = "tinyproxy";
2023-05-05 21:02:11 +02:00
nodes.machine =
{ config, pkgs, ... }:
{
services.tinyproxy = {
enable = true;
settings = {
Listen = "127.0.0.1";
Port = 8080;
};
2023-05-05 21:02:11 +02:00
};
};
2023-05-05 21:02:11 +02:00
testScript = ''
machine.wait_for_unit("tinyproxy.service")
machine.wait_for_open_port(8080)
2023-05-05 21:02:11 +02:00
machine.succeed('curl -s http://localhost:8080 |grep -i tinyproxy')
'';
}