CodeLiturgy.Dashboard/CodeLiturgy.Views/Augeas/lens/tests/test_login_defs.aug

27 lines
528 B
Plaintext
Raw Permalink Normal View History

2022-12-05 02:07:41 +03:00
(*
Module: Test_login_defs
Test cases for the login_defs lense
Author: Erinn Looney-Triggs
About: License
This file is licensed under the LGPLv2+, like the rest of Augeas.
*)
module Test_login_defs =
let record = "MAIL_DIR /var/spool/mail
ENCRYPT_METHOD SHA512
UMASK 077
"
test Login_defs.lns get record =
{ "MAIL_DIR" = "/var/spool/mail" }
{ "ENCRYPT_METHOD" = "SHA512" }
{ "UMASK" = "077" }
let comment ="# *REQUIRED*
"
test Login_defs.lns get comment =
{"#comment" = "*REQUIRED*"}