URL: https://github.com/freeipa/freeipa/pull/705 Author: redhatrises Title: #705: ipatests: Add krbpasswordexpiration tests Action: synchronized
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/705/head:pr705 git checkout pr705
From bff8185b83a5c257d9832ea1c4f41b751fd7daf2 Mon Sep 17 00:00:00 2001 From: Gabe <redhatri...@gmail.com> Date: Mon, 10 Apr 2017 09:15:58 -0600 Subject: [PATCH] ipatests: Add krbpasswordexpiration tests --- ipatests/test_xmlrpc/test_user_plugin.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ipatests/test_xmlrpc/test_user_plugin.py b/ipatests/test_xmlrpc/test_user_plugin.py index 098163d..e108bc0 100644 --- a/ipatests/test_xmlrpc/test_user_plugin.py +++ b/ipatests/test_xmlrpc/test_user_plugin.py @@ -439,6 +439,21 @@ def test_set_random_password(self, user): ) user.delete() + def test_set_immediate_password_expiration(self, user): + """ Set immediate password expiration for user """ + user.ensure_exists() + user.update( + dict(krbpasswordexpiration=u'now') + ) + + def test_set_delayed_password_expiration(self, user): + """ Set delayed expiration for user """ + user.ensure_exists() + user.update( + dict(krbpasswordexpiration=principal_expiration_string), + dict(krbpasswordexpiration=[principal_expiration_date]) + ) + def test_rename_to_invalid_login(self, user): """ Try to change user login to an invalid value """ user.ensure_exists()
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code