From: Cedric Brandily Date: Tue, 18 Nov 2014 09:59:31 +0000 (+0100) Subject: Correct raw table regex in test_security_groups_rpc X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8bb3ba18d3c3e4714be11d704ce7ac24fef5f136;p=openstack-build%2Fneutron-build.git Correct raw table regex in test_security_groups_rpc Currently in test_security_groups_rpc, raw table regex uses nat table chains regex but raw table chains[1] is a strict subset of nat table chains[2] so a more strict regex should be used as raw table chains regex. [1] OUTPUT, PREROUTING [2] OUTPUT, POSTROUTING, PREROUTING, float-snat, snat Change-Id: I6f32cda917c2f882f5fd17b6fa105def5572cdef --- diff --git a/neutron/tests/unit/test_security_groups_rpc.py b/neutron/tests/unit/test_security_groups_rpc.py index 1c0041537..8f3cc9d74 100644 --- a/neutron/tests/unit/test_security_groups_rpc.py +++ b/neutron/tests/unit/test_security_groups_rpc.py @@ -1570,6 +1570,9 @@ COMMIT # Completed by iptables_manager """ % IPTABLES_ARG +CHAINS_RAW = 'OUTPUT|PREROUTING' +IPTABLES_ARG['chains'] = CHAINS_RAW + IPTABLES_RAW = """# Generated by iptables_manager *raw :%(bn)s-(%(chains)s) - [0:0]