MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestBlocksCleaner

Function TestBlocksCleaner

pkg/compactor/blocks_cleaner_test.go:45–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestBlocksCleaner(t *testing.T) {
46 for _, options := range []testBlocksCleanerOptions{
47 {concurrency: 1, tenantDeletionDelay: 0, user4FilesExist: false},
48 {concurrency: 1, tenantDeletionDelay: 2 * time.Hour, user4FilesExist: true},
49 {concurrency: 1, markersMigrationEnabled: true},
50 {concurrency: 2},
51 {concurrency: 10},
52 } {
53
54 t.Run(options.String(), func(t *testing.T) {
55 t.Parallel()
56 testBlocksCleanerWithOptions(t, options)
57 })
58 }
59}
60
61func TestBlockCleaner_KeyPermissionDenied(t *testing.T) {
62 const userID = "user-1"

Callers

nothing calls this directly

Calls 3

RunMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected