aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/os/t_ctxprf.py
blob: 1f3cc720d902d0d7355c37a4d283853847770809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from k5test import *

realm = K5Realm(create_kdb=False)

mark('initially empty profile')
realm.run(['./t_ctxprf', 'empty'])

mark('modified single-file profile')
realm.run(['./t_ctxprf'])
with open(os.path.join(realm.testdir, 'krb5.conf')) as f:
    contents = f.read()
    if 'ctx.prf.test' in contents:
        fail('profile changes unexpectedly flushed')

success('krb5_init_context_profile() tests')