diff options
author | Greg Hudson <ghudson@mit.edu> | 2023-01-27 20:13:12 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2023-02-01 02:41:34 -0500 |
commit | 6ecf843bf1e8653c988d2eddba56613f79abe05c (patch) | |
tree | e47ece61f47334a48031f510895297923d65909b | |
parent | d2b80b247a506672ff38ee6cce3816e2a8074533 (diff) | |
download | krb5-6ecf843bf1e8653c988d2eddba56613f79abe05c.tar.gz |
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.
-rwxr-xr-x | src/tests/gssapi/t_client_keytab.py | 2 | ||||
-rwxr-xr-x | 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@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']) |