feat: move march back-compat auth tests to optional backcompat suite (#127)

Move auth/2025-03-26-oauth-metadata-backcompat and
auth/2025-03-26-oauth-endpoint-fallback out of the required
authScenariosList into a new backcompatScenariosList.

These test backward compatibility with the old 2025-03-26 auth spec
(no PRM, OAuth metadata at server root) which is not part of the
current spec requirements.

- Add new 'backcompat' client suite
- Back-compat scenarios remain in the 'all' suite
- Removed from 'core' and 'auth' suites
- Add separate test describe block for back-compat scenarios

Closes #126
This commit is contained in:
Paul Carleton 2026-01-29 18:14:49 +00:00 • committed by GitHub
commit df87099431
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,11 @@ import {
import { DNSRebindingProtectionScenario } from './server/dns-rebinding';
import { authScenariosList, extensionScenariosList } from './client/auth/index';
import {
authScenariosList,
backcompatScenariosList,
extensionScenariosList
} from './client/auth/index';
import { listMetadataScenarios } from './client/auth/discovery-metadata';
// Pending client scenarios (not yet fully tested/implemented)
@ -137,13 +141,14 @@ export const clientScenarios = new Map<string, ClientScenario>(
allClientScenariosList.map((scenario) => [scenario.name, scenario])
);
// All client test scenarios (core + extensions)
// All client test scenarios (core + backcompat + extensions)
const scenariosList: Scenario[] = [
new InitializeScenario(),
new ToolsCallScenario(),
new ElicitationClientDefaultsScenario(),
new SSERetryScenario(),
...authScenariosList,
...backcompatScenariosList,
...extensionScenariosList
];
@ -201,4 +206,8 @@ export function listExtensionScenarios(): string[] {
return extensionScenariosList.map((scenario) => scenario.name);
}
export function listBackcompatScenarios(): string[] {
return backcompatScenariosList.map((scenario) => scenario.name);
}
export { listMetadataScenarios };