Skip to content

Fix API response codes and parameter names in integration tests#37

Merged
amavashev merged 1 commit intomainfrom
claude/rust-client-evaluation-350x3
Mar 31, 2026
Merged

Fix API response codes and parameter names in integration tests#37
amavashev merged 1 commit intomainfrom
claude/rust-client-evaluation-350x3

Conversation

@amavashev
Copy link
Copy Markdown
Contributor

Summary

Updates integration tests to match the actual API behavior:

  • Corrects expected HTTP status codes from 201 (Created) to 200 (OK) for reservation endpoints
  • Fixes the balance query parameter name from tenant_id to tenant

These changes align the test assertions with the actual API implementation.

Checklist

  • Tests added/updated for new behavior
  • AUDIT.md updated (if protocol surface changed)
  • README.md updated (if public API changed)
  • Lint and test suite passes locally

Test plan

The updated integration tests (test_reservation_lifecycle, test_reserve_and_release, and test_balance_query) now correctly validate the API's actual response codes and parameter names. Running the integration test suite will verify these corrections.

https://claude.ai/code/session_01YEun5gKT59qD5yUqasCaar

- Reserve endpoint returns 200 not 201 (per OpenAPI spec v0.1.24)
- Balance query param is "tenant" not "tenant_id" (per spec)

https://claude.ai/code/session_01YEun5gKT59qD5yUqasCaar
@amavashev amavashev merged commit ef1cce1 into main Mar 31, 2026
1 of 3 checks passed
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.

2 participants