freeipa/ipatests/test_ipapython
Christian Heimes f90e137a17 Sort and shuffle SRV record by priority and weight
On multiple occasions, SRV query answers were not properly sorted by
priority. Records with same priority weren't randomized and shuffled.
This caused FreeIPA to contact the same remote peer instead of
distributing the load across all available servers.

Two new helper functions now take care of SRV queries. sort_prio_weight()
sorts SRV and URI records. query_srv() combines SRV lookup with
sort_prio_weight().

Fixes: https://pagure.io/freeipa/issue/7475
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2018-06-19 08:56:46 +02:00
..
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_certdb.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_cookie.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_directivesetter.py Move config directives handling code 2018-05-29 17:03:56 +02:00
test_dn.py pylint: make unsupported-assignment-operation check local 2017-09-08 15:42:07 +02:00
test_dnsutil.py Sort and shuffle SRV record by priority and weight 2018-06-19 08:56:46 +02:00
test_ipautil.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_ipavalidate.py Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
test_kerberos.py Enhance __repr__ method of Principal 2016-11-30 09:40:43 +01:00
test_keyring.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_session_storage.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00
test_ssh.py Add workaround for pytest 3.3.0 bug 2017-11-28 19:43:15 +01:00