Skip to content

Commit

Permalink
Cassandra protocol v5 (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Apr 3, 2023
1 parent 6c7388a commit 9128d66
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 110 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions shotover-proxy/tests/cassandra_int_tests/mod.rs
Expand Up @@ -867,7 +867,7 @@ async fn test_protocol_v4(#[case] driver: CassandraDriver) {
#[case::cdrs(CdrsTokio)]
#[tokio::test(flavor = "multi_thread")]
#[serial]
async fn test_protocol_v5(#[case] _driver: CassandraDriver) {
async fn test_protocol_v5_single(#[case] driver: CassandraDriver) {
let _docker_compose =
DockerCompose::new("example-configs/cassandra-passthrough/docker-compose.yaml");

Expand All @@ -877,13 +877,13 @@ async fn test_protocol_v5(#[case] _driver: CassandraDriver) {
.start()
.await;

// let connection = || {
// CassandraConnectionBuilder::new("127.0.0.1", 9042, driver)
// .with_protocol_version(ProtocolVersion::V5)
// .build()
// };
let connection = || {
CassandraConnectionBuilder::new("127.0.0.1", 9042, driver)
.with_protocol_version(ProtocolVersion::V5)
.build()
};

// standard_test_suite(&connection, driver).await;
standard_test_suite(&connection, driver).await;

shotover.shutdown_and_then_consume_events(&[]).await;
}
1 change: 1 addition & 0 deletions shotover/Cargo.toml
Expand Up @@ -13,6 +13,7 @@ license = "Apache-2.0"
alpha-transforms = []

[dependencies]
atomic_enum = "0.2.0"
pretty-hex = "0.3.0"
tokio-stream = "0.1.2"
bytes-utils = "0.1.1"
Expand Down

0 comments on commit 9128d66

Please sign in to comment.