-
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
367bec4
commit cce10e4
Showing
3 changed files
with
32 additions
and
3 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
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")); | ||
} | ||
} |
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