mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 23:56:53 +00:00
test(health): pin the readiness default at compile time
This commit is contained in:
@@ -492,13 +492,11 @@ mod tests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
/// Flipping this default is a deployment behaviour change, not a code
|
||||||
fn the_kms_readiness_check_stays_opt_in() {
|
/// change: it would start failing readiness on clusters that never asked
|
||||||
assert!(
|
/// for the KMS to gate it. Pinned at compile time so the constant cannot
|
||||||
!rustfs_config::DEFAULT_HEALTH_COMPAT_KMS_READY_CHECK_ENABLE,
|
/// drift without this line being edited too.
|
||||||
"flipping this default is a deployment behaviour change, not a code change"
|
const _: () = assert!(!rustfs_config::DEFAULT_HEALTH_COMPAT_KMS_READY_CHECK_ENABLE);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
|
|||||||
Reference in New Issue
Block a user