]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Add test for kinit output ccache error 223/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 20 Oct 2014 16:53:16 +0000 (12:53 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 22 Oct 2014 15:51:14 +0000 (11:51 -0400)
ticket: 8028

src/tests/t_ccache.py

index 54a30500ebc04176101b037413dbf34c0f67b7ee..43c15d495c6bd5c48f87efacc9279374da173343 100644 (file)
@@ -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'))