1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/tests/tinyproxy.nix

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

26 lines
504 B
Nix
Raw Normal View History

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