blob: 8a4263feb67bc8b25aea7cf5f60ad7e011d5f801 (
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
26
27
28
29
30
31
32
33
34
35
|
{
system ? builtins.currentSystem,
pkgs ? import ../.. {
inherit system;
config = { };
},
}:
let
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
in
makeTest {
name = "routinator";
nodes.server =
{ pkgs, ... }:
{
services.routinator = {
enable = true;
extraArgs = [ "--no-rir-tals" ];
settings = {
http-listen = [ "[::]:8382" ];
};
};
};
testScript = ''
start_all()
server.wait_for_unit("routinator.service")
with subtest("Check if routinator reports the correct version"):
server.wait_until_succeeds("[[ \"$(curl http://localhost:8382/version)\" = \"${pkgs.routinator.version}\" ]]")
'';
}
|