aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/tests/blockbook-frontend.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/blockbook-frontend.nix')
-rw-r--r--nixpkgs/nixos/tests/blockbook-frontend.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/blockbook-frontend.nix b/nixpkgs/nixos/tests/blockbook-frontend.nix
new file mode 100644
index 00000000000..742a02999e7
--- /dev/null
+++ b/nixpkgs/nixos/tests/blockbook-frontend.nix
@@ -0,0 +1,28 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+ name = "blockbook-frontend";
+ meta = with pkgs.stdenv.lib; {
+ maintainers = with maintainers; [ _1000101 ];
+ };
+
+ machine = { ... }: {
+ services.blockbook-frontend."test" = {
+ enable = true;
+ };
+ services.bitcoind.mainnet = {
+ 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'")
+ '';
+})