2020-06-23 11:09:03 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "blockbook-frontend";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib; {
|
2020-07-29 10:57:20 +00:00
|
|
|
maintainers = with maintainers; [ _1000101 ];
|
2020-06-23 11:09:03 +00:00
|
|
|
};
|
|
|
|
|
2022-03-20 23:15:30 +00:00
|
|
|
nodes.machine = { ... }: {
|
2020-06-23 11:09:03 +00:00
|
|
|
services.blockbook-frontend."test" = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2020-07-29 10:57:21 +00:00
|
|
|
services.bitcoind.mainnet = {
|
2020-06-23 11:09:03 +00:00
|
|
|
enable = true;
|
|
|
|
rpc = {
|
|
|
|
port = 8030;
|
|
|
|
users.rpc.passwordHMAC = "acc2374e5f9ba9e62a5204d3686616cf$53abdba5e67a9005be6a27ca03a93ce09e58854bc2b871523a0d239a72968033";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("blockbook-frontend-test.service")
|
|
|
|
|
|
|
|
machine.wait_for_open_port(9030)
|
|
|
|
|
|
|
|
machine.succeed("curl -sSfL http://localhost:9030 | grep 'Blockbook'")
|
|
|
|
'';
|
|
|
|
})
|