Unit tests fail with keystoneclient master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Undecided
|
Jim Rollenhagen |
Bug Description
Running Ironic's unit tests with keystoneclient master fails miserably:
$ tox -e py27
[...]
Traceback (most recent call last):
File "ironic/
super(TestACL, self).setUp()
File "ironic/
self.app = self._make_app()
File "ironic/
return super(TestACL, self)._
File "ironic/
return pecan.testing.
File "/opt/stack/
return TestApp(
File "/opt/stack/
app = module.
File "ironic/
return acl.install(app, cfg.CONF, pecan_config.
File "ironic/
public_
File "ironic/
super(
File "/opt/stack/
self._session = self._session_
File "/opt/stack/
tenant_
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
raise TypeError(msg)
TypeError: You need to specify either a username or user_id
[...]
Ran 1186 (+1080) tests in 2.989s (+2.452s)
FAILED (id=22, failures=6 (+6), skips=6)
Looks like this commit broke it: https:/
The break can be verified with:
cd ironic
git clone <email address hidden>
source .tox/py27/
pip install -e python-
deactivate
tox -e py27
We should fix this before it gets released and breaks our gate. :)
Changed in ironic: | |
assignee: | nobody → Jim Rollenhagen (jim-rollenhagen) |
status: | New → In Progress |
Changed in ironic: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | juno-3 → 2014.2 |
Reviewed: https:/ /review. openstack. org/117314 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=1b7bd6a6925 ace525abdcefd15 58013d60f58b10
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1b7bd6a6925ace5 25abdcefd155801 3d60f58b10
Author: Jim Rollenhagen <email address hidden>
Date: Wed Aug 27 17:51:15 2014 +0000
Fix unit tests with keystoneclient master
This patch in python- keystoneclient breaks unit tests in Ironic: /review. openstack. org/#/c/ 113712/
https:/
If admin_user is not passed to keystoneclient, an exception is
raised.
This patch overrides config for admin_user in Ironic's unit tests
to get around this behavior.
Closes-Bug: 1362280 bee5a0e81f805f5 0919ef6a6d5
Change-Id: I3a21e7c1b3a87e