1# This test does a basic functionality check for alice-lg
2{
3 pkgs,
4 ...
5}:
6
7{
8 name = "alice-lg";
9 nodes = {
10 host1 = {
11 environment.systemPackages = with pkgs; [ jq ];
12 services.alice-lg = {
13 enable = true;
14 settings = {
15 server = {
16 listen_http = "[::]:7340";
17 enable_prefix_lookup = true;
18 asn = 1;
19 routes_store_refresh_parallelism = 5;
20 neighbors_store_refresh_parallelism = 10000;
21 routes_store_refresh_interval = 5;
22 neighbors_store_refresh_interval = 5;
23 };
24 housekeeping = {
25 interval = 5;
26 force_release_memory = true;
27 };
28 };
29 };
30 };
31 };
32
33 testScript = ''
34 start_all()
35
36 host1.wait_for_unit("alice-lg.service")
37 host1.wait_for_open_port(7340)
38 host1.succeed("curl http://[::]:7340 | grep 'Alice BGP Looking Glass'")
39 '';
40}