Skip to content

Commit

Permalink
nixos/tests/incus: add AppArmor test
Browse files Browse the repository at this point in the history
Currently limit the test scope to instanceContainer since there is a known issue.
allTests might cause too many false positives.
  • Loading branch information
MakiseKurisu committed Mar 3, 2025
1 parent c223a09 commit e1778e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/tests/incus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ in
inherit lts pkgs system;
storageZfs = true;
};

appArmor = incusTest {
inherit lts pkgs system;
appArmor = true;
instanceContainer = true;
};
}
6 changes: 6 additions & 0 deletions nixos/tests/incus/incus-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ../make-test-python.nix (
lib,

lts ? true,
appArmor ? false,

allTests ? false,

Expand Down Expand Up @@ -139,6 +140,11 @@ import ../make-test-python.nix (
networking.hostId = "01234567";
networking.firewall.trustedInterfaces = [ "incusbr0" ];

security = {
apparmor.enable = appArmor;
dbus.apparmor = lib.optionalString appArmor "enabled";
};

services.lvm = {
boot.thin.enable = storageLvm;
dmeventd.enable = storageLvm;
Expand Down

0 comments on commit e1778e6

Please sign in to comment.