scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

integration: fix SerialConsistencyTests #186

Closed muzarski closed 1 month ago

muzarski commented 1 month ago

Motivation

Original cpp-driver allows user to SET the invalid serial consistency. Then, the request is sent with an invalid serial consistency, resulting in a server error. However, rust-driver comes with a type safety in this matter, disallowing the user to set invalid serial consistency, thus we are not able to mimic this behaviour in cpp-rust-driver. We need to adjust the integration test, and assert that setting the invalid serial consistency fails with an error.

Changes

Adjusted one test in SerialConsistencyTests suite, and enabled the test suite in CI.

Pre-review checklist