libvirt/tests/networkxml2firewalldata
Laine Stump aabf279ca0 tests: fix broken nftables test data so that individual tests are successful
When the chain names and table name used by the nftables firewall
backend were changed in commit
958aa7f274, I forgot to change the test
data file base.nftables, which has the extra "list" and "add
chain/table" commands that are generated for the first test case of
networkxml2firewalltest.c. When the full set of tests is run, the
first test will be an iptables test case, so those extra commands
won't be added to any of the nftables cases, and so the data in
base.nftables never matches, and the tests are all successful.

However, if the test are limited with, e.g. VIR_TEST_RANGE=2 (test #2
will be the nftables version of the 1st test case), then the commands
to add nftables table/chains *will* be generated in the test output,
and so the test will fail. Because I was only running the entire test
series after the initial commits of nftables tests, I didn't notice
this. Until now.

base.nftables has now been updated to reflect the current names for
chains/table, and running individual test cases is once again
successful.

Fixes: 958aa7f274
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Laine Stump <laine@redhat.com>
2024-06-24 13:49:26 +01:00
..
base.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
base.nftables tests: fix broken nftables test data so that individual tests are successful 2024-06-24 13:49:26 +01:00
nat-default-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-default-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-default.xml
nat-ipv6-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-ipv6-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-ipv6-masquerade-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-ipv6-masquerade-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-ipv6-masquerade.xml
nat-ipv6.xml
nat-many-ips-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-many-ips-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-many-ips.xml
nat-no-dhcp-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-no-dhcp-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-no-dhcp.xml
nat-tftp-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
nat-tftp-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
nat-tftp.xml
route-default-linux.iptables tests: test cases for nftables backend 2024-05-22 23:20:37 -04:00
route-default-linux.nftables network: use iif/oif instead of iifname/oifname in nftables rules 2024-05-27 23:53:58 +02:00
route-default.xml