Skip to content

Commit

Permalink
Merge pull request containers#19655 from openshift-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-19648-to-v4.6.1-rhel

[v4.6.1-rhel] CI: systests: remove pasta ICMP tests
  • Loading branch information
openshift-merge-robot authored Aug 17, 2023
2 parents c3ef829 + b3952fd commit 5ecf6db
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions test/system/505-networking-pasta.bats
Original file line number Diff line number Diff line change
Expand Up @@ -662,37 +662,6 @@ function teardown() {
pasta_test_do 6 loopback udp 1 0 "port" $(($(cat /proc/sys/net/core/wmem_default) / 4))
}

### ICMP, ICMPv6 ###############################################################

@test "podman networking with pasta(1) - ICMP echo request" {
skip_if_no_ipv4 "IPv6 not routable on the host"

local minuid=$(cut -f1 /proc/sys/net/ipv4/ping_group_range)
local maxuid=$(cut -f2 /proc/sys/net/ipv4/ping_group_range)

if [ $(id -u) -lt ${minuid} ] || [ $(id -u) -gt ${maxuid} ]; then
skip "ICMP echo sockets not available for this UID"
fi

run_podman run --net=pasta $IMAGE \
sh -c 'ping -c3 -W1 $(sed -nr "s/^nameserver[ ]{1,}([^.]*).(.*)/\1.\2/p" /etc/resolv.conf | head -1)'
}

@test "podman networking with pasta(1) - ICMPv6 echo request" {
skip "Unsupported test, see the 'Local forwarder, IPv6' case for details"
skip_if_no_ipv6 "IPv6 not routable on the host"

local minuid=$(cut -f1 /proc/sys/net/ipv4/ping_group_range)
local maxuid=$(cut -f2 /proc/sys/net/ipv4/ping_group_range)

if [ $(id -u) -lt ${minuid} ] || [ $(id -u) -gt ${maxuid} ]; then
skip "ICMPv6 echo sockets not available for this UID"
fi

run_podman run --net=pasta $IMAGE \
sh -c 'ping -c3 -W1 $(sed -nr "s/^nameserver[ ]{1,}([^:]*):(.*)/\1:\2/p" /etc/resolv.conf | head -1)'
}

### Lifecycle ##################################################################

@test "podman networking with pasta(1) - pasta(1) quits when the namespace is gone" {
Expand Down

0 comments on commit 5ecf6db

Please sign in to comment.