at 25.11-pre 733 B view raw
1{ 2 system ? builtins.currentSystem, 3 pkgs ? import ../.. { 4 inherit system; 5 config = { }; 6 }, 7}: 8 9let 10 inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest; 11in 12makeTest { 13 name = "routinator"; 14 15 nodes.server = 16 { pkgs, ... }: 17 { 18 services.routinator = { 19 enable = true; 20 extraArgs = [ "--no-rir-tals" ]; 21 settings = { 22 http-listen = [ "[::]:8382" ]; 23 }; 24 }; 25 }; 26 27 testScript = '' 28 start_all() 29 30 server.wait_for_unit("routinator.service") 31 32 with subtest("Check if routinator reports the correct version"): 33 server.wait_until_succeeds("[[ \"$(curl http://localhost:8382/version)\" = \"${pkgs.routinator.version}\" ]]") 34 ''; 35}