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
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"}'`

    sudo ip route del unreachable `host example.com | awk '/has address/ {print $NF "/32"}'`

Expected Results:

Both tests pass

Actual Results:

The first set of tests fails

description: updated
Ian Cordasco (icordasc)
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.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers