mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
24 lines
613 B
Nix
24 lines
613 B
Nix
import ./make-test-python.nix ({ pkgs, ... }:
|
|
{
|
|
name = "vault";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ lnl7 ];
|
|
};
|
|
machine = { pkgs, ... }: {
|
|
environment.systemPackages = [ pkgs.vault ];
|
|
environment.variables.VAULT_ADDR = "http://127.0.0.1:8200";
|
|
services.vault.enable = true;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
start_all()
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
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")
|
|
'';
|
|
})
|