26 lines
431 B
Nix
26 lines
431 B
Nix
{
|
|
testers,
|
|
inputs,
|
|
}:
|
|
testers.runNixOSTest {
|
|
name = "container-default-test";
|
|
nodes.default =
|
|
{
|
|
config,
|
|
pkgs,
|
|
nixos-config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
nixos-config.nixosModules.default
|
|
];
|
|
autoContainers = [ "default" ];
|
|
};
|
|
node.specialArgs = inputs // {
|
|
inTester = true;
|
|
};
|
|
testScript = ''
|
|
machine.wait_for_unit("container@default.service")
|
|
'';
|
|
}
|