neutron-fwaas/neutron_fwaas/tests/unit/services/firewall/drivers
Cedric Brandily 0660c0518e Do not assume jsonutils.dumps ordering
This fixes the unit tests[1] that breaks with a randomized
PYTHONHASHSEED (see the bug report).

The test assumed that the oslo_serializarion.jsonutils.dumps performs
dictionary json dump in particular order. Found with PYTHONHASHSEED=1.

The fix refactors the test case by disabling json dumps and comparing
dictionnaries instead of their json dumps.

[1] neutron_fwaas.tests.unit.services.firewall.drivers.mcafee.\
    test_ngfw_fwaas:
  NGFWFwaasTestCase.test_create_firewall
  NGFWFwaasTestCase.test_update_firewall

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: I67fe1ab69bcfd99c2e778963b97c0d6b4b039802
2015-06-01 19:44:15 +02:00
..
cisco Adds FWaaS driver for Cisco CSR1kv 2015-03-17 16:31:30 -07:00
linux Make iptables firewall work with L3 plugin without DVR support 2015-04-25 20:58:11 +09:00
mcafee Do not assume jsonutils.dumps ordering 2015-06-01 19:44:15 +02:00
varmour FWaaS: Reorganize unit test tree 2015-04-08 14:18:06 +00:00
vyatta Remove contextlib.nested from tests 2015-05-15 19:41:53 +05:30
__init__.py Re-enable UT for neutron-fwaas for services split 2014-12-19 10:19:32 -08:00