Skip to content

Conversation

@muzarski
Copy link
Contributor

@muzarski muzarski commented May 5, 2025

Ref: #132

As PR title says - currently we throw an error if user provides null pointer. Because of that, one integration was disabled.

Helper method

Notice that update_comma_delimited_list is a set_filtering() function from d79cbe7. It can be reused for whitelist/blacklist filtering config as well.

Integration tests

I enabled 2 out of 6 DisconnectedNullStringApiArgsTests tests:

  • SetContactPoints
  • ConnectKeyspaceNullKeyspace

Both of these check whether the driver behaves as expected when null string is provided. Remaining tests will be enabled as a part of #291

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

muzarski added 2 commits May 5, 2025 14:22
Null pointer should clear the list - there is a test case for this,
which I'll enable later in this PR.

Notice that `update_comma_delimited_list` method can be reused
for whitelist/blacklist configuration - the semantics are exactly the same.
The remaining 4 tests are related to whitelist/blacklist filtering.
Will be enabled in a separate PR that implements these features.
@muzarski muzarski added this to the 0.5 milestone May 5, 2025
@muzarski muzarski self-assigned this May 5, 2025
@muzarski muzarski added bug Something isn't working area/testing Related to unit/integration testing labels May 5, 2025
@muzarski muzarski requested a review from Lorak-mmk May 5, 2025 12:46
@muzarski muzarski merged commit b11ca89 into scylladb:master May 5, 2025
12 checks passed
@muzarski muzarski deleted the contact-points-null branch May 5, 2025 13:11
@wprzytula wprzytula mentioned this pull request Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing Related to unit/integration testing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants