From e47d8204843ce87fcc1342c7970dded8536fcbde Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 20 Oct 2014 12:53:16 -0400 Subject: [PATCH] Add test for kinit output ccache error ticket: 8028 --- src/tests/t_ccache.py | 6 ++++++ 1 file changed, 6 insertions(+) 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')) -- 2.47.2