feat(prices): commit smoke test scaffold for /v1/prices (Phase A) #173
No reviewers
Labels
No labels
autopilot:pending-human
source:analyste
source:defenseur
source:human
source:medic
status:approved
status:blocked
status:in-progress
status:needs-clarification
status:needs-fix
status:ready
status:review
status:triage
type:bug
type:feature
type:infra
type:refactor
type:schema
type:security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: maximus/Simpl-Resultat#173
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-161-smoke-scaffold"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase A of #161 (price-fetching production wiring + release smoke).
This PR commits the smoke test scaffold for
/v1/pricesso it is reproducible before each release, but does not run it —/v1/pricesis not yet implemented in production (404 today onhttps://api.lacompagniemaximus.com/v1/prices). The smoke will be run for real in Phase B oncemaximus-api/prices-proxyships.Files
tests/smoke/prices.sh(new, executable) — 4-case smoke (stock 200 / crypto 200 / invalid 404 / no-auth 401) withjqassertions andset -euo pipefail. ReadsMAXIMUS_API_TEST_TOKENfrom env (never committed); supportsMAXIMUS_API_URLandSMOKE_DATEoverrides.tests/smoke/README.md(new) — env var table, two paths for obtaining a premium test token (admin endpoint TODO in maximus-api, manual JWT signing as current workaround), live status note explaining the expected 404 today.Status (intentional)
This PR does not include
Fixes #161because Phase B is still required to actually close the issue:/v1/prices, then/releasecutsv0.9.0Issue #161 stays open after merge, label
status:in-progress. Phase B re-opens via a separate/fix-issue 161once the maximus-api dependencies are unblocked.Verification
bash -n tests/smoke/prices.sh— syntax OKchmod +x tests/smoke/prices.shset in commitsrc-tauri/tauri.conf.jsonalready includeshttps://api.lacompagniemaximus.com)npx vitest run— 492/492 greencargo test --lib— 69/69 greenTest plan
Refs #161