OpenStack Networking (Neutron)
Go to file
Sam Betts f103ce48ca Predictable field and filter ordering
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
2014-08-11 17:33:24 +01:00
bin Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
doc Add a link to a blog post by RedHat that discusses GRE tunnels in OVS 2014-07-07 23:48:19 -07:00
etc Merge "Make sure that gateway is in CIDR range by default" 2014-08-05 07:54:22 +00:00
neutron Predictable field and filter ordering 2014-08-11 17:33:24 +01:00
rally-scenarios Add config for performance gate job 2014-06-26 14:27:15 +03:00
tools Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
.coveragerc fix some missing change from quantum to neutron 2013-07-08 12:11:04 +08:00
.gitignore Ignore emacs checkpoint files 2014-06-18 13:48:41 -05:00
.gitreview Rename quantum to neutron in .gitreview. 2013-07-06 12:25:09 -04:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Remove duplicate module-rgx line in .pylintrc 2014-05-06 22:57:33 +00:00
.testr.conf Add an explicit tox job for functional tests 2014-02-05 17:11:52 +00:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2014-07-08 23:49:07 +08:00
HACKING.rst Add missing translation support 2014-05-19 12:16:56 +02:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
MANIFEST.in Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
README.rst Make readme reference git.openstack.org not github 2014-07-17 10:57:12 +02:00
TESTING.rst Merge "Add a gate-specific tox env for functional tests" 2014-07-19 02:48:16 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
openstack-common.conf Switch to using of oslo.db 2014-06-30 14:07:59 +03:00
requirements.txt Updated from global requirements 2014-08-04 03:24:23 +00:00
run_tests.sh Restore ability to run functional tests with run_tests.sh 2014-04-23 10:37:35 -05:00
setup.cfg Remove reference to cisco_cfg_agent.ini from setup.cfg 2014-08-01 17:07:07 -04:00
setup.py Updated from global requirements 2014-04-30 02:41:29 +00:00
test-requirements.txt Removed configobj from test requirements 2014-07-31 15:34:08 +02:00
tox.ini Add a tox test environment for random hashseed testing 2014-08-04 08:55:14 -04:00

README.rst

# -- 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>.