[krbdev.mit.edu #7711] git commit
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Wed Oct 2 10:45:04 EDT 2013
Conditionally test KEYRING ccache type
If the keyctl command is found and klist recognizes the KEYRING
credential cache type, then run several tests against keyring ccaches:
the collection test program in lib/krb5/ccache, the command-line
collection tests in tests/t_ccache.py, and some new tests to verify
legacy session cache behavior. Much of the Python code in t_ccache.py
is moved into a new function named "collection_test" so we can run it
once against a DIR collection and once against a KEYRING collection.
Also: fix a memory leak in the collection test program; add a test for
iteration when the default cache name is a subsidiary name; use a
process keyring ccache in t_cc.c to avoid leaving behind empty
collections in the session keyring after each test run.
Adapted from a patch by simo at redhat.com.
https://github.com/krb5/krb5/commit/5d03cb6b235f0ee0e30b34630f95f208d6acd3d0
Author: Greg Hudson <ghudson at mit.edu>
Commit: 5d03cb6b235f0ee0e30b34630f95f208d6acd3d0
Branch: master
src/lib/krb5/ccache/t_cc.c | 4 +-
src/lib/krb5/ccache/t_cccol.c | 10 +++
src/lib/krb5/ccache/t_cccol.py | 58 ++++++++++++++++++-
src/tests/t_ccache.py | 128 +++++++++++++++++++++++++++-------------
4 files changed, 156 insertions(+), 44 deletions(-)
More information about the krb5-bugs
mailing list