Skip to content

Commit

Permalink
nixos/tests/networkmanager: test NM is started at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rnhmjoj committed Dec 28, 2024
1 parent 69b630d commit a00e827
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nixos/tests/networking/networkmanager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ let
};
} extraConfig;
testCases = {
startup = {
name = "startup";
nodes.client = {
networking.useDHCP = false;
networking.networkmanager.enable = true;
};
testScript = ''
with subtest("NetworkManager is started automatically at boot"):
client.wait_for_unit("NetworkManager.service")
'';
};
static = {
name = "static";
nodes = {
Expand Down

0 comments on commit a00e827

Please sign in to comment.