at 23.11-beta 725 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "blockbook-frontend"; 3 meta = with pkgs.lib; { 4 maintainers = with maintainers; [ _1000101 ]; 5 }; 6 7 nodes.machine = { ... }: { 8 services.blockbook-frontend."test" = { 9 enable = true; 10 }; 11 services.bitcoind.mainnet = { 12 enable = true; 13 rpc = { 14 port = 8030; 15 users.rpc.passwordHMAC = "acc2374e5f9ba9e62a5204d3686616cf$53abdba5e67a9005be6a27ca03a93ce09e58854bc2b871523a0d239a72968033"; 16 }; 17 }; 18 }; 19 20 testScript = '' 21 start_all() 22 machine.wait_for_unit("blockbook-frontend-test.service") 23 24 machine.wait_for_open_port(9030) 25 26 machine.succeed("curl -sSfL http://localhost:9030 | grep 'Blockbook'") 27 ''; 28})