ironicclient tox unit test fails if http proxy environment variable is set.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Invalid
|
Undecided
|
Unassigned | ||
python-ironicclient |
Fix Released
|
Medium
|
Naohiro Tamura |
Bug Description
If test environment is located behind a http proxy, tox and pip
require to set http proxy environment variable.
However httpretty mock library does NOT work as expected if http proxy is set.
Therefor the fixture of the test code should remove the http proxy environment variable.
naohirot@
(venv)naohirot@
py27 runtests: commands[0] | python setup.py testr --slowest --testr-args=
running testr
running=
running=
running=
=======
FAIL: ironicclient.
tags: worker-0
-------
Traceback (most recent call last):
File "/home/
return test(*args, **kw)
File "/home/
event_list_text = self.shell(
File "/home/
_shell.
File "/home/
**kwargs)
File "/home/
auth_
File "/home/
raise exc.CommandErro
CommandError: Unable to determine the Keystone version to authenticate with using the given auth_url. Identity service may not support API version discovery. Please provide a versioned auth_url instead. http://
=======
FAIL: ironicclient.
tags: worker-1
-------
Traceback (most recent call last):
File "/home/
return test(*args, **kw)
File "/home/
event_list_text = self.shell(
File "/home/
_shell.
File "/home/
**kwargs)
File "/home/
auth_
File "/home/
raise exc.CommandErro
CommandError: Unable to determine the Keystone version to authenticate with using the given auth_url. Identity service may not support API version discovery. Please provide a versioned auth_url instead. http://
Ran 166 tests in 241.601s (+240.391s)
FAILED (id=1, failures=2)
error: testr failed (1)
ERROR: InvocationError: '/home/
_______
ERROR: py27: commands failed
(venv)naohirot@
(venv)naohirot@
(venv)naohirot@
(venv)naohirot@
py27 runtests: commands[0] | python setup.py testr --slowest --testr-args=
running testr
running=
running=
running=
Ran 166 tests in 112.243s (-127.948s)
PASSED (id=2)
Slowest Tests
Test id Runtime (s)
-------
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
ironicclient.
_______
py27: commands succeeded
congratulations :)
(venv)naohirot@
Changed in ironic: | |
assignee: | nobody → Naohiro Tamura (naohirot) |
description: | updated |
description: | updated |
Changed in python-ironicclient: | |
importance: | Undecided → Medium |
Changed in ironic: | |
status: | New → Invalid |
Changed in python-ironicclient: | |
assignee: | nobody → Naohiro Tamura (naohirot) |
no longer affects: | ironic |
Changed in ironic: | |
status: | New → Invalid |
Changed in python-ironicclient: | |
milestone: | none → 0.7.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/142112
Review: https:/