diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-20 23:35:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 23:35:40 +0200 |
commit | 02b29db3b7f9d2c9fd2342b00f0c1a9a7041779b (patch) | |
tree | a34ad7de1ba1cac6dfddb0be4764438f28607fcb /test/system/200-pod-top.bats | |
parent | 588df9039700e53eb3d8222c15494a5dd727e4f5 (diff) | |
parent | a4bfcd75aab0750ce8b2f30645765ab68f92447a (diff) | |
download | podman-02b29db3b7f9d2c9fd2342b00f0c1a9a7041779b.tar.gz podman-02b29db3b7f9d2c9fd2342b00f0c1a9a7041779b.tar.bz2 podman-02b29db3b7f9d2c9fd2342b00f0c1a9a7041779b.zip |
Merge pull request #6295 from edsantiago/bats_pod
system tests: more podman-pod tests
Diffstat (limited to 'test/system/200-pod-top.bats')
-rw-r--r-- | test/system/200-pod-top.bats | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/system/200-pod-top.bats b/test/system/200-pod-top.bats deleted file mode 100644 index bba1e8d14..000000000 --- a/test/system/200-pod-top.bats +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bats - -load helpers - -@test "podman pod top - containers in different PID namespaces" { - skip_if_remote "podman-pod does not work with podman-remote" - - # With infra=false, we don't get a /pause container (we also - # don't pull k8s.gcr.io/pause ) - no_infra='--infra=false' - run_podman pod create $no_infra - podid="$output" - - # Start two containers... - run_podman run -d --pod $podid $IMAGE top -d 2 - cid1="$output" - run_podman run -d --pod $podid $IMAGE top -d 2 - cid2="$output" - - # ...and wait for them to actually start. - wait_for_output "PID \+PPID \+USER " $cid1 - wait_for_output "PID \+PPID \+USER " $cid2 - - # Both containers have emitted at least one top-like line. - # Now run 'pod top', and expect two 'top -d 2' processes running. - run_podman pod top $podid - is "$output" ".*root.*top -d 2.*root.*top -d 2" "two 'top' containers" - - # By default (podman pod create w/ default --infra) there should be - # a /pause container. - if [ -z "$no_infra" ]; then - is "$output" ".*0 \+1 \+0 \+[0-9. ?s]\+/pause" "there is a /pause container" - fi - - # Clean up - run_podman pod rm -f $podid -} - - -# vim: filetype=sh |