mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(plugins): fail auth-literal parity when a declared provider never registers
Silent skip on missing runtime registration recreated the drift class the test guards (ClawSweeper finding); capability-only plugins now must register zero text providers to be exempt.
This commit is contained in:
@@ -157,8 +157,13 @@ describe("bundled provider manifest↔runtime auth literal parity", () => {
|
||||
|
||||
const provider = findRegisteredProvider(captured.providers, parityCase.providerId);
|
||||
if (!provider) {
|
||||
// Capability-only plugins (video/image onboard flags) declare CLI keys in
|
||||
// the manifest without a text ProviderPlugin.auth surface to compare.
|
||||
// Capability-only plugins (video/image onboard flags) register no text
|
||||
// providers at all. A plugin that registers text providers but not the
|
||||
// manifest-declared id has drifted — the exact mismatch this test guards.
|
||||
expect(
|
||||
captured.providers.map((entry) => entry.id),
|
||||
`${parityCase.pluginId} manifest declares provider ${parityCase.providerId} but runtime registers different providers`,
|
||||
).toEqual([]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user