Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compatibility] Added ZRANGESTORE command #826

Merged
merged 15 commits into from
Dec 8, 2024
Prev Previous commit
Next Next commit
Added ACL test
  • Loading branch information
Vijay-Nirmal committed Nov 24, 2024
commit aea38918ce9ad5e483975c023c732fe41cd992d3
17 changes: 17 additions & 0 deletions test/Garnet.test/Resp/ACL/RespCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5705,6 +5705,23 @@ static async Task DoZRangeAsync(GarnetClient client)
}
}

[Test]
public async Task ZRangeStoreACLsAsync()
{
// TODO: ZRange has loads of options, come back and test all the different lengths

await CheckCommandsAsync(
"ZRANGESTORE",
[DoZRangeStoreAsync]
);

static async Task DoZRangeStoreAsync(GarnetClient client)
{
var val = await client.ExecuteForLongResultAsync("ZRANGESTORE", ["dkey", "key", "0", "-1"]);
ClassicAssert.AreEqual(0, val);
}
}

[Test]
public async Task ZRangeByScoreACLsAsync()
{
Expand Down