aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-01-22 12:22:30 +0100
committerAndreas Schneider <asn@samba.org>2020-03-19 12:43:28 +0100
commitf23566bf85eceb41579cfe0fac07bf94ce16f21d (patch)
tree12acab9019dadc478077cc2ff70af3d519a65f32
parent9398419a3b653c49dcab7da15d2f99a058ed8669 (diff)
downloadpam_wrapper-f23566bf85eceb41579cfe0fac07bf94ce16f21d.tar.gz
pam_wrapper-f23566bf85eceb41579cfe0fac07bf94ce16f21d.tar.xz
pam_wrapper-f23566bf85eceb41579cfe0fac07bf94ce16f21d.zip
tests: Add test for verbose PAM modules
Signed-off-by: Bastien Nocera <hadess@hadess.net> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rwxr-xr-xtests/pypamtest_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pypamtest_test.py b/tests/pypamtest_test.py
index 030f01a..c4534bb 100755
--- a/tests/pypamtest_test.py
+++ b/tests/pypamtest_test.py
@@ -120,6 +120,11 @@ class PyPamTestRunTest(unittest.TestCase):
tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=7) # PAM_AUTH_ERR
res = pypamtest.run_pamtest("neo", "matrix_py", [tc], [ neo_password ])
+ def test_run_chatty_auth(self):
+ neo_password = "secret"
+ tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE)
+ res = pypamtest.run_pamtest("neo", "chatty", [tc], [ neo_password ])
+
def test_repr(self):
tc = pypamtest.TestCase(pypamtest.PAMTEST_CHAUTHTOK, 1, 2)
r = repr(tc)