Public bug reported:
"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
** Affects: glance
Importance: Wishlist
Assignee: Nicolas Simonds (nicolas.simonds)
Status: In Progress
** Description changed:
"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 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
+ 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
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1667348
Title:
Unit tests have an implicit dependency on "example.com"
Status in Glance:
In Progress
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1667348/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp