1 import ./make-test-python.nix ({ pkgs, ... }:
4 meta = with pkgs.lib.maintainers; {
5 maintainers = [ lnl7 ];
7 nodes.machine = { pkgs, ... }: {
8 environment.systemPackages = [ pkgs.vault ];
9 environment.variables.VAULT_ADDR = "http://127.0.0.1:8200";
10 services.vault.enable = true;
17 machine.wait_for_unit("multi-user.target")
18 machine.wait_for_unit("vault.service")
19 machine.wait_for_open_port(8200)
20 machine.succeed("vault operator init")
21 # vault now returns exit code 2 for sealed vaults
22 machine.fail("vault status")
23 machine.succeed("vault status || test $? -eq 2")