-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f2a25c
commit 2d1ecc7
Showing
3 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
java/integTest/src/test/java/glide/modules/BasicTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0 */ | ||
package glide.modules; | ||
|
||
import static glide.TestUtilities.commonClusterClientConfig; | ||
import static glide.api.models.configuration.RequestRoutingConfiguration.SimpleSingleNodeRoute.RANDOM; | ||
|
||
import glide.api.GlideClusterClient; | ||
import glide.api.models.commands.InfoOptions.Section; | ||
import lombok.SneakyThrows; | ||
import org.junit.jupiter.api.Test; | ||
|
||
// TODO: remove when real tests added | ||
public class BasicTests { | ||
@Test | ||
@SneakyThrows | ||
public void connection_check() { | ||
var client = | ||
GlideClusterClient.createClient(commonClusterClientConfig().requestTimeout(5000).build()) | ||
.get(); | ||
System.out.println(client.info(new Section[] {Section.MODULES}, RANDOM).get().getSingleValue()); | ||
} | ||
} |