krb5 commit: Add test for kinit output ccache error

Greg Hudson ghudson at mit.edu
Wed Oct 22 12:05:48 EDT 2014


https://github.com/krb5/krb5/commit/e47d8204843ce87fcc1342c7970dded8536fcbde
commit e47d8204843ce87fcc1342c7970dded8536fcbde
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Oct 20 12:53:16 2014 -0400

    Add test for kinit output ccache error
    
    ticket: 8028

 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 54a3050..43c15d4 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')
+
 # Test klist -s with a single ccache.
 realm.run([klist, '-s'], expected_code=1)
 realm.kinit(realm.user_princ, password('user'))


More information about the cvs-krb5 mailing list