tests: minimal: Configure and verify vmail user/group/uid/gid
This commit is contained in:
parent
84542be242
commit
617b116f4c
1 changed files with 10 additions and 0 deletions
|
|
@ -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 ]"
|
||||
)
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue