diff --git a/src/main/java/io/lettuce/core/models/command/CommandDetailParser.java b/src/main/java/io/lettuce/core/models/command/CommandDetailParser.java index 0f4c03325c..695c8cbecf 100644 --- a/src/main/java/io/lettuce/core/models/command/CommandDetailParser.java +++ b/src/main/java/io/lettuce/core/models/command/CommandDetailParser.java @@ -86,6 +86,7 @@ public class CommandDetailParser { aclCategoriesMap.put("@hyperloglog", AclCategory.HYPERLOGLOG); aclCategoriesMap.put("@geo", AclCategory.GEO); aclCategoriesMap.put("@stream", AclCategory.STREAM); + // TODO: aclCategoriesMap.put("@pubsub", AclCategory.PUBSUB); aclCategoriesMap.put("@admin", AclCategory.ADMIN); aclCategoriesMap.put("@fast", AclCategory.FAST); diff --git a/src/test/java/io/lettuce/core/commands/AclCommandIntegrationTests.java b/src/test/java/io/lettuce/core/commands/AclCommandIntegrationTests.java index 7fbeb7cf9f..439dd99480 100644 --- a/src/test/java/io/lettuce/core/commands/AclCommandIntegrationTests.java +++ b/src/test/java/io/lettuce/core/commands/AclCommandIntegrationTests.java @@ -169,4 +169,13 @@ void aclWhoami() { assertThat(redis.aclWhoami()).isEqualTo("default"); } + @Test + void aclHashCommands() { + assertThat(redis.aclDeluser("foo")).isNotNull(); + AclSetuserArgs args = AclSetuserArgs.Builder.on().addCategory(AclCategory.HASH); + assertThat(redis.aclSetuser("foo", args)).isEqualTo("OK"); + assertThat(redis.aclGetuser("foo")).contains("-@all +@hash"); + assertThat(redis.aclDeluser("foo")).isNotNull(); + } + }