summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-18 05:00:15 -0700
committerGitHub <noreply@github.com>2019-03-18 05:00:15 -0700
commit122d00f67fb8b47ec29f922f9cc32af13123e8f2 (patch)
tree3cb5fdb9ce284c976ab9338ee97dc66a1cb0bb47 /test
parent7f9fdbeafeee8616f4f40a79c1b2dfd177dbe962 (diff)
parent46b74a8ff8dea146539fa731cc5746fc5a59e186 (diff)
downloadpodman-122d00f67fb8b47ec29f922f9cc32af13123e8f2.tar.gz
podman-122d00f67fb8b47ec29f922f9cc32af13123e8f2.tar.bz2
podman-122d00f67fb8b47ec29f922f9cc32af13123e8f2.zip
Merge pull request #2683 from giuseppe/fix-pod-top
rootless: fix pod top
Diffstat (limited to 'test')
-rw-r--r--test/e2e/rootless_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go
index cd771e2ba..57146bca0 100644
--- a/test/e2e/rootless_test.go
+++ b/test/e2e/rootless_test.go
@@ -138,6 +138,21 @@ var _ = Describe("Podman rootless", func() {
cmd.WaitWithDefaultTimeout()
Expect(cmd.ExitCode()).To(Equal(0))
Expect(cmd.LineInOutputContains("hello")).To(BeTrue())
+
+ args = []string{"pod", "top", podId}
+ cmd = rootlessTest.PodmanAsUser(args, 1000, 1000, "", env)
+ cmd.WaitWithDefaultTimeout()
+ Expect(cmd.ExitCode()).To(Not(Equal(0)))
+
+ args = []string{"run", "--pod", podId, "-d", "--rootfs", mountPath, "sleep", "100"}
+ cmd = rootlessTest.PodmanAsUser(args, 1000, 1000, "", env)
+ cmd.WaitWithDefaultTimeout()
+ Expect(cmd.ExitCode()).To(Equal(0))
+
+ args = []string{"pod", "top", podId}
+ cmd = rootlessTest.PodmanAsUser(args, 1000, 1000, "", env)
+ cmd.WaitWithDefaultTimeout()
+ Expect(cmd.ExitCode()).To(Equal(0))
}
runInRootlessContext(f)
})