OIDC tests: the re-seeding test runs on its own host so its drifted client cannot reach the other tests

The drift left the application manager's cache holding a wrong secret and redirect URI; whenever that test ran first, every token exchange after it failed (5 failures in the full-suite run at 849c9e7, which was red for that reason).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 20:05:32 +02:00
commit a6b9bd00e6

View file

@ -290,6 +290,13 @@ public sealed class OidcIssuerTests : IClassFixture<OidcWebApplicationFactory>
[Fact]
public async Task Startup_makes_the_one_client_match_configuration_again()
{
// Own host: the drift below leaves the application manager's cache stale for every other test.
using var own = new OidcWebApplicationFactory();
await new OidcIssuerTests(own).SeederRestoresTheClientAsync();
}
private async Task SeederRestoresTheClientAsync()
{
using var warm = NewClient();
await warm.GetAsync("/healthz");