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