utils: BucketNames with double periods and ip address should be rejected. (#2213)

Fixes #2212
This commit is contained in:
Harshavardhana
2016-07-15 17:30:37 -07:00
committed by GitHub
parent cbb6b48b94
commit 2d38046a5a
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -42,6 +42,8 @@ func TestIsValidBucketName(t *testing.T) {
// cases for which test should fail.
// passing invalid bucket names.
{"------", false},
{"my..bucket", false},
{"192.168.1.1", false},
{"$this-is-not-valid-too", false},
{"contains-$-dollar", false},
{"contains-^-carrot", false},