[28631] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Add test for kinit output ccache error

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Oct 22 12:06:08 2014

Date: Wed, 22 Oct 2014 12:05:48 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201410221605.s9MG5m6m020018@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/e47d8204843ce87fcc1342c7970dded8536fcbde
commit e47d8204843ce87fcc1342c7970dded8536fcbde
Author: Greg Hudson <ghudson@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'))
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post