summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-21 08:05:35 -0400
committerGitHub <noreply@github.com>2021-04-21 08:05:35 -0400
commit544c3156657e078cef297623842f79cb72dc32c6 (patch)
tree21431acac4d8c92fb26276680de283e2d0730982 /test
parent41677b192aac6ae2849aa792e4ded856773712fd (diff)
parent659dc7843c560c9386fbc3e54ad860c3f2ef2940 (diff)
downloadpodman-544c3156657e078cef297623842f79cb72dc32c6.tar.gz
podman-544c3156657e078cef297623842f79cb72dc32c6.tar.bz2
podman-544c3156657e078cef297623842f79cb72dc32c6.zip
Merge pull request #10080 from rhatdan/remote
podman-remote should show podman.sock info
Diffstat (limited to 'test')
-rw-r--r--test/e2e/info_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go
index 3ce294b30..0b112b312 100644
--- a/test/e2e/info_test.go
+++ b/test/e2e/info_test.go
@@ -109,4 +109,19 @@ var _ = Describe("Podman Info", func() {
Expect(err).To(BeNil())
Expect(string(out)).To(Equal(expect))
})
+
+ It("podman info check RemoteSocket", func() {
+ session := podmanTest.Podman([]string{"info", "--format", "{{.Host.RemoteSocket.Path}}"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(MatchRegexp("/run/.*podman.*sock"))
+
+ if IsRemote() {
+ session = podmanTest.Podman([]string{"info", "--format", "{{.Host.RemoteSocket.Exists}}"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(ContainSubstring("true"))
+ }
+ })
+
})