repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vuls: init at 0.27.0 (#348530)
[NixPkgs.git]
/
nixos
/
tests
/
tinyproxy.nix
blob
b8448d4c23b6606221085e90fa666561193cd917
1
import ./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
})