aboutsummaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-08-24 14:27:37 -0400
committerGitHub <noreply@github.com>2022-08-24 14:27:37 -0400
commit46bfd3d0cfa1d5ec0c14fb3ed04f2857e2264512 (patch)
treec1e33c42261ef4044d13cfcb668a4e1a4d217bd3 /test/e2e
parent361eb42619b2bccaf4fa7bb342dee779f72a512d (diff)
parent88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1 (diff)
downloadpodman-46bfd3d0cfa1d5ec0c14fb3ed04f2857e2264512.tar.gz
podman-46bfd3d0cfa1d5ec0c14fb3ed04f2857e2264512.tar.bz2
podman-46bfd3d0cfa1d5ec0c14fb3ed04f2857e2264512.zip
Merge pull request #15454 from vrothberg/bump-psgo
vendor containers/psgo@v1.7.3
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/top_test.go11
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"}))
+ })
})