Skip to content

Add API tests for ride recording, weather and gas price lookups - #87

Open
codevalid-io[bot] wants to merge 3 commits into
mainfrom
codevalid/generated-tests-20260924153303-4082f321
Open

codevalid-io[bot] wants to merge 3 commits into
mainfrom
codevalid/generated-tests-20260924153303-4082f321

Conversation

@codevalid-io

@codevalid-io codevalid-io Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Adds an end-to-end API test suite covering ride recording, weather lookup and gas price lookup.

  • POST /api/rides - preset population, manual entry, validation, wind resistance and difficulty suggestion, notes handling
  • GET /api/rides/weather - cache hit and miss, vendor failure and unreachable fallback, distinct cache keys per location
  • POST /api/rides/presets - creation, validation, ownership isolation, MRU ordering

Open-Meteo and the EIA gas price API are served by WireMock stubs; toxiproxy simulates vendor unavailability. Scripts run against the compose stack and are driven by _infra.sh.

@codevalid-io
codevalid-io Bot requested a review from aligneddev as a code owner September 24, 2026 15:33
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.

0 participants