@@ -965,7 +965,6 @@ func TestMultitenantCompactor_ShouldNotCompactBlocksForUsersMarkedForDeletion(t
965
965
"cortex_compactor_runs_started_total" , "cortex_compactor_runs_completed_total" , "cortex_compactor_runs_failed_total" ,
966
966
"cortex_compactor_blocks_cleaned_total" , "cortex_compactor_block_cleanup_failures_total" , "cortex_compactor_blocks_marked_for_deletion_total" ,
967
967
"cortex_compactor_block_cleanup_started_total" , "cortex_compactor_block_cleanup_completed_total" , "cortex_compactor_block_cleanup_failed_total" ,
968
- "cortex_bucket_blocks_count" , "cortex_bucket_blocks_marked_for_deletion_count" , "cortex_bucket_index_last_successful_update_timestamp_seconds" ,
969
968
}
970
969
assert .NoError (t , prom_testutil .GatherAndCompare (registry , strings .NewReader (`
971
970
# TYPE cortex_compactor_runs_started_total counter
@@ -1007,6 +1006,12 @@ func TestMultitenantCompactor_ShouldNotCompactBlocksForUsersMarkedForDeletion(t
1007
1006
# HELP cortex_compactor_block_cleanup_failed_total Total number of blocks cleanup runs failed.
1008
1007
cortex_compactor_block_cleanup_failed_total 0
1009
1008
` ), testedMetrics ... ))
1009
+ assert .ErrorContains (t , prom_testutil .GatherAndCompare (registry , strings .NewReader ("" ),
1010
+ "cortex_bucket_blocks_count" ,
1011
+ "cortex_bucket_blocks_marked_for_deletion_count" ,
1012
+ "cortex_bucket_index_last_successful_update_timestamp_seconds" ),
1013
+ "expected metric name(s) not found" ,
1014
+ )
1010
1015
}
1011
1016
1012
1017
func TestMultitenantCompactor_ShouldCompactAllUsersOnShardingEnabledButOnlyOneInstanceRunning (t * testing.T ) {
0 commit comments