]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use kadmin script mode in Python tests 248/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 31 Jan 2015 05:29:59 +0000 (00:29 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 19 Feb 2015 16:57:18 +0000 (11:57 -0500)
commit60516bb111ac68ce0d809043d46c0c1f815a7b30
tree427f0e6c1645d79401ac5c65100ae6d98f82c43d
parent040fe97758bdf53b6c00815b0306410eb88ea5ec
Use kadmin script mode in Python tests

In k5test, rename kadmin_local to kadminl and remove the run_kadminl()
K5Realm method.  Update all scripts to use realm.run([kadminl, 'cmd',
...]).  run_kadmin() still exists but takes an argument array instead
of a query string.

Where we touch test code, rename "output" to "out" (since "output" is
a function name exported by k5test.py), elide ":normal" from salt
strings, and use expressions like realm.krbtgt_princ instead of
manually composed principal names where appropriate.  In
t_kadmin_acl.py, get rid of the delprinc() helper since the equivalent
is now concise enough to be written out each time.  In t_policy.py,
remove some inoperative getprinc invocations and reorder some tests
which didn't correspond to their comment headers.
33 files changed:
src/lib/krb5/krb/t_expire_warn.py
src/lib/krb5/krb/t_in_ccache_patypes.py
src/lib/krb5/krb/t_vfy_increds.py
src/tests/gssapi/t_enctypes.py
src/tests/gssapi/t_gssapi.py
src/tests/gssapi/t_s4u.py
src/tests/t_audit.py
src/tests/t_changepw.py
src/tests/t_dump.py
src/tests/t_general.py
src/tests/t_iprop.py
src/tests/t_kadm5_hook.py
src/tests/t_kadmin_acl.py
src/tests/t_kdb.py
src/tests/t_kdb_locking.py
src/tests/t_keydata.py
src/tests/t_keyrollover.py
src/tests/t_keytab.py
src/tests/t_kprop.py
src/tests/t_mkey.py
src/tests/t_otp.py
src/tests/t_pkinit.py
src/tests/t_policy.py
src/tests/t_pwqual.py
src/tests/t_rdreq.py
src/tests/t_referral.py
src/tests/t_renew.py
src/tests/t_renprinc.py
src/tests/t_salt.py
src/tests/t_sesskeynego.py
src/tests/t_skew.py
src/tests/t_stringattr.py
src/util/k5test.py