-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Allow ProblemDetails \ ValidationProblemDetails to be more testable #24985
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
Conversation
| detail: detail, | ||
| instance: instance); | ||
| ProblemDetails problemDetails; | ||
| if (ProblemDetailsFactory == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some precedence for having test-only code paths in Controller \ ControllerBase (e.g.
aspnetcore/src/Mvc/Mvc.Core/src/ControllerBase.cs
Lines 75 to 78 in f401f98
| if (_controllerContext == null) | |
| { | |
| _controllerContext = new ControllerContext(); | |
| } |
ProblemDetails \ ValidationProblemDetails in the action.
| Invoke-Expression "& $PSScriptRoot\dotnet-install.ps1 -Architecture $arch -Version $sdkVersion -InstallDir $installDir -NoPath" | ||
| Write-Host "Installing Runtime...& $PSScriptRoot\dotnet-install.ps1 -Architecture $arch -Runtime dotnet -Version $runtimeVersion -InstallDir $installDir -NoPath" | ||
| Invoke-Expression "& $PSScriptRoot\dotnet-install.ps1 -Architecture $arch -Runtime dotnet -Version $runtimeVersion -InstallDir $installDir -NoPath" | ||
| Write-Host "InstallDotNet.ps1 complete..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I can file another PR unless we want it to go in with this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For tracking, better separate but it's up to @pranavkm if validation passes this time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry missed this. I changed the branch after I created it, let me rebase on 5.0 since this build is busted anyway
dougbu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #15166