MCPcopy
hub / github.com/NVIDIA/aistore / DestroyBucket

Function DestroyBucket

devtools/tutils/client.go:170–178  ·  view source on GitHub ↗
(tb testing.TB, proxyURL string, bck cmn.Bck)

Source from the content-addressed store, hash-verified

168}
169
170func DestroyBucket(tb testing.TB, proxyURL string, bck cmn.Bck) {
171 baseParams := BaseAPIParams(proxyURL)
172 exists, err := api.DoesBucketExist(baseParams, cmn.QueryBcks(bck))
173 tassert.CheckFatal(tb, err)
174 if exists {
175 err = api.DestroyBucket(baseParams, bck)
176 tassert.CheckFatal(tb, err)
177 }
178}
179
180func EvictRemoteBucket(tb testing.TB, proxyURL string, bck cmn.Bck) {
181 if backend := bck.Backend(); backend != nil {

Callers 15

TestRenameBucketFunction · 0.92
TestRProxyGCSFunction · 0.92
icSyncOwnershipTableFunction · 0.92
icSinglePrimaryRevampFunction · 0.92
startCPBckAndWaitFunction · 0.92
TestBucketInvalidNameFunction · 0.92
TestRenameBucketEmptyFunction · 0.92
TestRenameBucketNonEmptyFunction · 0.92
TestRenameBucketTwiceFunction · 0.92
TestCopyBucketFunction · 0.92

Calls 5

DoesBucketExistFunction · 0.92
QueryBcksTypeAlias · 0.92
CheckFatalFunction · 0.92
DestroyBucketFunction · 0.92
BaseAPIParamsFunction · 0.85

Tested by 15

TestRenameBucketFunction · 0.74
TestRProxyGCSFunction · 0.74
icSyncOwnershipTableFunction · 0.74
icSinglePrimaryRevampFunction · 0.74
startCPBckAndWaitFunction · 0.74
TestBucketInvalidNameFunction · 0.74
TestRenameBucketEmptyFunction · 0.74
TestRenameBucketNonEmptyFunction · 0.74
TestRenameBucketTwiceFunction · 0.74
TestCopyBucketFunction · 0.74