1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-26 19:21:03 +03:00

Add support for acl dryrun command (#2502)

* add support for acl dryrun command

Co-authored-by: Monkey <golang@88.com>
This commit is contained in:
Akshay Gandhi
2023-03-26 19:51:46 +05:30
committed by GitHub
parent 984bc2810d
commit 386e0f0cd3
2 changed files with 17 additions and 0 deletions

View File

@ -1874,6 +1874,12 @@ var _ = Describe("Commands", func() {
replace := client.Copy(ctx, "newKey", "key", redisOptions().DB, true)
Expect(replace.Val()).To(Equal(int64(1)))
})
It("should acl dryryn", func() {
dryRun := client.ACLDryRun(ctx, "default", "get", "randomKey")
Expect(dryRun.Err()).NotTo(HaveOccurred())
Expect(dryRun.Val()).To(Equal("OK"))
})
})
Describe("hashes", func() {