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:
parent
849c9e71fa
commit
a6b9bd00e6
1 changed files with 7 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue