test(admin): stabilize telemetry outcome assertions
This commit is contained in:
@@ -403,3 +403,14 @@ fn materialization_failure(stage: &'static str, error_code: &'static str, count:
|
||||
"external OpenAPI materialization failed"
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::external_fetch_error_code;
|
||||
|
||||
#[test]
|
||||
fn unexpected_status_has_a_stable_safe_error_code() {
|
||||
let error = crank_runtime::ExternalReferenceFetchError::UnexpectedStatus { status: 500 };
|
||||
assert_eq!(external_fetch_error_code(&error), "unexpected_status");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user