diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-24 15:38:14 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-24 17:13:58 +0200 |
commit | 88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1 (patch) | |
tree | 0d4d50510a45a02873a3797f2fe0fb761a8872a9 /test/e2e | |
parent | 0f92cf22a69876975ca6ad97a08751bf2008e257 (diff) | |
download | podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.tar.gz podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.tar.bz2 podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.zip |
vendor containers/psgo@v1.7.3
Add three new capabilities that would otherwise be reported as unknown.
Also add an e2e test making sure that `podman top` knows all
capabilities of the current kernel. I refrained from adding a system
test since this may blow up in gating tests.
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/top_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/top_test.go b/test/e2e/top_test.go index 66bb887dc..5f51742d1 100644 --- a/test/e2e/top_test.go +++ b/test/e2e/top_test.go @@ -133,4 +133,15 @@ var _ = Describe("Podman top", func() { Expect(result).Should(Exit(125)) }) + It("podman top on privileged container", func() { + session := podmanTest.Podman([]string{"run", "--privileged", "-d", ALPINE, "top"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + cid := session.OutputToString() + + result := podmanTest.Podman([]string{"top", cid, "capeff"}) + result.WaitWithDefaultTimeout() + Expect(result).Should(Exit(0)) + Expect(result.OutputToStringArray()).To(Equal([]string{"EFFECTIVE CAPS", "full"})) + }) }) |