at 25.11-pre 588 B view raw
1{ lib, ... }: 2 3let 4 testPort = 8179; 5in 6{ 7 name = "bitbox-bridge"; 8 meta = { 9 platforms = lib.platforms.linux; 10 maintainers = with lib.maintainers; [ 11 izelnakri 12 tensor5 13 ]; 14 }; 15 16 nodes.machine = { 17 services.bitbox-bridge = { 18 enable = true; 19 port = testPort; 20 runOnMount = false; 21 }; 22 }; 23 24 testScript = '' 25 start_all() 26 machine.wait_for_unit("bitbox-bridge.service") 27 machine.wait_for_open_port(${toString testPort}) 28 machine.wait_until_succeeds("curl -fL http://localhost:${toString testPort}/api/info | grep version") 29 ''; 30}