Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some tests to integration #1102

Merged
merged 12 commits into from
Nov 20, 2024
Prev Previous commit
Next Next commit
atuhenticate_test: Move to integration
  • Loading branch information
Lorak-mmk committed Nov 20, 2024
commit 3d50042324eb831dc077e34f2517b899df3de11d
2 changes: 0 additions & 2 deletions scylla/src/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ pub use connection::SelfIdentity;
pub use execution_profile::ExecutionProfile;
pub use scylla_cql::frame::request::query::{PagingState, PagingStateResponse};

#[cfg(test)]
mod authenticate_test;
#[cfg(test)]
mod session_test;
#[cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::authentication::{AuthError, AuthenticatorProvider, AuthenticatorSession};
use crate::test_utils::setup_tracing;
use crate::utils::test_utils::unique_keyspace_name;
use crate::utils::{setup_tracing, unique_keyspace_name};
use async_trait::async_trait;
use bytes::{BufMut, BytesMut};
use scylla::authentication::{AuthError, AuthenticatorProvider, AuthenticatorSession};
use std::sync::Arc;

#[tokio::test]
Expand All @@ -13,7 +12,7 @@ async fn authenticate_superuser() {

println!("Connecting to {} with cassandra superuser ...", uri);

let session = crate::SessionBuilder::new()
let session = scylla::SessionBuilder::new()
.known_node(uri)
.user("cassandra", "cassandra")
.build()
Expand Down Expand Up @@ -72,7 +71,7 @@ async fn custom_authentication() {

println!("Connecting to {} with cassandra superuser ...", uri);

let session = crate::SessionBuilder::new()
let session = scylla::SessionBuilder::new()
.known_node(uri)
.authenticator_provider(Arc::new(CustomAuthenticatorProvider))
.build()
Expand Down
1 change: 1 addition & 0 deletions scylla/tests/integration/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mod authenticate;
mod consistency;
mod cql_collections;
mod execution_profiles;
Expand Down