freeipa/ipatests/pytest_ipa
Stanislav Levin 49e643783d dnspython: Add compatibility shim
`dnspython` 2.0.0 has many changes and several deprecations like:

```
> dns.resolver.resolve() has been added, allowing control of whether
search lists are used. dns.resolver.query() is retained for backwards
compatibility, but deprecated. The default for search list behavior can
be set at in the resolver object with the use_search_by_default
parameter. The default is False.

> dns.resolver.resolve_address() has been added, allowing easy
address-to-name lookups.
```

The new class `DNSResolver`:
- provides the compatibility layer
- defaults the previous behavior (the search list configured in the
  system's resolver configuration is used for relative names)
- defaults lifetime to 15sec (determines the number of seconds
  to spend trying to get an answer to the question)

Fixes: https://pagure.io/freeipa/issue/8383
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2020-08-31 09:46:03 +03:00
..
integration dnspython: Add compatibility shim 2020-08-31 09:46:03 +03:00
__init__.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
additional_config.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
beakerlib.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
declarative.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
deprecated_frameworks.py ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
nose_compat.py ipatests: Remove no longer needed 'capture' compatibility 2020-04-21 13:24:50 +02:00
slicing.py Make use of Azure Pipeline slicing 2019-07-16 13:23:21 +03:00