DeprecatedDecorators test does not setup fixtures correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Brant Knudson | ||
oslo.log |
Fix Released
|
Undecided
|
Brant Knudson |
Bug Description
this test appears to rely upon test suite setup in a different test, outside of the test_backend_sql.py suite entirely. Below is a run of this specific test, but you get the same error if you run all of test_backend_sql at once as well.
[mbayer@thinkpad keystone]$ tox -v -e py27 keystone.
using tox.ini: /home/mbayer/
using tox-1.8.1 from /usr/lib/
py27 create: /home/mbayer/
/home/
py27 installdeps: -r/home/
/home/
py27 develop-inst: /home/mbayer/
/home/
py27 runtests: PYTHONHASHSEED=
py27 runtests: commands[0] | bash tools/pretty_tox.sh keystone.
/home/
running testr
running=
OS_STDOUT_
OS_STDERR_
OS_LOG_
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_
running=
OS_STDOUT_
OS_STDERR_
OS_LOG_
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_
{0} keystone.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "keystone/
File "/home/
File "/home/
result = f(self, *args, **kwargs)
File "/home/
opt_info = self._get_
File "/home/
raise NoSuchOptError(
oslo_
Captured pythonlogging:
~~~~~~~
Adding cache-proxy 'keystone.
registered 'sha512_crypt' handler: <class 'passlib.
=======
Failed 1 tests - output below:
=======
keystone.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "keystone/
File "/home/
File "/home/
result = f(self, *args, **kwargs)
File "/home/
opt_info = self._get_
File "/home/
raise NoSuchOptError(
oslo_
Captured pythonlogging:
~~~~~~~
Adding cache-proxy 'keystone.
registered 'sha512_crypt' handler: <class 'passlib.
======
Totals
======
Ran: 1 tests in 3.0000 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 1
Sum of execute time for each test: 0.2450 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:00.245028s
Slowest Tests:
Test id Runtime (s)
-------
keystone.
ERROR: InvocationError: '/usr/bin/bash tools/pretty_tox.sh keystone.
_______
ERROR: py27: commands failed
Changed in keystone: | |
status: | New → Confirmed |
Changed in keystone: | |
importance: | Undecided → Medium |
tags: | added: test-improvement |
Changed in oslo.log: | |
assignee: | nobody → Brant Knudson (blk-u) |
Changed in oslo.log: | |
milestone: | none → 1.9.0 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | liberty-3 → 8.0.0 |
something about "assignment_api" makes this work, but tracing around there is way too much going on for me to find it. the token "fatal_ deprecations" appears nowhwere else in the entire application so I have no idea how oslo_config is changing its mind about this parameter:
diff --git a/keystone/ tests/unit/ test_backend_ sql.py b/keystone/ tests/unit/ test_backend_ sql.py tests/unit/ test_backend_ sql.py tests/unit/ test_backend_ sql.py ators(SqlTests) :
index ec64f03..8ca7e0f 100644
--- a/keystone/
+++ b/keystone/
@@ -983,6 +983,11 @@ class DeprecatedDecor
# First try to create a project without enabling fatal deprecations, _api.create_ role(role_ ref['id' ], role_ref)
project_ ref = {
' name': uuid.uuid4().hex,
# which should work due to the cross manager deprecated calls.
+ role_ref = {
+ 'id': uuid.uuid4().hex,
+ 'name': uuid.uuid4().hex}
+ self.assignment
+
'id': uuid.uuid4().hex,