cinder test.py importing private module _lazy, that's bad
Bug #1408099 reported by
John Griffith
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Critical
|
John Griffith | ||
Juno |
Fix Released
|
Critical
|
Jay Bryant | ||
oslo.vmware |
Fix Released
|
Critical
|
Doug Hellmann | ||
Juno |
Fix Committed
|
Critical
|
Adam Gandelman |
Bug Description
We shouldn't be doing this anyway... and now there's a new version of oslo.i18n which exposes us for our trickery and causes unit tests to fail in a most excellent way.
tags: | added: gate-failure |
affects: | ceilometer → cinder |
Changed in cinder: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → John Griffith (john-griffith) |
Changed in cinder: | |
status: | Triaged → In Progress |
Changed in oslo.vmware: | |
status: | New → Fix Committed |
Changed in oslo.vmware: | |
importance: | Undecided → Critical |
tags: | removed: in-stable-juno |
Changed in oslo.vmware: | |
assignee: | nobody → Doug Hellmann (doug-hellmann) |
Changed in cinder: | |
status: | In Progress → Fix Committed |
Changed in oslo.vmware: | |
milestone: | none → 0.9.0 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-2 → 2015.1.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/145359 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=894f20d9cf5 7b36ccf9a675c6b 2b070d56c9b297
Committed: https:/
Submitter: Jenkins
Branch: master
commit 894f20d9cf57b36 ccf9a675c6b2b07 0d56c9b297
Author: John Griffith <email address hidden>
Date: Tue Jan 6 14:40:00 2015 -0700
Remove import of private _lazy module
New version of oslo.i18n released and some things
moved around (internal private modules in the lib).
This should be fine and shouldn't matter to us, BUT
it seems we had some hackery going on in our unit tests
that were being lazy and importing and manipulating the
private library.
This patch removes those cases and fixed up the cinder.i18n
helper method for enable_lazy to accept a bool (which is how
the libraries method works to begin with).
There were several tests in test_faults that were actually
performing and comparing translations of messages. These
tests aren't quite working now because they had a number
of things they imported from private variables and methods
in the i18n module. Honestly I'm not sure of the value of
testing those things here anyway, but for now I've just
added a skip to those and we can sort out long term fixes
and plans later.
Change-Id: I2ae3d9b98c107c ebaf386adbdcdb3 cfafee070be
Partial-Bug: #1408099