krb5 commit: Add margin to expired tickets in test suite

ghudson at mit.edu ghudson at mit.edu
Wed Feb 1 03:00:50 EST 2023


https://github.com/krb5/krb5/commit/6ecf843bf1e8653c988d2eddba56613f79abe05c
commit 6ecf843bf1e8653c988d2eddba56613f79abe05c
Author: Greg Hudson <ghudson at mit.edu>
Date:   Fri Jan 27 20:13:12 2023 -0500

    Add margin to expired tickets in test suite
    
    Very occasionally a test using expired tickets will fail because the
    ticket isn't seen as expired.  Obtain tickets with a longer expiration
    margin to avoid these failures.

 src/tests/gssapi/t_client_keytab.py | 2 +-
 src/tests/t_ccache.py               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/gssapi/t_client_keytab.py b/src/tests/gssapi/t_client_keytab.py
index 9a61d53b8..8fdf89e42 100755
--- a/src/tests/gssapi/t_client_keytab.py
+++ b/src/tests/gssapi/t_client_keytab.py
@@ -136,7 +136,7 @@ realm.run([klist, '-C'], expected_msg='refresh_time = ')
 # Test 18: no name/ccache specified, manually acquired creds with a
 # client principal not present in the client keytab.  A refresh is
 # attempted but fails, and an expired ticket error results.
-realm.kinit(realm.admin_princ, password('admin'), ['-l', '-1s'])
+realm.kinit(realm.admin_princ, password('admin'), ['-l', '-10s'])
 msgs = ('Getting initial credentials for user/admin at KRBTEST.COM',
         '/Matching credential not found')
 realm.run(['./t_ccselect', phost], expected_code=1,
diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py
index 9371a0cd3..11c94976b 100755
--- a/src/tests/t_ccache.py
+++ b/src/tests/t_ccache.py
@@ -56,7 +56,7 @@ mark('klist -s single ccache')
 realm.run([klist, '-s'], expected_code=1)
 realm.kinit(realm.user_princ, password('user'))
 realm.run([klist, '-s'])
-realm.kinit(realm.user_princ, password('user'), ['-l', '-1s'])
+realm.kinit(realm.user_princ, password('user'), ['-l', '-10s'])
 realm.run([klist, '-s'], expected_code=1)
 realm.kinit(realm.user_princ, password('user'), ['-S', 'kadmin/admin'])
 realm.run([klist, '-s'])


More information about the cvs-krb5 mailing list