Blame src/tests/t_kadm5_hook.py
|
Packit |
fd8b60 |
from k5test import *
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
plugin = os.path.join(buildtop, "plugins", "kadm5_hook", "test",
|
|
Packit |
fd8b60 |
"kadm5_hook_test.so")
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
hook_krb5_conf = {'plugins': {'kadm5_hook': { 'module': 'test:' + plugin}}}
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
realm = K5Realm(krb5_conf=hook_krb5_conf, create_user=False, create_host=False)
|
|
Packit |
fd8b60 |
realm.run([kadminl, 'addprinc', '-randkey', 'test'],
|
|
Packit |
fd8b60 |
expected_msg='create: stage precommit')
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
realm.run([kadminl, 'renprinc', 'test', 'test2'],
|
|
Packit |
fd8b60 |
expected_msg='rename: stage precommit')
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
success('kadm5_hook')
|