lol

nixosTests/bitbox-bridge: init

only run these tests on linux
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

authored by

Izel Nakri and committed by
Masum Reza
a27582f5 d69fa4d3

+31
+1
nixos/tests/all-tests.nix
··· 214 214 bind = handleTest ./bind.nix {}; 215 215 bird = handleTest ./bird.nix {}; 216 216 birdwatcher = handleTest ./birdwatcher.nix {}; 217 + bitbox-bridge = runTest ./bitbox-bridge.nix; 217 218 bitcoind = handleTest ./bitcoind.nix {}; 218 219 bittorrent = handleTest ./bittorrent.nix {}; 219 220 blockbook-frontend = handleTest ./blockbook-frontend.nix {};
+30
nixos/tests/bitbox-bridge.nix
··· 1 + { lib, ... }: 2 + 3 + let 4 + testPort = 8179; 5 + in 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 + }