]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Add margin to expired tickets in test suite 1287/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 28 Jan 2023 01:13:12 +0000 (20:13 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 1 Feb 2023 07:41:34 +0000 (02:41 -0500)
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
src/tests/t_ccache.py

index 9a61d53b800c8882bbea3ffb851a99db36277d85..8fdf89e420b8f79d31223f87ca9c0fd5f986a948 100755 (executable)
@@ -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@KRBTEST.COM',
         '/Matching credential not found')
 realm.run(['./t_ccselect', phost], expected_code=1,
index 9371a0cd34091b2293ffdbdecc929571393c342b..11c94976ba5bbb155dcb7d05af9c1a7a73523459 100755 (executable)
@@ -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'])