Repository navigation
Description
Part of #5272, split off while working on it (task TALE-365): one connector per change.
Status quo. Shopify (configs/platform/system/connectors/shopify/connector.yml) ships no scenarios, so shopify is not on SCENARIO_CONNECTORS in services/platform/lib/shared/schemas/shipped-connectors.test.ts. Its actions:
- yaml-js live bodies: reads
list_products,get_product,list_customers,get_customer,list_orders,get_order,count_products,count_customers,count_orders.
Asked. Give every action its scenarios, and add shopify to SCENARIO_CONNECTORS:
- Each read ships at least
success,emptyanderror, and each writesuccess,refusalandduplicate. - Each error scenario raises what the action really raises: the same message, and the HTTP
statusonly where that error carries one. - Prove each scenario of an action against its live body: give
SCENARIO_PROOFSin the catalog test the vendor's answer that the scenario stands for, as the Slack and Jev entries do. Given that answer, the body returns the scenario's output or throws its error. - Use synthetic data only: the repository is public.
- The proofs pin the scenario names, so a renamed or removed scenario fails the catalog test.
Builds on #5272's first part, the Jev connector (task TALE-365, branch feat/jev-connector-scenarios). It turns the Slack-only proof table into SCENARIO_PROOFS for every listed connector: a proof answers each request by <METHOD> <url> with the response the live host builds (toConnectorResponse), and hands the body the credential's secrets as a live call does. Start from feature-train once that change is on it.
Notes.
- Its bodies build their URLs from
ctx.endpoint(the credential'shttps://<store>.myshopify.com), which the proof host does not hand a body yet, and readctx.secrets, which it does.
Done means: shopify is on SCENARIO_CONNECTORS, the catalog test proves each of its scenarios, and docs/{en,de,fr}/develop/connectors.md#scenarios stays true.
Activity
feat(platform): ship scenarios for the Shopify connector
yannickmonney commentedon Nov 14, 2026
Decision
Shopify's scenarios land on the feature line (
release/0.6, throughfeature-train), after the two order fixes and one shared proof-host change.Rule
The two order fixes go to
mainthroughtrain, because they fix what 0.5.x ships today. They reachfeature-trainwhenrelease/0.6next rebases ontomain.count_ordersrequestsorders/count.json?status=any.list_orders'statusinput says that leaving it out lists only open orders.fulfillment_statusis declaredstring | nullonlist_ordersandget_order. The mock answersnull, and the OpenAPI field is nullable.The catalog test's proof host derives
ctx.endpointfor every per-credential connector throughcreateLiveHost, from theendpointaSCENARIO_PROOFSentry declares. That is the same allowedHosts check and origin cut a live call goes through, and it is the only way an endpoint reaches a body in the test. Confluence's branch (feat(platform): ship scenarios for the Confluence connector #5305) hands its endpoint in raw today. Whichever of the two lands second moves onto this one path. A direct test of the proof host pins the derivation.Shopify's scenarios on all nine reads:
more_pageson the three lists,*_not_foundon the three gets;invalid_token(401) andrate_limited(429) on every action.Each error has the body's exact message, and a status only where the body attaches one.
shopifyjoinsSCENARIO_CONNECTORS. Thecount_ordersproofs answer the?status=anyrequest.list_ordersandget_ordereach get a scenario with an unfulfilled order (fulfillment_status: null). All data is synthetic.Answers
release/0.6throughfeature-train. The fixes go tomainthroughtrain.ctx.endpointin the proof host: it comes fromcreateLiveHost, never a hand-built or raw origin. A fixed-endpoint connector gets none.statusinput oncount_orders: not now.status=anymatches the description.SCENARIO_PROOFSkeys.Rationale. Proofs against today's
count_ordersURL, or ones that leave out the most common order, would prove behaviour already known to be wrong, and they would break on the next rebase. Taking the endpoint from the live host keeps one source of truth, but only if every per-credential proof uses it, so Confluence's in-flight copy moves onto it too. The existing Shopify scenario set already meets the kind minimums with synthetic data, so it is rebased and kept, not rewritten.Implementation units
fix(platform): count every Shopify order in count_orders(main, S)fix(platform): let a Shopify order's fulfillment_status be null(main, S)test(platform): hand a per-credential body ctx.endpoint in the scenario proof host: moves any per-credential proof already on feature-train onto it, adds a direct proof-host test, and updates the docs scenarios section in en, de and fr (release/0.6, S)feat(platform): ship scenarios for the Shopify connector, which closes this issue (release/0.6, M; depends on 1-3)