test_volume_get_all_filters_limit incorrectly asserts certain metadata ordering
Bug #1293792 reported by
Alex Meade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Juan Manuel Ollé | ||
Icehouse |
Fix Released
|
Medium
|
Matt Riedemann |
Bug Description
cinder.
This test indirectly asserts that the metadata on a volume is returned in a certain order. This is incorrect because python dictionaries to not maintain ordering. This causes spuratic unit test failures with this error:
Changed in cinder: | |
assignee: | nobody → Juan Manuel Ollé (juan-m-olle) |
Changed in cinder: | |
status: | New → In Progress |
tags: | added: icehouse-backport-potential |
tags: | removed: icehouse-backport-potential in-stable-icehouse |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-1 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/82177 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=4cc23666237 43393f89a198581 fcb69dc04d31cd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4cc236662374339 3f89a198581fcb6 9dc04d31cd
Author: Juan Manuel Olle <email address hidden>
Date: Fri Mar 21 16:46:03 2014 -0300
Correct metadata ordering issue in tests
Some test including test_volume_ get_all_ filters
fails randomly because metadata is in a dict and
the items order is undefined.
The test comparison was changed to avoid unexpected
test results.
Change-Id: Ibb24d21cd05aa1 eefb45b61c63de0 67b34fb1013
Closes-Bug: #1293792