nixpkgs/nixos/tests/paretosecurity.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
357 B
Nix
Raw Normal View History

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