From a6b9bd00e65e3079addda06e2c6aa199f278cfe0 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 20:05:32 +0200 Subject: [PATCH] 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 --- tests/Bifrost.Web.Tests/OidcIssuerTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Bifrost.Web.Tests/OidcIssuerTests.cs b/tests/Bifrost.Web.Tests/OidcIssuerTests.cs index 125eac8..e3c95f4 100644 --- a/tests/Bifrost.Web.Tests/OidcIssuerTests.cs +++ b/tests/Bifrost.Web.Tests/OidcIssuerTests.cs @@ -290,6 +290,13 @@ public sealed class OidcIssuerTests : IClassFixture [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");