File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
tools/Azure.Mcp.Tools.Redis/tests/Azure.Mcp.Tools.Redis.LiveTests Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 44using System . Text . Json ;
55using Azure . Mcp . Tests ;
66using Azure . Mcp . Tests . Client ;
7+ using Azure . Mcp . Tests . Client . Helpers ;
8+ using Azure . Mcp . Tests . Generated . Models ;
79using Xunit ;
810
911namespace Azure . Mcp . Tools . Redis . LiveTests ;
1012
11- public class RedisCommandTests ( ITestOutputHelper output ) : CommandTestsBase ( output )
13+ public class RedisCommandTests ( ITestOutputHelper output , TestProxyFixture fixture ) : RecordedCommandTestsBase ( output , fixture )
1214{
15+ public override List < BodyKeySanitizer > BodyKeySanitizers { get ; } = new List < BodyKeySanitizer >
16+ {
17+ new ( new BodyKeySanitizerBody ( "$..displayName" )
18+ {
19+ Value = "Sanitized"
20+ } ) ,
21+ } ;
22+
23+ public override List < BodyRegexSanitizer > BodyRegexSanitizers => new ( )
24+ {
25+ new BodyRegexSanitizer ( new BodyRegexSanitizerBody ( ) {
26+ Regex = "\" domains\" \\ s*:\\ s*\\ [(?s)(?<domains>.*?)\\ ]" ,
27+ GroupForReplace = "domains" ,
28+ Value = "\" contoso.com\" "
29+ } )
30+ } ;
31+
1332 [ Fact ]
1433 public async Task Should_list_redis_caches_by_subscription_id ( )
1534 {
Original file line number Diff line number Diff line change 1+ {
2+ "AssetsRepo" : " Azure/azure-sdk-assets" ,
3+ "AssetsRepoPrefixPath" : " " ,
4+ "TagPrefix" : " Azure.Mcp.Tools.Redis.LiveTests" ,
5+ "Tag" : " Azure.Mcp.Tools.Redis.LiveTests_de964506f0"
6+ }
You can’t perform that action at this time.
0 commit comments