Add regression tests for replay-protection on shipment notes#417
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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