2017-02-23 15:38:36 |
Nicolas Simonds |
description |
"example.com" is a real webserver on the public Internet, and is actually relatively well-behaved. But any tests that use it are implicitly making it a third-party dependency, and in cases where firewalls, etc. make it unreachable, unit tests will fail.
Steps to Reproduce:
sudo ip route add unreachable `host example.com | awk '/has address/ {print $NF "/32"}'`
tox
sudo ip route del unreachable `host example.com | awk '/has address/ {print $NF "/32"}'`
tox
Expected Results:
Both tests pass
Actual Results:
The first set of tests fails |
"example.com" is a real webserver on the public Internet, and is actually relatively well-behaved. But any tests that use it are implicitly making it a third-party dependency, and in cases where firewalls, etc. make it unreachable, unit tests will fail.
Steps to Reproduce:
sudo ip route add unreachable `host example.com | awk '/has address/ {print $NF "/32"}'`
tox
sudo ip route del unreachable `host example.com | awk '/has address/ {print $NF "/32"}'`
tox
Expected Results:
Both tests pass
Actual Results:
The first set of tests fails |
|