[28670] in CVS-changelog-for-Kerberos-V5
krb5 commit [krb5-1.13]: Add test for kinit output ccache error
daemon@ATHENA.MIT.EDU (Tom Yu)
Tue Dec 16 14:26:03 2014
Date: Tue, 16 Dec 2014 14:25:48 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201412161925.sBGJPmnJ020261@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/26f2bf480f5144684fe2b628e52b3ee9c96ecb9e
commit 26f2bf480f5144684fe2b628e52b3ee9c96ecb9e
Author: Tom Yu <tlyu@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'))
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5