Skip to content

Commit

Permalink
rgw/admin: remove unknown user test case from user_bucket_test.go
Browse files Browse the repository at this point in the history
Fixes: #984

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
  • Loading branch information
thotz authored and mergify[bot] committed May 7, 2024
1 parent 56bd2f1 commit be5dff0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions rgw/admin/user_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))
})
}

0 comments on commit be5dff0

Please sign in to comment.