krb5 commit [krb5-1.13]: Add test for kinit output ccache error
Tom Yu
tlyu at mit.edu
Tue Dec 16 14:25:48 EST 2014
https://github.com/krb5/krb5/commit/26f2bf480f5144684fe2b628e52b3ee9c96ecb9e
commit 26f2bf480f5144684fe2b628e52b3ee9c96ecb9e
Author: Tom Yu <tlyu at mit.edu>
Date: Tue Dec 16 12:38:47 2014 -0500
Add test for kinit output ccache error
(back ported from commit e47d8204843ce87fcc1342c7970dded8536fcbde)
ticket: 8028
version_fixed: 1.13.1
status: resolved
src/tests/t_ccache.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py
index dd20e11..3df8c95 100644
--- a/src/tests/t_ccache.py
+++ b/src/tests/t_ccache.py
@@ -36,6 +36,12 @@ output = realm.run([klist], expected_code=1)
if ' not found' not in output:
fail('Expected error message not seen in klist output')
+# Test kinit with an inaccessible ccache.
+out = realm.run([kinit, '-c', 'testdir/xx/yy', realm.user_princ],
+ input=(password('user') + '\n'), expected_code=1)
+if ' while storing credentials' not in out:
+ fail('Expected error message not seen in kinit output')
+
realm.addprinc('alice', password('alice'))
realm.addprinc('bob', password('bob'))
realm.addprinc('carol', password('carol'))
More information about the cvs-krb5
mailing list