summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-05-28 17:17:07 +0200
committerMartin Kosek <mkosek@redhat.com>2012-05-28 17:24:08 +0200
commite0930d42a54e586a0170c853fbc9e66f9193d5b0 (patch)
tree40b5915129b015118a620de4d073924a6d348199 /tests
parentbdc80fe372fa937a0cf4a411f550ae35caad3e42 (diff)
downloadfreeipa-e0930d42a54e586a0170c853fbc9e66f9193d5b0.tar.gz
freeipa-e0930d42a54e586a0170c853fbc9e66f9193d5b0.tar.xz
freeipa-e0930d42a54e586a0170c853fbc9e66f9193d5b0.zip
Reset krbtpolicy when a unit test is finished
Kerberos ticket maximum life was being set to 1 hour which then affected lifetime of Kerberos tickets returned by IPA server under the test. Make sure that the policy is reset before and after the unit test to keep the IPA server settings clean and not to disrupt development environment.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xmlrpc/test_krbtpolicy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_krbtpolicy.py b/tests/test_xmlrpc/test_krbtpolicy.py
index 3ef603b3a..26ba87c47 100644
--- a/tests/test_xmlrpc/test_krbtpolicy.py
+++ b/tests/test_xmlrpc/test_krbtpolicy.py
@@ -30,6 +30,7 @@ user1 = u'tuser1'
class test_krbtpolicy(Declarative):
cleanup_commands = [
('user_del', [user1], {}),
+ ('krbtpolicy_reset', [], {}),
]
tests = [