]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Correct raw table regex in test_security_groups_rpc
authorCedric Brandily <zzelle@gmail.com>
Tue, 18 Nov 2014 09:59:31 +0000 (10:59 +0100)
committerCedric Brandily <zzelle@gmail.com>
Tue, 18 Nov 2014 09:59:31 +0000 (10:59 +0100)
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

index 1c0041537b81970b1fcaf5f1bf410516b0c38d0c..8f3cc9d74ed23030452327b5002ade52de0b17ce 100644 (file)
@@ -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]