openclaw/extensions/matrix/src
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
..
matrix test: align extension runtime mocks with plugin-sdk (#51289) 2026-03-20 15:59:53 -07:00
account-selection.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
actions.account-propagation.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
actions.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
actions.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
auth-precedence.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
channel.account-paths.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
channel.directory.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
channel.resolve.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
channel.runtime.ts Matrix: fix typecheck and boundary drift 2026-03-19 08:03:56 -04:00
channel.setup.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
channel.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
cli.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
cli.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
config-schema.test.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
config-schema.ts Matrix: add allowBots bot-to-bot policy 2026-03-19 23:24:50 -04:00
directory-live.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
directory-live.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
env-vars.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
group-mentions.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
onboarding.resolve.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
onboarding.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
onboarding.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
outbound.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
outbound.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
plugin-entry.runtime.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
profile-update.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
resolve-targets.test.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
resolve-targets.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
runtime-api.ts test: align extension runtime mocks with plugin-sdk (#51289) 2026-03-20 15:59:53 -07:00
runtime.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
session-route.ts Matrix: move outbound session routing behind plugin boundary 2026-03-18 04:09:48 +00:00
setup-bootstrap.ts Matrix: restore local sdk barrel imports 2026-03-19 02:03:17 -04:00
setup-config.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
setup-core.test.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
setup-core.ts Matrix: guard private-network homeserver access 2026-03-19 23:24:50 -04:00
setup-surface.ts fix(ci): repair main type and boundary regressions 2026-03-19 08:00:33 -07:00
storage-paths.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
test-mocks.ts fix(ui): stop dashboard chat history reload storm (#45541) 2026-03-13 19:19:53 -05:00
tool-actions.runtime.ts Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
tool-actions.test.ts Matrix: accept messageId alias for poll votes 2026-03-19 08:50:49 -04:00
tool-actions.ts Matrix: accept messageId alias for poll votes 2026-03-19 08:50:49 -04:00
types.ts Matrix: add allowBots bot-to-bot policy 2026-03-19 23:24:50 -04:00