freeipa/ipatests
Fraser Tweedale a65c12d042 cert-request: more specific errors in IP address validation
Update the IP address validation to raise different error messages
for:

- inability to reach IP address from a DNS name
- missing PTR records for IP address
- asymmetric PTR / forward records

If multiple scenarios apply, indicate the first error (from list
above).

The code should now be a bit easier to follow.  We first build dicts
of forward and reverse DNS relationships, keyed by IP address.  Then
we check that entries for each iPAddressName are present in both
dicts.  Finally we check for PTR-A/AAAA symmetry.

Update the tests to check that raised ValidationErrors indicate the
expected error.

Part of: https://pagure.io/freeipa/issue/7451

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2019-03-04 19:35:49 +01:00
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
prci_definitions Web UI: Increase timeouts for UI tests in Nightly PR configuration 2019-02-18 14:53:06 +01:00
pytest_ipa Add ldapmodify/search helper functions 2019-02-05 08:39:13 -05:00
test_cmdline ipa-getkeytab: resolve symlink 2019-01-30 08:06:02 +01:00
test_install Use new LDAPClient constructors 2019-02-05 08:39:13 -05:00
test_integration ipatests: remove all occurrences of osinfo.version_id 2019-03-01 08:38:11 +01:00
test_ipaclient Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipalib Check pager's executable before subprocess.Popen 2018-12-07 14:06:29 +01:00
test_ipaplatform Don't configure KEYRING ccache in containers 2019-01-18 11:33:11 +01:00
test_ipapython ipatests: remove all occurrences of osinfo.version_id 2019-03-01 08:38:11 +01:00
test_ipaserver ipatests: add test for correct modlist when value encoding differs 2019-02-12 11:07:19 +01:00
test_webui Fix test_arbitrary_certificates for Web UI 2019-02-06 18:11:56 +01:00
test_xmlrpc cert-request: more specific errors in IP address validation 2019-03-04 19:35:49 +01:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Make conftest compatible with pytest 4.x 2019-01-08 17:25:56 +01:00
create_external_ca.py Py3: Replace six.text_type with str 2018-09-27 16:11:18 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests Fix compatibility with latest pytest 2018-03-23 13:08:39 +01:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02: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 Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_util.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
util.py Fix Module 'pytest' has no 'config' member 2018-11-13 13:37:58 +01:00