tests/krb5: Only allow specifying one of check_rep_fn and check_error_fn
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 26 Jul 2021 23:06:15 +0000 (11:06 +1200)
committerJule Anger <janger@samba.org>
Thu, 16 Sep 2021 06:50:11 +0000 (06:50 +0000)
commit3795f8150036f46a5ae6371d1cd777b34bf8630f
tree252b1fd43bc7d09262d8e1fcbdbd7d2b7c31a123
parent5e41e264ebe59278a293e2acf388f5f6e0bf6ef8
tests/krb5: Only allow specifying one of check_rep_fn and check_error_fn

This means that there can no longer be surprises where a test receives a
reply when it was expecting an error, or vice versa.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817
(cherry picked from commit 78818655505b3183251940e86270cd40bae73206)
python/samba/tests/krb5/as_req_tests.py
python/samba/tests/krb5/raw_testcase.py