From: Tom Yu Date: Tue, 16 Dec 2014 17:38:47 +0000 (-0500) Subject: Add test for kinit output ccache error X-Git-Tag: krb5-1.13.1-final~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26f2bf480f5144684fe2b628e52b3ee9c96ecb9e;p=thirdparty%2Fkrb5.git Add test for kinit output ccache error (back ported from commit e47d8204843ce87fcc1342c7970dded8536fcbde) ticket: 8028 version_fixed: 1.13.1 status: resolved --- diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py index dd20e11399..3df8c95df6 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'))