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:
Alessandro Boch 2017-02-02 15:37:57 -08:00
parent 9e555ce7c3
commit 1e98350ab4

View file

@ -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) {