-
Notifications
You must be signed in to change notification settings - Fork 13
ci: fix skipped tests #155
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
Changes from all commits
0759fe1
6e0910c
8e9f164
a1df254
82804ad
1ccd2bc
c34a4d8
7e7f24e
aa7312f
8a15682
d5cff5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,7 +281,7 @@ class CassVersion { | |
std::string scylla_version_prefix = "release:"; | ||
std::string version(version_string); | ||
if (version.compare(0, scylla_version_prefix.size(), scylla_version_prefix) == 0) { | ||
version = "3.0.8"; | ||
version.replace(0, scylla_version_prefix.size(), ""); | ||
} | ||
std::replace(version.begin(), version.end(), '.', ' '); | ||
Comment on lines
281
to
286
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How this new code actually retrieves the Scylla version? Or, if it's already retrieved, what variable stores it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The |
||
std::size_t found = version.find("-"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,15 +194,17 @@ class Collection : public Object<CassCollection, cass_collection_free> { | |
} else { | ||
FAIL() << "Invalid CassValueType: Value type is not a valid collection"; | ||
} | ||
|
||
// Check if collection is empty (null). | ||
// Scylla does not distinguish between an empty collection and NULL value. | ||
// See: https://opensource.docs.scylladb.com/stable/cql/types.html#sets | ||
size_t collection_size = cass_value_item_count(value); | ||
if (collection_size > 0) { | ||
is_null_ = false; | ||
} | ||
|
||
// Initialize the iterator | ||
iterator_ = cass_iterator_from_collection(value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you drop this line then ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. |
||
|
||
// Determine if the collection is empty (null) | ||
const CassValue* check_value = cass_iterator_get_value(iterator_.get()); | ||
if (check_value) { | ||
is_null_ = false; | ||
} | ||
} | ||
} | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -331,8 +331,8 @@ CASSANDRA_INTEGRATION_TEST_F(BasicsTests, BindBlobAsString) { | |
*/ | ||
CASSANDRA_INTEGRATION_TEST_F(BasicsTests, NoCompactEnabledConnection) { | ||
CHECK_FAILURE; | ||
CHECK_VERSION(3.0.16); | ||
CHECK_VERSION(3.11.2); | ||
SKIP_IF_CASSANDRA_VERSION_LT(3.0.16); | ||
SKIP_IF_CASSANDRA_VERSION_LT(3.11.2); | ||
CCM::CassVersion cass_version = server_version_; | ||
if (!Options::is_cassandra()) { | ||
if (server_version_ >= "6.0.0") { | ||
|
@@ -343,7 +343,7 @@ CASSANDRA_INTEGRATION_TEST_F(BasicsTests, NoCompactEnabledConnection) { | |
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aren't we going to run into this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, There are 3 possible bool Options::is_cassandra() { return server_type_ == CCM::ServerType::CASSANDRA; }
bool Options::is_dse() { return server_type_ == CCM::ServerType::DSE; }
bool Options::is_ddac() { return server_type_ == CCM::ServerType::DDAC; } I'm not sure about the difference between the types, but in Scylla's case, the server type is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wth is ddac?! Never heard about it before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
cass_version = static_cast<CCM::DseVersion>(cass_version).get_cass_version(); | ||
} | ||
if (cass_version >= "4.0.0") { | ||
if (!Options::is_scylla() && cass_version >= "4.0.0") { | ||
SKIP_TEST("Unsupported for Apache Cassandra Version " | ||
<< cass_version.to_string() | ||
<< ": Server version must be less than v4.0.0 and either 3.0.16+" | ||
|
Uh oh!
There was an error while loading. Please reload this page.