summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorMrigank Krishan <mrigankkrishan@gmail.com>2019-10-04 02:00:29 +0530
committerMrigank Krishan <mrigankkrishan@gmail.com>2019-10-04 02:34:01 +0530
commitc5e26f8e40f3bc51ee7cdfce8eb4207105e4c4ba (patch)
tree22b35a2055f803e811eb12666460f7627889b53a /test/e2e
parent86c8650c2328a4a611e614c7220627feae4d4eae (diff)
downloadpodman-c5e26f8e40f3bc51ee7cdfce8eb4207105e4c4ba.tar.gz
podman-c5e26f8e40f3bc51ee7cdfce8eb4207105e4c4ba.tar.bz2
podman-c5e26f8e40f3bc51ee7cdfce8eb4207105e4c4ba.zip
podman network create: validate user input
Disallow invalid/confusing names such as '../bar' or 'foo ' Closes #4184 Signed-off-by: Mrigank Krishan <mrigankkrishan@gmail.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/network_create_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go
index 410d0b97c..264219178 100644
--- a/test/e2e/network_create_test.go
+++ b/test/e2e/network_create_test.go
@@ -208,4 +208,10 @@ var _ = Describe("Podman network create", func() {
Expect(ncFail.ExitCode()).ToNot(BeZero())
})
+ It("podman network create with invalid network name", func() {
+ nc := podmanTest.Podman([]string{"network", "create", "foo "})
+ nc.WaitWithDefaultTimeout()
+ Expect(nc.ExitCode()).ToNot(BeZero())
+ })
+
})