Skip to content

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

Merged
aligneddev merged 4 commits into
mainfrom
codevalid/generated-tests-20260924153303-4082f321
Sep 29, 2026
Merged

aligneddev merged 4 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
@aligneddev
aligneddev merged commit 9c996f6 into main Sep 29, 2026
5 checks passed
@aligneddev
aligneddev deleted the codevalid/generated-tests-20260924153303-4082f321 branch September 29, 2026 16:20
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