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.audit.search(filters) and admin.audit.export_csv(filters) (implemented in Issue #124) 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 JSON search and CSV export modes.
Test the cursor pagination edge case: the last page (where next_cursor is null) must be clearly distinguishable from a mid-stream page that happens to have zero results in the data array.
Test that applying all optional filters (actor, action, from_date, to_date, entity_type) correctly serialises them as query parameters.
Test that the admin key (not the public key) is sent.
Description
Add focused unit tests for
admin.audit.search(filters)andadmin.audit.export_csv(filters)(implemented in Issue #124) 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
next_cursorisnull) must be clearly distinguishable from a mid-stream page that happens to have zero results in the data array.actor,action,from_date,to_date,entity_type) correctly serialises them as query parameters.Suggested execution
git checkout -b feature/rust-sdk-test-coverage-for-adminauditsearchcargo testis green with no network access required.test(sdk): add coverage for admin audit search methodGuidelines
Closes #125sdks/rust/