Skip to content

Commit

Permalink
Found issue with CommandInfo command
Browse files Browse the repository at this point in the history
Adding ignored unit test for repro
  • Loading branch information
ggivo committed Nov 11, 2024
1 parent 12c2ce4 commit 6f2ced5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/test/java/redis/clients/jedis/SSLACLJedisClusterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
import javax.net.ssl.SSLParameters;

import io.redis.test.annotations.SinceRedisVersion;
import io.redis.test.utils.EnabledOnCommandRule;
import io.redis.test.utils.RedisVersion;
import io.redis.test.utils.RedisVersionRule;
import io.redis.test.utils.RedisVersionUtil;
import org.junit.*;
import redis.clients.jedis.util.TlsUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import io.redis.test.annotations.SinceRedisVersion;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
Expand Down Expand Up @@ -531,6 +532,22 @@ public void commandInfo() {
assertEquals(0, setInfo.getSubcommands().size());
}

@Test
@Ignore( "Till https://github.com/redis/jedis/issues/4020 is resolved")
public void commandInfoWithSubcommands() {
Map<String, CommandInfo> infos = jedis.commandInfo("ACL");

CommandInfo aclInfo = infos.get("acl");
assertEquals(2, aclInfo.getArity());
assertEquals(0, aclInfo.getFlags().size());
assertEquals(0, aclInfo.getFirstKey());
assertEquals(0, aclInfo.getLastKey());
assertEquals(0, aclInfo.getStep());
assertEquals(1, aclInfo.getAclCategories().size());
assertEquals(0, aclInfo.getTips().size());
assertFalse(aclInfo.getSubcommands().isEmpty());
}

@Test
@SinceRedisVersion("7.0.0")
public void commandList() {
Expand Down

0 comments on commit 6f2ced5

Please sign in to comment.