]> git.ipfire.org Git - thirdparty/krb5.git/commit
Perform complete referrals in t_referral.py
authorGreg Hudson <ghudson@mit.edu>
Wed, 9 Oct 2013 16:56:13 +0000 (12:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 9 Oct 2013 17:38:20 +0000 (13:38 -0400)
commit69c190ed9189273a79fdb8e8d95ce970d21118b3
treee5e7537593ac28cc962ea78459b253dd9f788952
parentb44879db690581270a765904ed0a32d9663e345b
Perform complete referrals in t_referral.py

t_referral.py was written to exercise KDC host referral logic, and did
not actually create the target realm, instead just looking at the
error message from gcred to determine whether the KDC returned a
referral or not.  It's only a small amount of additional work to
actually set up the target realm and check that the client code
successfully retrieves the referral, so do that instead.

Since the referral and non-referral outcomes aren't all that similar
any more, split test() into testref() and testfail().  Get rid of the
message argument, since it wouldn't be output in most cases where we
get an unexpected result.
src/tests/t_referral.py