Unit tests have an implicit dependency on "example.com"
Bug #1667348 reported by
Nicolas Simonds
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Wishlist
|
Nicolas Simonds |
Bug 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
description: | updated |
Changed in glance: | |
importance: | Undecided → Wishlist |
status: | New → In Progress |
assignee: | nobody → Nicolas Simonds (nicolas.simonds) |
Changed in glance: | |
milestone: | none → queens-1 |
Changed in glance: | |
milestone: | queens-1 → queens-3 |
Changed in glance: | |
milestone: | queens-3 → rocky-1 |
To post a comment you must log in.