namespace Elsa.ExternalAuthentication.IntegrationTests.Fixtures; /// /// is a process-global mutable static that FastEndpoints /// reads once per host, while UseFastEndpoints() configures the endpoints. Every test class in this assembly /// that builds an endpoint host has to set it — five of them to false and /// IdentityLinkAuthorizationTests to true — and restore it afterwards, so running any two of them /// concurrently lets one class's value leak into another's endpoint configuration: endpoints meant to be anonymous /// come back carrying Permissions(...) and answer 401/403, and the authorization test's endpoints come back /// AllowAnonymous and stop enforcing the very thing it asserts. /// /// Sharing one collection makes those classes run one at a time, and DisableParallelization keeps them from /// overlapping any other collection. Any future class that builds an endpoint host belongs in this collection too. /// [CollectionDefinition(nameof(EndpointSecurityCollection), DisableParallelization = true)] public class EndpointSecurityCollection;