valkey-io / valkey-glide

An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0 and 7.2. Valkey GLIDE is designed for reliability, optimized performance, and high-availability, for Valkey and Redis OSS based applications. GLIDE is a multi language client library, written in Rust with programming language bindings, such as Java and Python
Apache License 2.0
255 stars 53 forks source link

Java: Add option to run IT on remote ports. #2156

Closed Yury-Fridlyand closed 3 weeks ago

Yury-Fridlyand commented 2 months ago

Implementing https://github.com/valkey-io/valkey-glide/pull/1375 to java client

To run IT:

./gradlew :integTest:test

To run IT on existing servers, add this to command line (update ports according to your setup):

-Dcluster-endpoints=localhost:7000 -Dstandalone-endpoints=localhost:6379

Additional parameter to enable TLS

-Dtls=true

To filter IT and run all tests from a specific class, add this to the command line:

--tests <classname>

To filter IT and run a very specific test, add this to the command line:

--tests '*.<test_name>'

⚠️ use quotes

Also this PR allows to use a remote-hosted server for testing.