mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
nixos/test/vault: fix assertion logic
"vault status" now returns exit code 2 when the vault is still unsealed.
This commit is contained in:
parent
08ab2d3c2a
commit
cd687af9f4
|
@ -19,6 +19,8 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
|||
machine.wait_for_unit("vault.service")
|
||||
machine.wait_for_open_port(8200)
|
||||
machine.succeed("vault operator init")
|
||||
machine.succeed("vault status | grep Sealed | grep true")
|
||||
# vault now returns exit code 2 for sealed vaults
|
||||
machine.fail("vault status")
|
||||
machine.succeed("vault status || test $? -eq 2")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue