-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update intergration tests to use WebAppliationFactory #21
Comments
Limitation, that need changes in TestHost is currently (at the time of comment) there is no way to create a client with HttpHandler with Auto Redirect set to false using TestHost. |
@kashifsoofi Hi. Sorry that haven't updated the Issue, but Microsoft changed practices how integration tests should be done. Now WebAppliationFactory should be used instead of TestServer. I think this changed at some point in the end of the last year. With WebAppliationFactory AlowAutoRedirect can set to false (https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.2#test-a-secure-endpoint). If you still want to finish this issue I can mark this as in progress, but I understand if you don't want to continue with this anymore. If you have some questions about this, just let me know. I should have some sample code how test values can be injected to test server with WebAppliationFactory. |
Thanks @ttu for the comment, almost done with the update only test now left to do is web sockets. |
Implemented in #54 |
https://docs.microsoft.com/en-us/aspnet/core/testing/integration-testing
The text was updated successfully, but these errors were encountered: