svn rev #25820: trunk/src/tests/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Apr 24 13:04:21 EDT 2012
http://src.mit.edu/fisheye/changelog/krb5/?cs=25820
Commit By: ghudson
Log Message:
Adjust t_general.py organization
Move some tests out of the multipass_realms loop since they aren't
enctype-dependent. Fix the success message not to mention kvno
wrapping. Don't start kadmind in the multipass_realms loop since we
don't use it.
Changed Files:
U trunk/src/tests/t_general.py
Modified: trunk/src/tests/t_general.py
===================================================================
--- trunk/src/tests/t_general.py 2012-04-24 01:05:41 UTC (rev 25819)
+++ trunk/src/tests/t_general.py 2012-04-24 17:04:21 UTC (rev 25820)
@@ -1,16 +1,7 @@
#!/usr/bin/python
from k5test import *
-for realm in multipass_realms(create_host=False):
- # Create a policy and see if it survives a dump/load.
- realm.run_kadminl('addpol fred')
- dumpfile = os.path.join(realm.testdir, 'dump')
- realm.run_as_master([kdb5_util, 'dump', dumpfile])
- realm.run_as_master([kdb5_util, 'load', dumpfile])
- output = realm.run_kadminl('getpols')
- if 'fred\n' not in output:
- fail('Policy not preserved across dump/load.')
-
+for realm in multipass_realms(create_host=False, start_kadmind=False):
# Check that kinit fails appropriately with the wrong password.
output = realm.run_as_client([kinit, realm.user_princ], input='wrong\n',
expected_code=1)
@@ -29,14 +20,23 @@
realm.klist('user/fast@%s' % realm.realm)
# Test kinit against kdb keytab
- realm.run_as_master([kinit, "-k", "-t",
- "KDB:", realm.user_princ])
+ realm.run_as_master([kinit, "-k", "-t", "KDB:", realm.user_princ])
+realm = K5Realm(create_host=False, start_kadmind=False)
- # Test kdestroy and klist of a non-existent ccache.
- realm.run_as_client([kdestroy])
- output = realm.run_as_client([klist], expected_code=1)
- if 'No credentials cache found' not in output:
- fail('Expected error message not seen in klist output')
+# Create a policy and see if it survives a dump/load.
+realm.run_kadminl('addpol fred')
+dumpfile = os.path.join(realm.testdir, 'dump')
+realm.run_as_master([kdb5_util, 'dump', dumpfile])
+realm.run_as_master([kdb5_util, 'load', dumpfile])
+output = realm.run_kadminl('getpols')
+if 'fred\n' not in output:
+ fail('Policy not preserved across dump/load.')
-success('Dump/load, FAST kinit, kdestroy, kvno wrapping')
+# Test kdestroy and klist of a non-existent ccache.
+realm.run_as_client([kdestroy])
+output = realm.run_as_client([klist], expected_code=1)
+if 'No credentials cache found' not in output:
+ fail('Expected error message not seen in klist output')
+
+success('Dump/load, FAST kinit, kdestroy')
More information about the cvs-krb5
mailing list