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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user