forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java: add CI to run modules (valkey-io#2388)
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
- Loading branch information
1 parent
615034f
commit abc8666
Showing
5 changed files
with
110 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** 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 static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
import glide.api.GlideClusterClient; | ||
import glide.api.models.commands.InfoOptions.Section; | ||
import lombok.SneakyThrows; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class JsonTests { | ||
@Test | ||
@SneakyThrows | ||
public void check_module_loaded() { | ||
var client = | ||
GlideClusterClient.createClient(commonClusterClientConfig().requestTimeout(5000).build()) | ||
.get(); | ||
var info = client.info(new Section[] {Section.MODULES}, RANDOM).get().getSingleValue(); | ||
assertTrue(info.contains("# json_core_metrics")); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
java/integTest/src/test/java/glide/modules/VectorSearchTests.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,24 @@ | ||
/** 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 static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
import glide.api.GlideClusterClient; | ||
import glide.api.models.commands.InfoOptions.Section; | ||
import lombok.SneakyThrows; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class VectorSearchTests { | ||
|
||
@Test | ||
@SneakyThrows | ||
public void check_module_loaded() { | ||
var client = | ||
GlideClusterClient.createClient(commonClusterClientConfig().requestTimeout(5000).build()) | ||
.get(); | ||
var info = client.info(new Section[] {Section.MODULES}, RANDOM).get().getSingleValue(); | ||
assertTrue(info.contains("# search_index_stats")); | ||
} | ||
} |