Skip to content

Commit

Permalink
Address API review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Taillefer committed Sep 13, 2023
1 parent 478249a commit 2ea2d75
Show file tree
Hide file tree
Showing 72 changed files with 453 additions and 550 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class RedactionBenchmark

public RedactionBenchmark()
{
_routeParameterDataClasses.Add("userId", SimpleClassifications.PrivateData);
_routeParameterDataClasses.Add("chatId", SimpleClassifications.PrivateData);
_routeParameterDataClasses.Add("userId", FakeClassifications.PrivateData);
_routeParameterDataClasses.Add("chatId", FakeClassifications.PrivateData);

_httpPath = "/users/{userId}/chats/{chatId}/test1/test2/{userId}";
_stringBuilderPool = PoolFactory.CreateStringBuilderPool();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static ServiceProvider InitializeServiceProvider(params HedgingClientType
private static void AddHedging(this IServiceCollection services, HedgingClientType clientType)
{
var clientBuilder = services.AddHttpClient(clientType.ToString(), client => client.Timeout = Timeout.InfiniteTimeSpan);
var hedgingBuilder = clientBuilder.AddStandardHedgingHandler().SelectPipelineByAuthority(SimpleClassifications.PublicData);
var hedgingBuilder = clientBuilder.AddStandardHedgingHandler().SelectPipelineByAuthority(FakeClassifications.PublicData);
_ = clientBuilder.AddHttpMessageHandler<NoRemoteCallHandler>();

if (clientType.HasFlag(HedgingClientType.NoRoutes))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogRequest(string file
{
options.BodySizeLimit = readLimit;
options.RequestBodyContentTypes.Add(new("application/json"));
options.RequestHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.RequestHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallHandler>()
.Services
Expand All @@ -49,7 +49,7 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogResponse(string fil
{
options.BodySizeLimit = readLimit;
options.ResponseBodyContentTypes.Add(new("application/json"));
options.ResponseHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.ResponseHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallHandler>()
.Services
Expand All @@ -73,10 +73,10 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogAll(string fileName
options.BodySizeLimit = readLimit;
options.RequestBodyContentTypes.Add(new("application/json"));
options.RequestHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.RequestHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
options.ResponseBodyContentTypes.Add(new("application/json"));
options.ResponseHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.ResponseHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallHandler>()
.Services
Expand All @@ -99,7 +99,7 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogRequest_ChunkedEnco
{
options.BodySizeLimit = readLimit;
options.RequestBodyContentTypes.Add("application/json");
options.RequestHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.RequestHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallNotSeekableHandler>()
.Services
Expand All @@ -122,7 +122,7 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogResponse_ChunkedEnc
{
options.BodySizeLimit = readLimit;
options.ResponseBodyContentTypes.Add("application/json");
options.ResponseHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.ResponseHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallNotSeekableHandler>()
.Services
Expand All @@ -146,10 +146,10 @@ public static System.Net.Http.HttpClient CreateWithLoggingLogAll_ChunkedEncoding
options.BodySizeLimit = readLimit;
options.RequestBodyContentTypes.Add("application/json");
options.RequestHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.RequestHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
options.ResponseBodyContentTypes.Add("application/json");
options.ResponseHeadersDataClasses.Add("Content-Type", SimpleClassifications.PrivateData);
options.ResponseHeadersDataClasses.Add("Content-Type", FakeClassifications.PrivateData);
})
.AddHttpMessageHandler<NoRemoteCallNotSeekableHandler>()
.Services
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Name": "Microsoft.AspNetCore.AsyncState, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"Name": "Microsoft.AspNetCore.AsyncState, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"Types": [
{
"Type": "static class Microsoft.AspNetCore.AsyncState.AsyncStateHttpContextExtensions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<PropertyGroup>
<Stage>dev</Stage>
<Stage>normal</Stage>
<MinCodeCoverage>100</MinCodeCoverage>
<MinMutationScore>91</MinMutationScore>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 2ea2d75

Please sign in to comment.