2024-10-28 09:51:44 +00:00
|
|
|
{
|
|
|
|
callPackage,
|
|
|
|
testers,
|
|
|
|
nixos-config,
|
|
|
|
inputs,
|
|
|
|
}:
|
|
|
|
testers.runNixOSTest {
|
|
|
|
name = "container-default-test";
|
|
|
|
nodes.default = {
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
nixos-config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
2024-10-28 13:58:23 +00:00
|
|
|
nixos-config.nixosModules.default
|
2024-10-28 09:51:44 +00:00
|
|
|
];
|
|
|
|
autoContainers = ["default"];
|
|
|
|
};
|
2024-10-29 06:09:45 +00:00
|
|
|
node.specialArgs = inputs // {inTester = true;};
|
2024-10-28 09:51:44 +00:00
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("container@default.service")
|
|
|
|
'';
|
|
|
|
}
|