From: Greg Hudson Date: Mon, 20 Oct 2014 16:53:16 +0000 (-0400) Subject: Add test for kinit output ccache error X-Git-Tag: krb5-1.14-alpha1~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F223%2Fhead;p=thirdparty%2Fkrb5.git Add test for kinit output ccache error ticket: 8028 --- diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py index 54a30500eb..43c15d495c 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'))