From 8bb3ba18d3c3e4714be11d704ce7ac24fef5f136 Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Tue, 18 Nov 2014 10:59:31 +0100 Subject: [PATCH] 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 --- neutron/tests/unit/test_security_groups_rpc.py | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.45.2