Skip to content

Shared plugin conformance suite (gatewaystack-connect#1344 step 1) - #2

Merged
davidcrowe merged 3 commits into
mainfrom
test/plugin-conformance
Oct 7, 2026
Merged

davidcrowe merged 3 commits into
mainfrom
test/plugin-conformance

Conversation

@davidcrowe

Copy link
Copy Markdown
Contributor

What this changes

This adds the shared L1 plugin conformance adapter and the vendored corpus test/fixtures/plugin-corpus.json (hash aa186d3fb3e7d18c) for gatewaystack-connect#1344 step 1. The adapter runs the canonical notice and post-tool cases against this plugin's real entry point, using a fake gateway. EXPECTED_DIVERGENCES lists anything that still fails, and a test checks the list is exact, so a new failure or a silent fix both turn CI red.

The branch is rebased onto the current origin/main. Only tests are added; plugin code is not changed.

Tests

Local run on this branch: npm test: 25/25 pass.

Adds .github/workflows/test.yml. This is the workflow's first real run.

Ships under ship-when-confident; Fable reviews after (queue +G/+I).

Refs davidcrowe/gatewaystack-connect#1344

Vendors the shared plugin-corpus.json fixture and adds
test/conformance.test.mjs, which drives hook.mjs's real decide()
against a fake gateway to check the notice and post-tool capability
contracts (both marked supported for this plugin). Also adds a
minimal CI workflow since the repo is public and had none.
@davidcrowe
davidcrowe merged commit cfd2da0 into main Oct 7, 2026
1 check passed
@davidcrowe
davidcrowe deleted the test/plugin-conformance branch October 7, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant