rgw/admin: remove unknown user test case from user_bucket_test.go

Fixes: #984

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
This commit is contained in:
Jiffin Tony Thottan 2024-05-07 20:24:46 +05:30 committed by mergify[bot]
parent 56bd2f1961
commit be5dff01c9
1 changed files with 0 additions and 12 deletions

View File

@ -32,12 +32,6 @@ func (suite *RadosGWTestSuite) TestUserBucket() {
assert.Equal(suite.T(), 1, len(buckets))
})
suite.T().Run("list unknown user's buckets", func(_ *testing.T) {
buckets, err := co.ListUsersBuckets(context.Background(), "foo")
assert.NoError(suite.T(), err)
assert.Equal(suite.T(), 0, len(buckets))
})
suite.T().Run("list empty user's buckets with stat", func(_ *testing.T) {
_, err := co.ListUsersBucketsWithStat(context.Background(), "")
assert.Error(suite.T(), err)
@ -54,10 +48,4 @@ func (suite *RadosGWTestSuite) TestUserBucket() {
assert.Equal(suite.T(), "admin", b.Owner)
assert.NotNil(suite.T(), b.BucketQuota.MaxSize)
})
suite.T().Run("list unknown user's buckets with stat", func(_ *testing.T) {
buckets, err := co.ListUsersBucketsWithStat(context.Background(), "foo")
assert.NoError(suite.T(), err)
assert.Equal(suite.T(), 0, len(buckets))
})
}