Skip to content

Commit

Permalink
Remove EVERYTHING info() test
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Feb 3, 2024
1 parent 695c855 commit 2f686e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
13 changes: 0 additions & 13 deletions java/integTest/src/test/java/glide/cluster/CommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class CommandTests {
private static final String ANOTHER_VALUE = "VALUE2";

private static final List<String> DEFAULT_INFO_SECTIONS = List.of("Server", "Clients", "Memory", "Persistence", "Stats", "Replication", "CPU", "Modules", "Errorstats", "Cluster", "Keyspace");
private static final List<String> EVERYTHING_INFO_SECTIONS = List.of("Server", "Clients", "Memory", "Persistence", "Stats", "Replication", "CPU", "Modules", "Commandstats", "Errorstats", "Cluster", "Keyspace");

@BeforeAll
@SneakyThrows
Expand Down Expand Up @@ -130,18 +129,6 @@ public void info_with_everything_option() {
}
}

@Test
@SneakyThrows
public void info_with_everything_option_and_route() {
InfoOptions options = InfoOptions.builder().section(EVERYTHING).build();
ClusterValue<String> data = clusterClient.info(options, RANDOM).get(10, SECONDS);
assertTrue(data.hasSingleData());
String infoData = data.getSingleValue();
for (var section : EVERYTHING_INFO_SECTIONS) {
assertTrue(infoData.contains("# " + section), "Section " + section + " is missing");
}
}

@Test
@SneakyThrows
public void info_with_routing_and_options() {
Expand Down
26 changes: 0 additions & 26 deletions java/integTest/src/test/java/glide/standalone/CommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,6 @@ public class CommandTests {
"Errorstats",
"Cluster",
"Keyspace");
private static final List<String> EVERYTHING_INFO_SECTIONS =
List.of(
"Server",
"Clients",
"Memory",
"Persistence",
"Stats",
"Replication",
"CPU",
"Modules",
"Commandstats",
"Errorstats",
// not available in Redis 6
// "Latencystats",
"Cluster",
"Keyspace");

@BeforeAll
@SneakyThrows
Expand Down Expand Up @@ -107,16 +91,6 @@ public void info_with_multiple_options() {
}
}

@Test
@SneakyThrows
public void info_with_everything_option() {
InfoOptions options = InfoOptions.builder().section(EVERYTHING).build();
String data = regularClient.info(options).get(10, SECONDS);
for (var section : EVERYTHING_INFO_SECTIONS) {
assertTrue(data.contains("# " + section), "Section " + section + " is missing");
}
}

@Test
@SneakyThrows
public void set_and_get_without_options() {
Expand Down

0 comments on commit 2f686e9

Please sign in to comment.