jantman / pydnstest

ABANDONED - Python tool for testing DNS changes (add, remove, rename, change records) against a staging DNS server, verifying the same changes against production, or confirming that a record returns the same result in both environments.
GNU Affero General Public License v3.0
11 stars 1 forks source link

change tests to not use real DNS lookups #17

Open jantman opened 10 years ago

jantman commented 10 years ago

Since my confidence in the DNS package is/was a bit shaky, the TestDNS class (tests/dnstest_dns_test.py) does some actual lookups against a domain I own, to verify that the DNS module works as expected. This is pretty bad, it means tests need a working network connection, my DNS needs to be up and not changed, and it relies on my domain.

These tests were really put in place because the DNS package seems to (IIRC) have some history of major API changes, so I want my tests to fail if that happens again.

This should be changed to use something local. Either I should trust the DNS package, or I should do something to "serve" the DNS locally?

jantman commented 10 years ago

https://pypi.python.org/pypi/pytest-timeout and https://pypi.python.org/pypi/pytest-rerunfailures

might help in the interim