python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / tests / wasabibackend.nix
blob75730fe24d096b3a77a697f8f7853b92b4ee62d3
1 import ./make-test-python.nix ({ pkgs, ... }: {
2   name = "wasabibackend";
3   meta = with pkgs.lib.maintainers; {
4     maintainers = [ mmahut ];
5   };
7   nodes = {
8     machine = { ... }: {
9       services.wasabibackend = {
10         enable = true;
11         network = "testnet";
12         rpc = {
13           user = "alice";
14           port = 18332;
15         };
16       };
17       services.bitcoind."testnet" = {
18         enable = true;
19         testnet = true;
20         rpc.users = {
21           alice.passwordHMAC = "e7096bc21da60b29ecdbfcdb2c3acc62$f948e61cb587c399358ed99c6ed245a41460b4bf75125d8330c9f6fcc13d7ae7";
22         };
23       };
24     };
25   };
27   testScript = ''
28     start_all()
29     machine.wait_for_unit("wasabibackend.service")
30     machine.wait_until_succeeds(
31         "grep 'Wasabi Backend started' /var/lib/wasabibackend/.walletwasabi/backend/Logs.txt"
32     )
33     machine.sleep(5)
34     machine.succeed(
35         "grep 'Config is successfully initialized' /var/lib/wasabibackend/.walletwasabi/backend/Logs.txt"
36     )
37   '';