Files
clan-core/clanServices/wifi/tests/vm/default.nix
2025-06-30 10:13:46 +00:00

31 lines
612 B
Nix

{
name = "wifi";
clan = {
directory = ./.;
test.useContainers = false;
inventory = {
machines.test = { };
instances = {
wg-test-one = {
module.name = "@clan/wifi";
module.input = "self";
roles.default.machines = {
test.settings.networks.one = { };
};
};
};
};
};
testScript = ''
start_all()
test.wait_for_unit("NetworkManager.service")
psk = test.succeed("cat /run/NetworkManager/system-connections/one.nmconnection")
assert "password-eins" in psk, "Password is incorrect"
'';
}