aboutsummaryrefslogtreecommitdiff
path: root/test/system/500-networking.bats
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2022-01-26 13:05:50 -0500
committerChris Evich <cevich@redhat.com>2022-02-03 13:07:56 -0500
commit642a691cbba407edbbcdfb287a47224bad779ec4 (patch)
tree90994b4ed3d96757ae87505fce0eb1becfe7fbbe /test/system/500-networking.bats
parentebbf10ae8cdaeddbc8d997679940adfa82fcdbb3 (diff)
downloadpodman-642a691cbba407edbbcdfb287a47224bad779ec4.tar.gz
podman-642a691cbba407edbbcdfb287a47224bad779ec4.tar.bz2
podman-642a691cbba407edbbcdfb287a47224bad779ec4.zip
Cirrus: Add netavark/aardvark system test task
Also add a system-test that verifies netavark driver is in use when magic env. var. is set. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'test/system/500-networking.bats')
-rw-r--r--test/system/500-networking.bats10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats
index 9f70c1c6c..9b39ebf97 100644
--- a/test/system/500-networking.bats
+++ b/test/system/500-networking.bats
@@ -256,13 +256,17 @@ load helpers
# rootless cannot modify iptables
if ! is_rootless; then
- # flush the CNI iptables here
- run iptables -t nat -F CNI-HOSTPORT-DNAT
+ # flush the port forwarding iptable rule here
+ chain="CNI-HOSTPORT-DNAT"
+ if is_netavark; then
+ chain="NETAVARK-HOSTPORT-DNAT"
+ fi
+ run iptables -t nat -F "$chain"
# check that we cannot curl (timeout after 5 sec)
run timeout 5 curl -s $SERVER/index.txt
if [ "$status" -ne 124 ]; then
- die "curl did not timeout, status code: $status"
+ die "curl did not timeout, status code: $status"
fi
fi