nixpkgs/nixos/tests/paretosecurity.nix
2025-03-19 09:10:27 +00:00

16 lines
357 B
Nix

{ lib, ... }:
{
name = "paretosecurity";
meta.maintainers = [ lib.maintainers.zupo ];
nodes.machine =
{ config, pkgs, ... }:
{
services.paretosecurity.enable = true;
};
testScript = ''
(status, out) = machine.execute("paretosecurity check")
assert status == 1, "paretosecurity did not return 1 on failing checks"
'';
}