mirror of
https://github.com/minio/minio.git
synced 2026-06-04 10:13:48 +08:00
Refactor bucket delete and bucket policy (#5580)
This commit adds the bucket delete and bucket policy functionalities to the browser. Part of rewriting the browser code to follow best practices and guidelines of React (issues #5409 and #5410) The backend code has been modified by @krishnasrinivas to prevent issue #4498 from occuring. The relevant changes have been made to the code according to the latest commit and the unit tests in the backend. This commit also addresses issue #5449.
This commit is contained in:
committed by
Harshavardhana
parent
416841869a
commit
a6adef0bdf
+1
-7
@@ -205,12 +205,6 @@ func TestURL2BucketObjectName(t *testing.T) {
|
||||
bucket: "bucket",
|
||||
object: "///object////",
|
||||
},
|
||||
// Test case 8 url is not allocated.
|
||||
{
|
||||
u: nil,
|
||||
bucket: "",
|
||||
object: "",
|
||||
},
|
||||
// Test case 9 url path is empty.
|
||||
{
|
||||
u: &url.URL{},
|
||||
@@ -221,7 +215,7 @@ func TestURL2BucketObjectName(t *testing.T) {
|
||||
|
||||
// Validate all test cases.
|
||||
for i, testCase := range testCases {
|
||||
bucketName, objectName := urlPath2BucketObjectName(testCase.u)
|
||||
bucketName, objectName := urlPath2BucketObjectName(testCase.u.Path)
|
||||
if bucketName != testCase.bucket {
|
||||
t.Errorf("Test %d: failed expected bucket name \"%s\", got \"%s\"", i+1, testCase.bucket, bucketName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user