@@ -3866,7 +3866,7 @@ mod tests {
3866
3866
3867
3867
// Now make a new blueprint (with no meaningful changes) to ensure we
3868
3868
// can delete the last test blueprint we generated above.
3869
- let blueprint6 = BlueprintBuilder :: new_based_on (
3869
+ let mut blueprint6 = BlueprintBuilder :: new_based_on (
3870
3870
& logctx. log ,
3871
3871
& blueprint5,
3872
3872
& planning_input,
@@ -3876,6 +3876,23 @@ mod tests {
3876
3876
)
3877
3877
. expect ( "failed to create builder" )
3878
3878
. build ( BlueprintSource :: Test ) ;
3879
+
3880
+ // Add ClickHouse configuration to exercise those tables
3881
+ if let Some ( ( _, sled_config) ) = blueprint6. sleds . iter ( ) . next ( ) {
3882
+ if let Some ( zone_config) = sled_config. zones . iter ( ) . next ( ) {
3883
+ let zone_id = zone_config. id ;
3884
+ let mut cfg = ClickhouseClusterConfig :: new (
3885
+ format ! ( "cluster-{TEST_NAME}" ) ,
3886
+ "test-secret" . into ( ) ,
3887
+ ) ;
3888
+ cfg. max_used_keeper_id = KeeperId :: from ( 1u64 ) ;
3889
+ cfg. max_used_server_id = ServerId :: from ( 1u64 ) ;
3890
+ cfg. keepers . insert ( zone_id, KeeperId :: from ( 1u64 ) ) ;
3891
+ cfg. servers . insert ( zone_id, ServerId :: from ( 1u64 ) ) ;
3892
+ blueprint6. clickhouse_cluster_config = Some ( cfg) ;
3893
+ }
3894
+ }
3895
+
3879
3896
datastore
3880
3897
. blueprint_insert ( & opctx, & blueprint6)
3881
3898
. await
@@ -4750,13 +4767,9 @@ mod tests {
4750
4767
/// Complements `ensure_blueprint_fully_deleted`.
4751
4768
fn ensure_fully_populated ( & self ) {
4752
4769
// Exception tables that may be empty in the test blueprints:
4753
- // - ClickHouse tables: only populated when blueprint includes ClickHouse configuration
4754
4770
// - debug log for planner reports: only populated when the blueprint
4755
4771
// was produced by the planner (test blueprints generally aren't)
4756
4772
let exception_tables = [
4757
- "bp_clickhouse_cluster_config" ,
4758
- "bp_clickhouse_keeper_zone_id_to_node_id" ,
4759
- "bp_clickhouse_server_zone_id_to_node_id" ,
4760
4773
"debug_log_blueprint_planning" ,
4761
4774
] ;
4762
4775
0 commit comments