mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
- reverse host field order (ip goes first)
- fix host string split to permit IPv6 Signed-off-by: Nathan Williams <nath.e.will@gmail.com> Closes: #635 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
96d11622c6
commit
94f20cdd00
@ -62,10 +62,11 @@ var _ = Describe("Podman run dns", func() {
|
||||
})
|
||||
|
||||
It("podman run add host", func() {
|
||||
session := podmanTest.Podman([]string{"run", "--add-host=foobar:1.1.1.1", ALPINE, "cat", "/etc/hosts"})
|
||||
session := podmanTest.Podman([]string{"run", "--add-host=foobar:1.1.1.1", "--add-host=foobaz:dead:beef:cafe", ALPINE, "cat", "/etc/hosts"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
session.LineInOuputStartsWith("foobar 1.1.1.1")
|
||||
session.LineInOuputStartsWith("1.1.1.1 foobar")
|
||||
session.LineInOuputStartsWith("dead:beef:cafe foobaz")
|
||||
})
|
||||
|
||||
It("podman run add hostname", func() {
|
||||
|
Reference in New Issue
Block a user