Skip to content

Commit 3d50042

Browse files
committed
atuhenticate_test: Move to integration
1 parent aab0e8b commit 3d50042

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

scylla/src/transport/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ pub use connection::SelfIdentity;
2525
pub use execution_profile::ExecutionProfile;
2626
pub use scylla_cql::frame::request::query::{PagingState, PagingStateResponse};
2727

28-
#[cfg(test)]
29-
mod authenticate_test;
3028
#[cfg(test)]
3129
mod session_test;
3230
#[cfg(test)]

scylla/src/transport/authenticate_test.rs renamed to scylla/tests/integration/authenticate.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use crate::authentication::{AuthError, AuthenticatorProvider, AuthenticatorSession};
2-
use crate::test_utils::setup_tracing;
3-
use crate::utils::test_utils::unique_keyspace_name;
1+
use crate::utils::{setup_tracing, unique_keyspace_name};
42
use async_trait::async_trait;
53
use bytes::{BufMut, BytesMut};
4+
use scylla::authentication::{AuthError, AuthenticatorProvider, AuthenticatorSession};
65
use std::sync::Arc;
76

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

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

16-
let session = crate::SessionBuilder::new()
15+
let session = scylla::SessionBuilder::new()
1716
.known_node(uri)
1817
.user("cassandra", "cassandra")
1918
.build()
@@ -72,7 +71,7 @@ async fn custom_authentication() {
7271

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

75-
let session = crate::SessionBuilder::new()
74+
let session = scylla::SessionBuilder::new()
7675
.known_node(uri)
7776
.authenticator_provider(Arc::new(CustomAuthenticatorProvider))
7877
.build()

scylla/tests/integration/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mod authenticate;
12
mod consistency;
23
mod cql_collections;
34
mod execution_profiles;

0 commit comments

Comments
 (0)