openclaw/src/secrets
Josh Lehman 2364e45fe4
test: align extension runtime mocks with plugin-sdk (#51289)
* test: align extension runtime mocks with plugin-sdk

Update stale extension tests to mock the plugin-sdk runtime barrels that production code now imports, and harden the Signal tool-result harness around system-event assertions so the channels lane matches current extension boundaries.

Regeneration-Prompt: |
  Verify the failing channels-lane tests against current origin/main in an isolated worktree before changing anything. If the failures reproduce on main, keep the fix test-only unless production behavior is clearly wrong. Recent extension refactors moved Telegram, WhatsApp, and Signal code onto plugin-sdk runtime barrels, so update stale tests that still mock old core module paths to intercept the seams production code now uses. For Signal reaction notifications, avoid brittle assertions that depend on shared queued system-event state when a direct harness spy on enqueue behavior is sufficient. Preserve scope: only touch the failing tests and their local harness, then rerun the reproduced targeted tests plus the full channels lane and repo check gate.

* test: fix extension test drift on main

* fix: lazy-load bundled web search plugin registry

* test: make matrix sweeper failure injection portable

* fix: split heavy matrix runtime-api seams

* fix: simplify bundled web search id lookup

* test: tolerate windows env key casing
2026-03-20 15:59:53 -07:00
..
apply.test.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
apply.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
audit.test.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
audit.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
auth-profiles-scan.ts refactor(core): extract shared dedup helpers 2026-03-07 10:41:05 +00:00
auth-store-paths.ts refactor(core): extract shared dedup helpers 2026-03-07 10:41:05 +00:00
command-config.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
command-config.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
config-io.ts feat(secrets): replace migrate flow with audit/configure/apply 2026-02-26 14:47:22 +00:00
configure-plan.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
configure-plan.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
configure.test.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
configure.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
credential-matrix.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
exec-resolution-policy.ts Secrets: gate exec dry-run and preflight resolution behind --allow-exec (#49417) 2026-03-17 23:24:34 -05:00
exec-secret-ref-id-parity.test.ts test: stabilize gate regressions 2026-03-18 15:36:32 +00:00
json-pointer.ts
path-utils.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
path-utils.ts refactor(core): extract shared dedup helpers 2026-03-07 10:41:05 +00:00
plan.test.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
plan.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
provider-env-vars.test.ts feat: add Tavily as a bundled web search plugin with search and extract tools (#49200) 2026-03-20 01:06:26 -04:00
provider-env-vars.ts refactor(plugins): move onboarding auth metadata to manifests 2026-03-15 23:47:16 -07:00
ref-contract.test.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
ref-contract.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
resolve-secret-input-string.ts refactor(core): extract shared dedup helpers 2026-03-07 10:41:05 +00:00
resolve.test.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
resolve.ts Secrets: reject exec SecretRef traversal ids across schema/runtime/gateway (#42370) 2026-03-10 13:45:37 -05:00
runtime-auth-collectors.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
runtime-config-collectors-channels.ts Security: require Feishu webhook encrypt key (#44087) 2026-03-12 11:01:00 -04:00
runtime-config-collectors-core.ts feat: move ssh sandboxing into core 2026-03-15 21:35:30 -07:00
runtime-config-collectors-tts.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
runtime-config-collectors.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
runtime-gateway-auth-surfaces.test.ts Gateway: fail closed unresolved local auth SecretRefs (#42672) 2026-03-10 21:41:56 -05:00
runtime-gateway-auth-surfaces.ts Gateway: fail closed unresolved local auth SecretRefs (#42672) 2026-03-10 21:41:56 -05:00
runtime-shared.ts fix(secrets): resolve web tool SecretRefs atomically at runtime 2026-03-09 22:57:03 -05:00
runtime-web-tools.test.ts fix(web-search): split runtime provider resolution 2026-03-20 00:06:12 -07:00
runtime-web-tools.ts test: align extension runtime mocks with plugin-sdk (#51289) 2026-03-20 15:59:53 -07:00
runtime-web-tools.types.ts feat(web-search): add plugin-backed search providers 2026-03-16 01:07:44 +00:00
runtime.coverage.test.ts fix(web-search): split runtime provider resolution 2026-03-20 00:06:12 -07:00
runtime.integration.test.ts fix(ci): split secrets runtime integration coverage 2026-03-19 14:49:01 -07:00
runtime.test.ts fix(web-search): split runtime provider resolution 2026-03-20 00:06:12 -07:00
runtime.ts Secrets: honor caller env during runtime validation 2026-03-16 12:31:44 +00:00
secret-value.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
shared.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
storage-scan.ts SecretRef: harden custom/provider secret persistence and reuse (#42554) 2026-03-10 23:55:10 +00:00
target-registry-data.ts feat: add Tavily as a bundled web search plugin with search and extract tools (#49200) 2026-03-20 01:06:26 -04:00
target-registry-pattern.test.ts Secrets: harden SecretRef-safe models.json persistence (#38955) 2026-03-07 11:28:39 -06:00
target-registry-pattern.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
target-registry-query.ts CLI: expand config set with SecretRef/provider builders and dry-run (#49296) 2026-03-17 18:15:49 -05:00
target-registry-types.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
target-registry.test.ts CLI: expand config set with SecretRef/provider builders and dry-run (#49296) 2026-03-17 18:15:49 -05:00
target-registry.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00