aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/ccache/t_cccol.py
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-09-24 12:20:17 -0400
committerGreg Hudson <ghudson@mit.edu>2013-09-24 15:00:18 -0400
commit620275cd43e237ab273b726b2aee0ae729587772 (patch)
treeebad0dbaf7e0aab45f28f3610ef28efe78f70fd4 /src/lib/krb5/ccache/t_cccol.py
parentee61e4adf18c6f032b7ab2fa790fb261cfc4105c (diff)
downloadkrb5-620275cd43e237ab273b726b2aee0ae729587772.zip
krb5-620275cd43e237ab273b726b2aee0ae729587772.tar.gz
krb5-620275cd43e237ab273b726b2aee0ae729587772.tar.bz2
Add ccache collection tests using API
Create a new test program in lib/krb5/ccache named t_cccol.c which verifies collection semantics using the API. Run it with an empty DIR collection in t_cccol.py.
Diffstat (limited to 'src/lib/krb5/ccache/t_cccol.py')
-rw-r--r--src/lib/krb5/ccache/t_cccol.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/t_cccol.py b/src/lib/krb5/ccache/t_cccol.py
index f0792e9..8b70470 100644
--- a/src/lib/krb5/ccache/t_cccol.py
+++ b/src/lib/krb5/ccache/t_cccol.py
@@ -1,6 +1,12 @@
#!/usr/bin/python
from k5test import *
+# Run the collection test program against each collection-enabled type.
+realm = K5Realm(create_kdb=False)
+realm.run(['./t_cccol', 'DIR:' + os.path.join(realm.testdir, 'cc')])
+realm.stop()
+
+# Test cursor semantics using real ccaches.
realm = K5Realm(create_host=False)
realm.addprinc('alice', password('alice'))