nixos/blockbook-frontend: add tests
This commit is contained in:
parent
de3c56ffd8
commit
c6d346b323
@ -33,6 +33,7 @@ in
|
|||||||
bees = handleTest ./bees.nix {};
|
bees = handleTest ./bees.nix {};
|
||||||
bind = handleTest ./bind.nix {};
|
bind = handleTest ./bind.nix {};
|
||||||
bittorrent = handleTest ./bittorrent.nix {};
|
bittorrent = handleTest ./bittorrent.nix {};
|
||||||
|
blockbook-frontend = handleTest ./blockbook-frontend.nix {};
|
||||||
buildkite-agents = handleTest ./buildkite-agents.nix {};
|
buildkite-agents = handleTest ./buildkite-agents.nix {};
|
||||||
boot = handleTestOn ["x86_64-linux"] ./boot.nix {}; # syslinux is unsupported on aarch64
|
boot = handleTestOn ["x86_64-linux"] ./boot.nix {}; # syslinux is unsupported on aarch64
|
||||||
boot-stage1 = handleTest ./boot-stage1.nix {};
|
boot-stage1 = handleTest ./boot-stage1.nix {};
|
||||||
|
28
nixos/tests/blockbook-frontend.nix
Normal file
28
nixos/tests/blockbook-frontend.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
|
name = "blockbook-frontend";
|
||||||
|
meta = with pkgs.stdenv.lib; {
|
||||||
|
maintainers = with maintainers; [ maintainers."1000101" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
machine = { ... }: {
|
||||||
|
services.blockbook-frontend."test" = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
services.bitcoind = {
|
||||||
|
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'")
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user