summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorwangqiang <wangqiang@douban.com>2021-12-01 21:03:25 +0800
committerwangqiang <wangqiang@douban.com>2021-12-01 21:03:25 +0800
commit4e63f9192dcdd4ee77732c320b237e9421072a73 (patch)
tree0cea0892c0c4a5964f13ca8d0a84a0f377b20584 /test
parent295a6f7dd086731448a1168a349f62d3035258ca (diff)
downloadpodman-4e63f9192dcdd4ee77732c320b237e9421072a73.tar.gz
podman-4e63f9192dcdd4ee77732c320b237e9421072a73.tar.bz2
podman-4e63f9192dcdd4ee77732c320b237e9421072a73.zip
Hostname in `spec.hostname` should be passed to infra ctr init opt
Fixes https://github.com/containers/podman/issues/12393 Signed-off-by: Qiang Wang <sunsetmask@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/play_kube_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go
index fc939711f..1e15b50a7 100644
--- a/test/e2e/play_kube_test.go
+++ b/test/e2e/play_kube_test.go
@@ -1762,6 +1762,11 @@ var _ = Describe("Podman play kube", func() {
inspect.WaitWithDefaultTimeout()
Expect(inspect).Should(Exit(0))
Expect(inspect.OutputToString()).To(Equal(hostname))
+
+ hostnameInCtr := podmanTest.Podman([]string{"exec", getCtrNameInPod(pod), "hostname"})
+ hostnameInCtr.WaitWithDefaultTimeout()
+ Expect(hostnameInCtr).Should(Exit(0))
+ Expect(hostnameInCtr.OutputToString()).To(Equal(hostname))
})
It("podman play kube test HostAliases", func() {