aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/info_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-12 18:06:46 -0400
committerGitHub <noreply@github.com>2021-05-12 18:06:46 -0400
commita31a1f59427900ff3df93e0f5af0348d232f0098 (patch)
tree3a0dcb968c84ccab40227daa09b69792ad3f16f4 /test/e2e/info_test.go
parent7b59119c474806aa678569942bc8949d3ef2a0d3 (diff)
parent8ad40a85d5eab3eea888708e242f32354e799822 (diff)
downloadpodman-a31a1f59427900ff3df93e0f5af0348d232f0098.tar.gz
podman-a31a1f59427900ff3df93e0f5af0348d232f0098.tar.bz2
podman-a31a1f59427900ff3df93e0f5af0348d232f0098.zip
Merge pull request #10300 from jwhonce/issues/10289
Add host.serviceIsRemote to podman info results
Diffstat (limited to 'test/e2e/info_test.go')
-rw-r--r--test/e2e/info_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go
index 0b112b312..60136bcc2 100644
--- a/test/e2e/info_test.go
+++ b/test/e2e/info_test.go
@@ -124,4 +124,15 @@ var _ = Describe("Podman Info", func() {
}
})
+ It("verify ServiceIsRemote", func() {
+ session := podmanTest.Podman([]string{"info", "--format", "{{.Host.ServiceIsRemote}}"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).To(Exit(0))
+
+ if podmanTest.RemoteTest {
+ Expect(session.OutputToString()).To(ContainSubstring("true"))
+ } else {
+ Expect(session.OutputToString()).To(ContainSubstring("false"))
+ }
+ })
})