kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Capture-after metadata-quorum voter-removal model tests.

use super::RemoveRaftVoterRequest;

#[test]
fn inert_request_preserves_invalid_scalars_until_plan_conversion() {
    let request = RemoveRaftVoterRequest::new(Some(String::new()), -1, [0; 16]);

    assert_eq!(request.cluster_id(), Some(""));
    assert_eq!(request.voter_id(), -1);
    assert_eq!(request.voter_directory_id(), [0; 16]);
    assert!(request.into_plan().is_err());
}