URL: https://github.com/freeipa/freeipa/pull/705
Author: redhatrises
 Title: #705: ipatests: Add krbpasswordexpiration tests
Action: opened

PR body:
"""

"""

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 8d578a7244abc4c44b3e7d610a0235fdedfe044b Mon Sep 17 00:00:00 2001
From: Gabe <redhatri...@gmail.com>
Date: Mon, 10 Apr 2017 08:10:47 -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..cc2710d 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

Reply via email to