e506daba20
This fixes the fields and filters units tests that break with a randomized PYTHONHASHSEED (see the bug report). The RESOURCE_ATTRIBUTE_MAP is stored as a dict leading to an unpredictable output order. Values in kvp strings are being stored as sets underpinned by dicts when converted, leading to unpredictable ordering of values when read. Discovered with PYTHONHASHSEED = 2455351445 on these tests: test_api_v2.APIv2TestCase.test_fields test_api_v2.APIv2TestCase.test_fields_multiple test_api_v2.FiltersTestCase.test_attr_info_with_convert_list_to test_api_v2.APIv2TestCase.test_filters_with_fields test_api_v2.APIv2TestCase.test_fields_multiple_with_empty There are 3 parts to this fix: 1. Update the APIv2TestCase _do_field_list function to construct field list in the same order as the controller constructs its list. 2. Ensure the APIv2TestCase _get_collection_kwargs maintains order throughout. 3. Use new assertOrderedEqual function to sort values before assertion in test_attr_info_with_convert_list_to Change-Id: I547cfa80cf83b0340b459279df9283443562326b Partial-bug: #1348818 |
||
---|---|---|
bin | ||
doc | ||
etc | ||
neutron | ||
rally-scenarios | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
.testr.conf | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
openstack-common.conf | ||
README.rst | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
TESTING.rst | ||
tox.ini |
# -- Welcome!
You have come across a cloud computing network fabric controller. It has identified itself as "Neutron." It aims to tame your (cloud) networking!
# -- External Resources:
The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. Code is available on git.openstack.org at <http://git.openstack.org/cgit/openstack/neutron>.
The latest and most in-depth documentation on how to use Neutron is available at: <http://docs.openstack.org>. This includes:
Neutron Administrator Guide http://docs.openstack.org/trunk/openstack-network/admin/content/
Neutron API Reference: http://docs.openstack.org/api/openstack-network/2.0/content/
The start of some developer documentation is available at: http://wiki.openstack.org/NeutronDevelopment
For help using or hacking on Neutron, you can send mail to <mailto:openstack-dev@lists.openstack.org>.