glance unit tests fail if OS_* environment variables are set

Bug #965598 reported by Kevin L. Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Confirmed
Medium
Unassigned

Bug Description

Glance's test suite apparently doesn't sanitize the environment before performing the unit tests. This leads to tons of failures of the client itself, because it tries to query the configured Keystone server (or whatever) with incorrect credentials. The test suite should sanitize the environment before starting the test suite.

To reproduce: Start with OS_* set, run the test suite, note the errors and failures (not just limited to the client tests); clear OS_* from the environment, rerun the test suite, and notice everything passes.

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Yep, reproducible for me.

Changed in glance:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Brian Waldon (bcwaldon) wrote :

I think this is actually a duplicate of bug 985671. I can run the tests with an full OS_* env setup using the fix for the other bug. I should have done a better job triaging and marked that as the duplicate, but I've already got a review in gerrit.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.