You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Add focused unit tests for admin.compliance.generate_report and admin.compliance.list_reports (implemented in Issue #122) using a mocked HTTP transport — no live server, no database.
Scope guardrail: this PR must only touch files under sdks/rust/. Do not touch anything under src/ — read the handler referenced below only to learn the request/response contract.
Requirements and context
Cover the happy path for both methods.
Test the documented edge case: an invalid period in generate_report must surface as a typed error distinct from a network/transport error.
Test that the admin key (not the public key) is sent on both requests.
Description
Add focused unit tests for
admin.compliance.generate_reportandadmin.compliance.list_reports(implemented in Issue #122) using a mocked HTTP transport — no live server, no database.Scope guardrail: this PR must only touch files under
sdks/rust/. Do not touch anything undersrc/— read the handler referenced below only to learn the request/response contract.Requirements and context
generate_reportmust surface as a typed error distinct from a network/transport error.Suggested execution
git checkout -b feature/rust-sdk-test-coverage-for-admincompliancereportscargo testis green with no network access required.test(sdk): add coverage for admin compliance methodsGuidelines
Closes #123sdks/rust/