mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-07 12:35:54 +00:00
feat(build): make native GCS backends optional (#7223)
* feat(build): make native GCS backends optional * test(odm): cover native Azure runtime credentials
This commit is contained in:
@@ -992,7 +992,7 @@ pub(crate) fn odm_source_error_response(policy: &PolicyConfig, class: &'static s
|
||||
/// Metrics/message label for a bucket whose source client could not be built.
|
||||
pub(crate) fn odm_state_error_class(error: &OdmStateError) -> &'static str {
|
||||
match error {
|
||||
OdmStateError::AnonymousUnsupported => "unsupported",
|
||||
OdmStateError::AnonymousUnsupported | OdmStateError::BackendNotCompiled(_) => "unsupported",
|
||||
OdmStateError::ClientBuild(_) => "client_build",
|
||||
}
|
||||
}
|
||||
@@ -2035,6 +2035,7 @@ mod on_demand_migration_tests {
|
||||
#[test]
|
||||
fn odm_state_error_class_is_stable() {
|
||||
assert_eq!(odm_state_error_class(&OdmStateError::AnonymousUnsupported), "unsupported");
|
||||
assert_eq!(odm_state_error_class(&OdmStateError::BackendNotCompiled("gcs_native")), "unsupported");
|
||||
assert_eq!(odm_state_error_class(&OdmStateError::ClientBuild("tls".to_string())), "client_build");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user