freeipa/ipatests
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
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
pytest_plugins Rename test class for testing simple commands, add test 2018-05-27 16:08:21 +02:00
test_cmdline Load certificate files as binary data 2018-04-30 20:42:00 +02:00
test_install Refuse PORT, HOST in /etc/openldap/ldap.conf 2018-05-29 15:30:37 +02:00
test_integration Installer: configure authselect with-sudo 2018-06-19 08:51:02 +02:00
test_ipaclient csrgen: fix when attribute shortname is lower case 2018-04-25 14:41:12 +02:00
test_ipalib Generate same API.txt under Python 2 and 3 2018-02-15 09:41:30 +01:00
test_ipaplatform Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_ipapython Sort and shuffle SRV record by priority and weight 2018-06-19 08:56:46 +02:00
test_ipaserver Move config directives handling code 2018-05-29 17:03:56 +02:00
test_webui ui_tests: fixes for issues with sending key and focus on element 2018-06-08 14:03:30 +02:00
test_xmlrpc Test coverage for multiservers for radius proxy 2018-06-13 16:23:18 -04:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Make fasttest pass without ~/.ipa/default.conf 2018-03-16 11:50:41 +01:00
create_external_ca.py Make ipatests' create_external_ca a script 2018-05-03 08:36:51 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
ipa-run-tests Fix compatibility with latest pytest 2018-03-23 13:08:39 +01:00
ipa-test-config Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
ipa-test-task Have all the scripts run in python 3 by default 2018-02-15 18:43:12 +01:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Add mocked test for named crypto policy update 2018-02-20 17:01:52 +01:00
test_util.py Silence pytest.yield_fixture deprecation warning 2017-05-30 12:28:51 +02:00
util.py Apply sane LDAP settings to C code 2018-05-29 15:30:37 +02:00