From 617b116f4c329e3320827ed6c9973f3cbca3ff97 Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Sat, 7 Dec 2024 02:37:57 +0100 Subject: [PATCH] tests: minimal: Configure and verify vmail user/group/uid/gid --- tests/internal.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/internal.nix b/tests/internal.nix index a22a67d..8fccbfb 100644 --- a/tests/internal.nix +++ b/tests/internal.nix @@ -36,5 +36,15 @@ pkgs.nixosTest { machine.succeed( "${pkgs.postfix}/bin/postfix check" ) + + with subtest("vmail uid is set correctly"): + machine.succeed( + "[ $(getent passwd vmail | cut -d: -f3) -eq 5000 ]" + ) + + with subtest("vmail gid is set correctly"): + machine.succeed( + "[ $(getent group vmail | cut -d: -f3) -eq 5000 ]" + ) ''; }