Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_authselectpam.aug
1 module Test_AuthselectPam =
2
3 let example ="auth        required                                     pam_env.so
4 auth        required                                     pam_faildelay.so delay=2000000
5 auth        required                                     pam_faillock.so preauth silent                         {include if \"with-faillock\"}
6 auth        required                                     pam_u2f.so cue {if not \"without-pam-u2f-nouserok\":nouserok} {include if \"with-pam-u2f-2fa\"}
7 "
8
9 test AuthselectPam.lns get example =
10   { "1"
11     { "type" = "auth" }
12     { "control" = "required" }
13     { "module" = "pam_env.so" } }
14   { "2"
15     { "type" = "auth" }
16     { "control" = "required" }
17     { "module"  = "pam_faildelay.so" }
18     { "argument" = "delay=2000000" } }
19   { "3"
20     { "type" = "auth" }
21     { "control" = "required" }
22     { "module"  = "pam_faillock.so" }
23     { "argument" = "preauth" }
24     { "argument" = "silent" }
25     { "authselect_conditional" = "include if"
26       { "feature" = "with-faillock" } } }
27   { "4"
28     { "type" = "auth" }
29     { "control" = "required" }
30     { "module" = "pam_u2f.so" }
31     { "argument" = "cue" }
32     { "authselect_conditional" = "if"
33       { "not" }
34       { "feature" = "without-pam-u2f-nouserok" }
35       { "on_true" = "nouserok" } }
36     { "authselect_conditional" = "include if"
37       { "feature" = "with-pam-u2f-2fa" } } }