commit 5c93dfaf25c81576ddc664d2d30ef8297eb367e1
Author: Henry Gessau <email address hidden>
Date: Sun Aug 3 13:40:01 2014 -0400
Do not assume order of quotas dictionary elements
This fixes the quotas db unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).
The test assumed that the quotas dictionary from plugin.get_all_quotas() had
elements in a particular order. Found with PYTHONHASHSEED=1235130571.
The fix refactors the test case to handle an unsorted quotas dictionary. Also
choose some different quota limits to make it clearer what is being verified.
Partial-bug: #1348818
Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.
Reviewed: https:/ /review. openstack. org/111589 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5c93dfaf25c 81576ddc664d2d3 0ef8297eb367e1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5c93dfaf25c8157 6ddc664d2d30ef8 297eb367e1
Author: Henry Gessau <email address hidden>
Date: Sun Aug 3 13:40:01 2014 -0400
Do not assume order of quotas dictionary elements
This fixes the quotas db unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).
The test assumed that the quotas dictionary from plugin. get_all_ quotas( ) had 1235130571.
elements in a particular order. Found with PYTHONHASHSEED=
The fix refactors the test case to handle an unsorted quotas dictionary. Also
choose some different quota limits to make it clearer what is being verified.
Partial-bug: #1348818
Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.
Change-Id: I3892b51082629e 6ebce175f64f501 717741baa37