summaryrefslogtreecommitdiff
path: root/test/system/200-pod.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-06-03 13:18:07 -0600
committerEd Santiago <santiago@redhat.com>2020-06-03 16:13:33 -0600
commit2d5a2a7640d0f320d391a2fcc6a4bd0eb03b9f9f (patch)
tree86b8bf35367dd52fc79989608f4cce47bee14e5a /test/system/200-pod.bats
parent1f8c509fafb4ce41970c4f28ed55daec459c7520 (diff)
downloadpodman-2d5a2a7640d0f320d391a2fcc6a4bd0eb03b9f9f.tar.gz
podman-2d5a2a7640d0f320d391a2fcc6a4bd0eb03b9f9f.tar.bz2
podman-2d5a2a7640d0f320d391a2fcc6a4bd0eb03b9f9f.zip
BATS and APIv2: more tests and tweaks
- (minor): apiv2 tests: check for full ID Observation made while reviewing #6461: tests were checking only for a 12-character container/image ID in return value. It's actually 64, and we should test for that. This should also minimize confusion in a future maintainer. - podman pause/unpause: new test Runs a 'date/sleep' loop, pauses container, sleeps 3s, restarts, then confirms that there's a 3- to 6-second gap in the logs for the container. - podman healthcheck: new test run a container with healthcheck, test both healthy and unhealthy conditions - podman pod: check '{{.Pod}}' field in podman ps Hey, as long as we have a pod with two running containers, might as well confirm that 'podman ps' returns the expected pod ID. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r--test/system/200-pod.bats6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 0d14ca990..9a6b39057 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -73,6 +73,12 @@ function teardown() {
run_podman run -d --pod $podname $IMAGE nc -l -p $port
cid1="$output"
+ # (While we're here, test the 'Pod' field of 'podman ps'. Expect two ctrs)
+ run_podman ps --format '{{.Pod}}'
+ newline="
+"
+ is "$output" "${podid:0:12}${newline}${podid:0:12}" "sdfdsf"
+
# Talker: send the message via common port on localhost
message=$(random_string 15)
run_podman run --rm --pod $podname $IMAGE \