1
0
Fork 0
selfhostblocks/test/vm/postgresql.nix

20 lines
325 B
Nix
Raw Normal View History

2023-11-21 23:03:38 -08:00
{ pkgs, lib, ... }:
let
in pkgs.nixosTest {
name = "postgresql";
nodes.machine = { config, pkgs, ... }: {
2023-11-21 23:30:16 -08:00
imports = [
../../modules/blocks/postgresql.nix
];
services.postgresql.enable = true;
2023-11-21 23:03:38 -08:00
};
testScript = { nodes, ... }: ''
start_all()
2023-11-21 23:33:21 -08:00
machine.wait_for_unit("postgresql.service")
2023-11-21 23:03:38 -08:00
'';
}