nixos-config/tests/containers-default.nix

24 lines
416 B
Nix

{
callPackage,
testers,
nixos-config,
inputs,
}:
testers.runNixOSTest {
name = "container-default-test";
nodes.default = {
config,
pkgs,
nixos-config,
...
}: {
imports = [
nixos-config.nixosModules.containers-autoconfig
];
autoContainers = ["default"];
};
node.specialArgs = inputs;
testScript = ''
machine.wait_for_unit("container@default.service")
'';
}