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

Fix parallelization of unit tests in WebApi #559

Closed
wants to merge 2 commits into from
Closed

Fix parallelization of unit tests in WebApi #559

wants to merge 2 commits into from

Conversation

MeikelLP
Copy link

Fixes #557

AuditApiAdapter (Core) will respect any AuditDataProvider in the service collection of the host as target data provider. This allows isolation on a per request base. This is usually not important as the audit logger is used as singleton anyway. However this makes parallel unit tests possible.

This is opt-in. If you do not add any AuditDataProvider to the services it uses the old logic: Use the global configuration.

@MeikelLP
Copy link
Author

It's also possible to fix this for other ASP.NET Core parts: Middleware.
I just did it for the part I require right now :)

@MeikelLP MeikelLP changed the title Make Web API audit filter customizable Fix parallelization of unit tests in WebApi Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: Parallel integration tests
2 participants