]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify k5test.py environments
authorGreg Hudson <ghudson@mit.edu>
Sun, 16 Dec 2012 21:55:29 +0000 (16:55 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Dec 2012 16:45:20 +0000 (11:45 -0500)
commit966547dfeb011800d4b78b8e5d494813bc80559c
tree4226bd168056336c965a4aa77c845093ef723da3
parent76c27cf7e3161e0f20f8935d82ae0f2feb77b01a
Simplify k5test.py environments

The initial k5test.py design, copied from the dejagnu suite, is to
create config files and environments for four expected roles: client,
server, master, and slave.  This approach exaggerates the complexity
of the common case, where the configurations don't need to vary, and
limits us to having just one slave for kprop/iprop tests.

Instead, create just one configuration by default, and add a
special_env() method which sets up a differently configured
environment for the few test cases which need one.  The run_as_*()
methods are collapsed into just run(), which accepts an optional
argument for the environment returned by special_env().
33 files changed:
src/appl/gss-sample/t_gss_sample.py
src/appl/user_user/t_user2user.py
src/kdc/t_emptytgt.py
src/lib/kdb/t_stringattr.py
src/lib/krb5/ccache/t_cccol.py
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_ccselect.py
src/tests/gssapi/t_client_keytab.py
src/tests/gssapi/t_export_cred.py
src/tests/gssapi/t_gssapi.py
src/tests/gssapi/t_s4u.py
src/tests/t_allowed_keysalts.py
src/tests/t_anonpkinit.py
src/tests/t_ccache.py
src/tests/t_crossrealm.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_keyrollover.py
src/tests/t_keytab.py
src/tests/t_lockout.py
src/tests/t_pwhist.py
src/tests/t_referral.py
src/tests/t_sesskeynego.py
src/tests/t_skew.py
src/util/gss-kernel-lib/t_kgss.py
src/util/k5test.py
src/util/testrealm.py