mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00
exposes tcp port only if no proto specified.
Also it fix the issue of exposing both tc/udp port even if only one proto specified. Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp> Closes: #1325 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
f1b4f43d75
commit
af9f83f11c
@ -54,7 +54,6 @@ var _ = Describe("Podman port", func() {
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
port := strings.Split(result.OutputToStringArray()[0], ":")[1]
|
||||
Expect(result.LineInOuputStartsWith(fmt.Sprintf("80/udp -> 0.0.0.0:%s", port))).To(BeTrue())
|
||||
Expect(result.LineInOuputStartsWith(fmt.Sprintf("80/tcp -> 0.0.0.0:%s", port))).To(BeTrue())
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user