summaryrefslogtreecommitdiff
path: root/test/e2e/network_create_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-04 02:11:56 -0700
committerGitHub <noreply@github.com>2019-10-04 02:11:56 -0700
commit1fe955600979f54ada204afa6c357fd094d6f549 (patch)
treed22ee28ccf664986109f61c52a041aa803e2e505 /test/e2e/network_create_test.go
parent7af4074c6f96d0fabd2ab5dd6c5773053f80aa08 (diff)
parentc5e26f8e40f3bc51ee7cdfce8eb4207105e4c4ba (diff)
downloadpodman-1fe955600979f54ada204afa6c357fd094d6f549.tar.gz
podman-1fe955600979f54ada204afa6c357fd094d6f549.tar.bz2
podman-1fe955600979f54ada204afa6c357fd094d6f549.zip
Merge pull request #4188 from Mrigank11/validate_network_name
podman network create: validate user input
Diffstat (limited to 'test/e2e/network_create_test.go')
-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())
+ })
+
})