diff options
Diffstat (limited to 'crypto/krb5/src/tests/t_kdb_locking.py')
-rwxr-xr-x | crypto/krb5/src/tests/t_kdb_locking.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/crypto/krb5/src/tests/t_kdb_locking.py b/crypto/krb5/src/tests/t_kdb_locking.py deleted file mode 100755 index 9ae42a827cdb..000000000000 --- a/crypto/krb5/src/tests/t_kdb_locking.py +++ /dev/null @@ -1,32 +0,0 @@ -# This is a regression test for -# https://bugzilla.redhat.com/show_bug.cgi?id=586032 . -# -# We start a KDC, remove the kadm5 lock file, use the KDC, re-create the -# kadm5 lock file, and use kadmin.local. The kinit should fail, and the -# kadmin.local should succeed. - - -import os - -from k5test import * - -p = 'foo' -realm = K5Realm(create_user=False, bdb_only=True) -realm.addprinc(p, p) - -kadm5_lock = os.path.join(realm.testdir, 'db.kadm5.lock') -if not os.path.exists(kadm5_lock): - fail('kadm5 lock file not created: ' + kadm5_lock) -os.unlink(kadm5_lock) - -realm.kinit(p, p, [], expected_code=1, - expected_msg='A service is not available') - -f = open(kadm5_lock, 'w') -f.close() - -output = realm.run([kadminl, 'modprinc', '-allow_tix', p]) -if 'Cannot lock database' in output: - fail('krb5kdc still holds a lock on the principal db') - -success('KDB locking tests') |