-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
#10775 Implement Valkey module #11101
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
base: main
Are you sure you want to change the base?
Conversation
|
||
@Override | ||
public void start() { | ||
List<String> command = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This should be final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of this because excessive usage of final
in Java clutters the code and worsens readability. It's pretty uncommon and I don't see a presence of this convention in the codebase either.
I'm happy to discuss it, but contribution guidelines state we should adapt to code base standards.
modules/valkey/src/main/java/org/testcontainers/valkey/ValkeyContainer.java
Outdated
Show resolved
Hide resolved
modules/valkey/src/main/java/org/testcontainers/valkey/ValkeyContainer.java
Show resolved
Hide resolved
modules/valkey/src/test/java/org/testcontainers/valkey/ValkeyContainerTest.java
Outdated
Show resolved
Hide resolved
modules/valkey/src/test/java/org/testcontainers/valkey/ValkeyContainerTest.java
Outdated
Show resolved
Hide resolved
|
||
@Test | ||
void shouldMountValkeyConfigToContainer() throws Exception { | ||
Path configFile = Paths.get(getClass().getResource("/valkey.conf").toURI()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variables that do not change state after declaration should be explicitly marked as final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #11101 (comment)
modules/valkey/src/test/java/org/testcontainers/valkey/ValkeyContainerTest.java
Outdated
Show resolved
Hide resolved
…cution; utilize AutoCloseable iface in tests; make use of StringUtils.isNotEmpty for preconditions
As requested in #10775, this PR will add support for Valkey testcontainers similar as we already have them for Node, Go & Rust.
I've included most of the features that currently supporting languages have such as:
Ready to accept connections