Revert "Fix IT case for network name validation"
This reverts commit 9cebccfb95
.
Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
9e555ce7c3
commit
1e98350ab4
1 changed files with 9 additions and 8 deletions
|
@ -1641,16 +1641,17 @@ func (s *DockerSuite) TestDockerNetworkInternalMode(c *check.C) {
|
|||
c.Assert(err, check.IsNil)
|
||||
}
|
||||
|
||||
// Test for special characters in network names. only [a-zA-Z0-9][a-zA-Z0-9_.-] are
|
||||
// valid characters
|
||||
// Test for #21401
|
||||
func (s *DockerNetworkSuite) TestDockerNetworkCreateDeleteSpecialCharacters(c *check.C) {
|
||||
_, _, err := dockerCmdWithError("network", "create", "test@#$")
|
||||
c.Assert(err, check.NotNil)
|
||||
dockerCmd(c, "network", "create", "test@#$")
|
||||
assertNwIsAvailable(c, "test@#$")
|
||||
dockerCmd(c, "network", "rm", "test@#$")
|
||||
assertNwNotAvailable(c, "test@#$")
|
||||
|
||||
dockerCmd(c, "network", "create", "test-1_0.net")
|
||||
assertNwIsAvailable(c, "test-1_0.net")
|
||||
dockerCmd(c, "network", "rm", "test-1_0.net")
|
||||
assertNwNotAvailable(c, "test-1_0.net")
|
||||
dockerCmd(c, "network", "create", "kiwl$%^")
|
||||
assertNwIsAvailable(c, "kiwl$%^")
|
||||
dockerCmd(c, "network", "rm", "kiwl$%^")
|
||||
assertNwNotAvailable(c, "kiwl$%^")
|
||||
}
|
||||
|
||||
func (s *DockerDaemonSuite) TestDaemonRestartRestoreBridgeNetwork(t *check.C) {
|
||||
|
|
Loading…
Reference in a new issue