Skip to content

Add regression tests for replay-protection on shipment notes#417

Merged
dinahmaccodes merged 1 commit into
Navin-xmr:mainfrom
Olowodarey:necc
May 30, 2026
Merged

Add regression tests for replay-protection on shipment notes#417
dinahmaccodes merged 1 commit into
Navin-xmr:mainfrom
Olowodarey:necc

Conversation

@Olowodarey
Copy link
Copy Markdown
Contributor

allowed_with_multiple_companies_independent_whitelists — Tests that whitelists are properly isolated per company. A carrier can be whitelisted for one company but not another, and changes to one company's whitelist don't affect others.

list_with_suspended_carriers_in_candidates — Tests that list_company_carriers correctly filters out suspended carriers even when they're in the candidates list and whitelisted. Ensures suspension status is respected during listing.

list_pagination_with_exact_page_boundary — Tests pagination edge cases where results exactly match page boundaries (10 items with page_size 10, then 5+5 split). Verifies next_cursor is correctly set/unset.

handoff_preserves_shipment_state_except_carrier — Tests that handoff only changes the carrier field while preserving all other shipment state (company, receiver, data_hash, deadline). Ensures the operation is surgical and doesn't corrupt related data.

closes #395
closes #396

@dinahmaccodes dinahmaccodes merged commit bf2e0c6 into Navin-xmr:main May 30, 2026
2 of 5 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.

[CONTRACT] Add regression tests for replay-protection on shipment notes [CONTRACT] Add regression tests for contract health checks

2 participants