Skip to content

Commit d45c5c0

Browse files
committed
cql_types_test: Move to integration
1 parent 3d50042 commit d45c5c0

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

scylla/src/transport/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ mod session_test;
3030
#[cfg(test)]
3131
mod silent_prepare_batch_test;
3232

33-
#[cfg(test)]
34-
mod cql_types_test;
3533
#[cfg(test)]
3634
mod cql_value_test;
3735
#[cfg(test)]

scylla/src/transport/cql_types_test.rs renamed to scylla/tests/integration/cql_types.rs

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
use crate as scylla;
2-
use crate::deserialize::DeserializeOwnedValue;
3-
use crate::frame::response::result::CqlValue;
4-
use crate::frame::value::{Counter, CqlDate, CqlTime, CqlTimestamp};
5-
use crate::test_utils::{create_new_session_builder, scylla_supports_tablets, setup_tracing};
6-
use crate::transport::session::Session;
7-
use crate::utils::test_utils::unique_keyspace_name;
81
use itertools::Itertools;
9-
use scylla_cql::frame::value::{CqlTimeuuid, CqlVarint};
10-
use scylla_cql::types::serialize::value::SerializeValue;
11-
use scylla_macros::{DeserializeValue, SerializeValue};
2+
use scylla::frame::response::result::CqlValue;
3+
use scylla::frame::value::{Counter, CqlDate, CqlTime, CqlTimestamp, CqlTimeuuid, CqlVarint};
4+
use scylla::serialize::value::SerializeValue;
5+
use scylla::Session;
6+
use scylla::{DeserializeValue, SerializeValue};
127
use std::cmp::PartialEq;
138
use std::fmt::Debug;
149
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
1510
use std::str::FromStr;
1611

12+
use crate::utils::{
13+
create_new_session_builder, scylla_supports_tablets, setup_tracing, unique_keyspace_name,
14+
DeserializeOwnedValue,
15+
};
16+
1717
// Used to prepare a table for test
1818
// Creates a new keyspace, without tablets if requested and the ScyllaDB instance supports them.
1919
// Drops and creates table {table_name} (id int PRIMARY KEY, val {type_name})
@@ -1572,7 +1572,6 @@ async fn test_udt_after_schema_update() {
15721572
.unwrap();
15731573

15741574
#[derive(SerializeValue, DeserializeValue, Debug, PartialEq)]
1575-
#[scylla(crate = crate)]
15761575
struct UdtV1 {
15771576
first: i32,
15781577
second: bool,
@@ -1796,7 +1795,6 @@ async fn test_udt_with_missing_field() {
17961795
}
17971796

17981797
#[derive(SerializeValue)]
1799-
#[scylla(crate = crate)]
18001798
struct UdtV1 {
18011799
first: i32,
18021800
second: bool,
@@ -1822,7 +1820,6 @@ async fn test_udt_with_missing_field() {
18221820
id += 1;
18231821

18241822
#[derive(SerializeValue)]
1825-
#[scylla(crate = crate)]
18261823
struct UdtV2 {
18271824
first: i32,
18281825
second: bool,
@@ -1850,7 +1847,6 @@ async fn test_udt_with_missing_field() {
18501847
id += 1;
18511848

18521849
#[derive(SerializeValue)]
1853-
#[scylla(crate = crate)]
18541850
struct UdtV3 {
18551851
first: i32,
18561852
second: bool,
@@ -1878,7 +1874,7 @@ async fn test_udt_with_missing_field() {
18781874
id += 1;
18791875

18801876
#[derive(SerializeValue)]
1881-
#[scylla(crate = crate, flavor="enforce_order")]
1877+
#[scylla(flavor = "enforce_order")]
18821878
struct UdtV4 {
18831879
first: i32,
18841880
second: bool,

scylla/tests/integration/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
mod authenticate;
22
mod consistency;
33
mod cql_collections;
4+
mod cql_types;
45
mod execution_profiles;
56
mod hygiene;
67
mod lwt_optimisation;

0 commit comments

Comments
 (0)