diff options
author | Matt Rogers <mrogers@redhat.com> | 2016-04-22 12:53:41 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2016-07-05 17:53:10 -0400 |
commit | 75d61d3875e61679610a02f2b1b4bbac9af234cf (patch) | |
tree | a44f8ca8b3796b5981b617aa7d0e3202484e4b92 | |
parent | d70597bc1cdd8bd22299b61ac17b9d684c626b8f (diff) | |
download | krb5-75d61d3875e61679610a02f2b1b4bbac9af234cf.zip krb5-75d61d3875e61679610a02f2b1b4bbac9af234cf.tar.gz krb5-75d61d3875e61679610a02f2b1b4bbac9af234cf.tar.bz2 |
Add test for empty K/M key data handling
(back ported from commit f2286a6493c7aab267cf0d9cca680edaf2968707)
ticket: 8395
version_fixed: 1.13.6
tags: -pullup
status: resolved
-rw-r--r-- | src/tests/t_mkey.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/t_mkey.py b/src/tests/t_mkey.py index 8a5b84e..0785139 100644 --- a/src/tests/t_mkey.py +++ b/src/tests/t_mkey.py @@ -327,4 +327,11 @@ check_mkvno(realm.user_princ, 1) realm.run([kdb5_util, 'use_mkey', '2', 'now-1day']) check_mkey_list((2, defetype, True, True), (1, des3, True, False)) +# Regression test for #8395. Purge the master key and verify that a +# master key fetch does not segfault. +realm.run_kadminl('purgekeys -all K/M') +out = realm.run([kadmin_local, '-q', 'getprinc %s' % realm.user_princ], expected_code=1) +if 'Cannot find master key record in database' not in out: + fail('Unexpected output from failed master key fetch') + success('Master key rollover tests') |