summaryrefslogtreecommitdiff
path: root/test/system/200-pod.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-11-19 09:57:06 -0700
committerEd Santiago <santiago@redhat.com>2020-12-01 08:14:54 -0700
commita17fb01d400f8f3504099fbd65e284124432f274 (patch)
tree26619409c5f94c0f93cca9e54eaf833bb7dd1b5b /test/system/200-pod.bats
parent24383906f891cea0c802f911deed43f8f8f2ac85 (diff)
downloadpodman-a17fb01d400f8f3504099fbd65e284124432f274.tar.gz
podman-a17fb01d400f8f3504099fbd65e284124432f274.tar.bz2
podman-a17fb01d400f8f3504099fbd65e284124432f274.zip
BATS: add ping test
- run test : tweaks to recently-added network-conflict test: * remove "-d" in run * confirm exact warning text, and also that container runs successfully * test multiple --net options (regression #8057) - images, run, build, exec tests: add multiple-flag testing for various flags, confirming as appropriate whether options are overridden or accumulated. - ps test : add --filter and --sort tests - pod test: run 'ping' inside container (confirms that container gets PING capability) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r--test/system/200-pod.bats4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index b0f645c53..51835e4a3 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -286,6 +286,10 @@ EOF
is "$output" "nc: bind: Address in use" \
"two containers cannot bind to same port"
+ # make sure we can ping; failure here might mean that capabilities are wrong
+ run_podman run --rm --pod mypod $IMAGE ping -c1 127.0.0.1
+ run_podman run --rm --pod mypod $IMAGE ping -c1 $hostname
+
# While the container is still running, run 'podman ps' (no --format)
# and confirm that the output includes the published port
run_podman ps --filter id=$cid