Add allowClientError to Scenario interface for expected client failures (#123)

* Add allowClientError to Scenario interface for expected client failures

* Apply suggestion from @pcarleton

Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>

---------

Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>
This commit is contained in:
Mike Kistler 2026-01-26 12:31:54 -06:00 • committed by GitHub
commit 0064ea0c95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 5 deletions

View file

@ -29,6 +29,7 @@ export class ResourceMismatchScenario implements Scenario {
name = 'auth/resource-mismatch';
description =
'Tests that client rejects when PRM resource does not match server URL';
allowClientError = true;
private authServer = new ServerLifecycle();
private server = new ServerLifecycle();

View file

@ -479,6 +479,7 @@ export class ScopeRetryLimitScenario implements Scenario {
name = 'auth/scope-retry-limit';
description =
'Tests that client implements retry limits to prevent infinite authorization loops on repeated 403 responses';
allowClientError = true;
private authServer = new ServerLifecycle();
private server = new ServerLifecycle();
private checks: ConformanceCheck[] = [];