CallistoLabsNYC / samsa

Rust-native Kafka/Redpanda protocol and client implementation.
Apache License 2.0
106 stars 5 forks source link

Restore ability to run unit tests and clippy static checks without integration tests #50

Closed drauschenbach closed 7 months ago

drauschenbach commented 7 months ago
$ make check

running 51 tests
test assignor::test::test_roundrobin_assignor ... ok
test consumer::test::it_can_stream_via_ref_to_wrapper ... ok
test encode::codec_32 ... ok
test encode::codec_as_strings ... ok
test encode::codec_i16 ... ok
test encode::codec_i64 ... ok
test encode::codec_i8 ... ok
test encode::codec_string ... ok
test encode::codec_varint_simple ... ok
test encode::codec_varint_twobyte ... ok
test encode::codec_varlong ... ok
test encode::codec_vec_u8 ... ok
test encode::test_string_too_long ... ok
test metadata::test::test_broker_by_id ... ok
test metadata::test::test_broker_url ... ok
test metadata::test::test_get_leaders_for_topic_partitions ... ok
test metadata::test::test_partition_by_id ... ok
test metadata::test::test_partition_leader ... ok
test parser::test::parse_varint_simple ... ok
test parser::test::parse_varint_twobyte ... ok
test parser::test::parse_varlong ... ok
test parser::test::test_parse_array ... ok
test parser::test::test_parse_string ... ok
test protocol::commit_offset::test::add_to_req ... ok
test protocol::commit_offset::test::encode ... ok
test protocol::commit_offset::test::parse ... ok
test protocol::fetch::test::add_to_req ... ok
test protocol::fetch::test::encode ... ok
test protocol::fetch::test::parse ... ok
test protocol::find_coordinator::test::encode ... ok
test protocol::find_coordinator::test::parse ... ok
test protocol::heartbeat::test::encode ... ok
test protocol::heartbeat::test::parse ... ok
test protocol::join_group::test::encode ... ok
test protocol::join_group::test::parse ... ok
test protocol::leave_group::test::encode ... ok
test protocol::leave_group::test::parse ... ok
test protocol::list_offsets::test::add_to_req ... ok
test protocol::list_offsets::test::encode ... ok
test protocol::list_offsets::test::parse ... ok
test protocol::list_offsets::test::read_from_res ... ok
test protocol::metadata::test::encode ... ok
test protocol::metadata::test::parse ... ok
test protocol::offset_fetch::test::add_to_req ... ok
test protocol::offset_fetch::test::encode ... ok
test protocol::offset_fetch::test::parse ... ok
test protocol::offset_fetch::test::read_from_res ... ok
test protocol::produce::test::encode ... ok
test protocol::produce::test::parse ... ok
test protocol::sync_group::test::encode ... ok
test protocol::sync_group::test::parse ... ok

successes:

successes:
    assignor::test::test_roundrobin_assignor
    consumer::test::it_can_stream_via_ref_to_wrapper
    encode::codec_32
    encode::codec_as_strings
    encode::codec_i16
    encode::codec_i64
    encode::codec_i8
    encode::codec_string
    encode::codec_varint_simple
    encode::codec_varint_twobyte
    encode::codec_varlong
    encode::codec_vec_u8
    encode::test_string_too_long
    metadata::test::test_broker_by_id
    metadata::test::test_broker_url
    metadata::test::test_get_leaders_for_topic_partitions
    metadata::test::test_partition_by_id
    metadata::test::test_partition_leader
    parser::test::parse_varint_simple
    parser::test::parse_varint_twobyte
    parser::test::parse_varlong
    parser::test::test_parse_array
    parser::test::test_parse_string
    protocol::commit_offset::test::add_to_req
    protocol::commit_offset::test::encode
    protocol::commit_offset::test::parse
    protocol::fetch::test::add_to_req
    protocol::fetch::test::encode
    protocol::fetch::test::parse
    protocol::find_coordinator::test::encode
    protocol::find_coordinator::test::parse
    protocol::heartbeat::test::encode
    protocol::heartbeat::test::parse
    protocol::join_group::test::encode
    protocol::join_group::test::parse
    protocol::leave_group::test::encode
    protocol::leave_group::test::parse
    protocol::list_offsets::test::add_to_req
    protocol::list_offsets::test::encode
    protocol::list_offsets::test::parse
    protocol::list_offsets::test::read_from_res
    protocol::metadata::test::encode
    protocol::metadata::test::parse
    protocol::offset_fetch::test::add_to_req
    protocol::offset_fetch::test::encode
    protocol::offset_fetch::test::parse
    protocol::offset_fetch::test::read_from_res
    protocol::produce::test::encode
    protocol::produce::test::parse
    protocol::sync_group::test::encode
    protocol::sync_group::test::parse

test result: ok. 51 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/consumer_builder.rs (target/debug/deps/consumer_builder-822db1e7ab483f43)

running 2 tests
test it_can_build_with_minimal_args ... ok
test it_can_build_with_ref_to_builder ... ok

successes:

successes:
    it_can_build_with_minimal_args
    it_can_build_with_ref_to_builder

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/consumer_group_builder.rs (target/debug/deps/consumer_group_builder-e5a41a70cdb4582a)

running 2 tests
test it_can_build_with_minimal_args ... ok
test it_can_build_with_ref_to_builder ... ok

successes:

successes:
    it_can_build_with_minimal_args
    it_can_build_with_ref_to_builder

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/group.rs (target/debug/deps/group-441a660ba576f32f)

running 2 tests
test it_can_join_and_sync_groups ... ok
test it_can_join_and_sync_groups_with_functions ... ok

successes:

successes:
    it_can_join_and_sync_groups
    it_can_join_and_sync_groups_with_functions

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/metadata.rs (target/debug/deps/metadata-28c60313cc931816)

running 1 test
test it_can_get_metadata ... ok

successes:

successes:
    it_can_get_metadata

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/offset.rs (target/debug/deps/offset-62ee55b97ef31458)

running 2 tests
test it_can_commit_and_fetch_offsets ... ok
test it_can_commit_and_fetch_offsets_with_functions ... ok

successes:

successes:
    it_can_commit_and_fetch_offsets
    it_can_commit_and_fetch_offsets_with_functions

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/produce_fetch.rs (target/debug/deps/produce_fetch-0a2c1b42f3464d3f)

running 2 tests
test it_can_produce_and_fetch ... ok
test it_can_produce_and_fetch_with_functions ... ok

successes:

successes:
    it_can_produce_and_fetch
    it_can_produce_and_fetch_with_functions

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/redpanda_adminapi_get_leader_id.rs (target/debug/deps/redpanda_adminapi_get_leader_id-cf10760b5d0cd2fe)

running 1 test
test it_can_get_redpanda_adminapi_leader_id ... ok

successes:

successes:
    it_can_get_redpanda_adminapi_leader_id

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/redpanda_adminapi_transform.rs (target/debug/deps/redpanda_adminapi_transform-f3d7f02df290dbf2)

running 1 test
test it_returns_404_when_deleting_non_existing ... ok

successes:

successes:
    it_returns_404_when_deleting_non_existing

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/testsupport.rs (target/debug/deps/testsupport-90ebe09d8711285c)

running 0 tests

successes:

successes:

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s