Use a non-strict invalid bucket name check in Get and Delete object (#8073)

This commit is contained in:
kannappanr
2019-08-21 09:10:52 +05:30
committed by Harshavardhana
parent 069badc7e9
commit 99a4298938
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,6 @@ func testGetObjectInfo(obj ObjectLayer, instanceType string, t TestErrHandler) {
}{
// Test cases with invalid bucket names ( Test number 1-4 ).
{".test", "", ObjectInfo{}, BucketNameInvalid{Bucket: ".test"}, false},
{"Test", "", ObjectInfo{}, BucketNameInvalid{Bucket: "Test"}, false},
{"---", "", ObjectInfo{}, BucketNameInvalid{Bucket: "---"}, false},
{"ad", "", ObjectInfo{}, BucketNameInvalid{Bucket: "ad"}, false},
// Test cases with valid but non-existing bucket names (Test number 5-6).