neutron/neutron/tests/unit/db
Henry Gessau 5c93dfaf25 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.

Change-Id: I3892b51082629e6ebce175f64f501717741baa37
2014-08-03 13:42:41 -04:00
..
firewall Audited attribute for policy update not changing 2014-07-22 21:20:17 -07:00
loadbalancer Move loadbalancer vip port creation outside of transaction 2014-07-24 09:24:25 +04:00
metering Merge "Split up metering test case into plugin + test case" 2014-07-22 03:15:04 +00:00
vpn VPNaaS: separate out validation logic for ref impl 2014-07-16 15:05:01 -04:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_db.py Switch to using of oslo.db 2014-06-30 14:07:59 +03:00
test_dvr_mac_db.py L2 Model additions to support DVR 2014-07-17 07:53:14 -07:00
test_l3_dvr_db.py Fix-DVR Gateway clear doesn't delete csnat port 2014-07-31 10:18:57 -07:00
test_quota_db.py Do not assume order of quotas dictionary elements 2014-08-03 13:42:41 -04:00