glance/glance
Louis Taylor 26a14511ef Fix collection order issues and unit test failures
A randomized PYTHONHASHSEED caused the glance API to return certain data
in a nondeterministic order, breaking some tests. This patch sorts the
returned data before testing against a pre-sorted expected values.

This patch also fixes some unit test failures with the new version of
testtools (0.9.36) and directly calling setUp(). This was added to this
patch to avoid blocking more Glance tests.

Co-authored-by: Fei Long Wang <flwang@catalyst.net.nz>
Co-authored-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>

Icehouse-Conflicts:
	glance/tests/unit/common/test_wsgi.py

Havana-Conflicts:
	glance/tests/integration/legacy_functional/test_v1_api.py
	glance/tests/unit/common/test_wsgi.py
	glance/tests/unit/test_glance_replicator.py
	glance/tests/unit/test_vmware_store.py
	glance/tests/unit/v2/test_images_resource.py
	glance/tests/unit/v2/test_tasks_resource.py

Partial-bug: #1348818
Change-Id: Ie92c6bb5663826713ca99e8f2f7d70f3faef6675
2014-08-25 10:18:42 +00:00
..
api Fix collection order issues and unit test failures 2014-08-25 10:18:42 +00:00
cmd Fixing glance-api hangs in the qpid notifier 2013-09-26 17:32:26 +02:00
common Raise max header size to accommodate large tokens 2014-03-05 17:52:31 +08:00
db Enforce image_size_cap on v2 upload 2014-08-19 16:44:48 +01:00
domain Property Protection Layer 2013-09-04 17:47:48 +00:00
image_cache Cache cleaner wrongly deletes cache for non invalid images 2013-09-25 10:51:22 +08:00
locale Imported Translations from Transifex 2013-10-01 06:15:59 +00:00
notifier Merge "Fixes wrong Qpid protocol configuration" into stable/havana 2013-11-14 23:35:49 +00:00
openstack Scrubber refactoring 2013-09-04 12:36:25 +08:00
quota Add a storage quota 2013-08-28 17:12:34 -10:00
registry Adding encryption support for image multiple locations 2013-09-18 16:57:43 +08:00
store Enforce image_size_cap on v2 upload 2014-08-19 16:44:48 +01:00
tests Fix collection order issues and unit test failures 2014-08-25 10:18:42 +00:00
__init__.py Remove gettext.install() from glance/__init__.py 2013-05-08 09:21:46 +01:00
context.py Use RBAC policy to determine if context is admin. 2013-05-02 16:40:24 +01:00
gateway.py Enable protected properties in gateway 2013-09-04 18:06:38 +00:00
schema.py fixes use the fact that empty sequences are false 2013-03-18 14:39:38 +08:00
version.py Migrate to PBR for setup and version code. 2013-08-09 10:32:31 -03:00