mirror of https://github.com/ceph/go-ceph
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:
parent
56bd2f1961
commit
be5dff01c9
|
@ -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))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue