blob: bb6652e8ecf800527e8720cd458b511f9d3cb8c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{
pkgs,
...
}:
{
name = "icecast";
meta = {
inherit (pkgs.icecast.meta) maintainers;
};
nodes.machine = {
services.icecast = {
enable = true;
hostname = "nixos.test";
admin.password = "test";
};
};
testScript = ''
machine.wait_for_unit("icecast.service")
machine.wait_for_open_port(8000)
machine.succeed("curl -fail http://localhost:8000 | grep -q 'DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT'")
'';
}
|