Skip to main content

feldera_rest_api/
lib.rs

1#![allow(clippy::all, unused)]
2
3use feldera_observability::ReqwestTracingExt;
4
5include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
6
7#[cfg(test)]
8mod tests {
9    use super::types::CheckpointMetadata;
10
11    /// Reproduces issue #6841: `fda pipelines`/`fda status` failed to parse
12    /// any pipeline's checkpoint list once one checkpoint's fingerprint had
13    /// the high bit set, because the generated `fingerprint` field was `i64`.
14    /// `format: uint64` on that field (checkpoint.rs) makes progenitor/typify
15    /// generate `u64` instead, so this must deserialize without error.
16    #[test]
17    fn checkpoint_metadata_accepts_fingerprint_above_i64_max() {
18        let raw = r#"{
19            "uuid": "00000000-0000-0000-0000-000000000000",
20            "fingerprint": 14128757731148314856
21        }"#;
22        let metadata: CheckpointMetadata = serde_json::from_str(raw).unwrap();
23        assert_eq!(metadata.fingerprint, 14128757731148314856);
24    }
25}