test: add pack_origin and build_msign_header test coverage
- TestParseRemoteInfo: 6 new cases for pack_origin field (populated, absent, whitespace-stripped, null value, empty string, whitespace-only) - TestBuildMsignHeader: 7 unit tests verifying header format, timestamp freshness, Ed25519 verifiability, query-string inclusion, None body, method/body influence on signature, handle embedding - tests/test_push_pack_origin.py: 8 integration tests for pack_origin URL rewriting in _push_objects_as_packs (origin replacement, scheme swap, path preservation, no-op without pack_origin, multi-pack, totals)
sha256:33bc4096adb87ff25fc548c5479faa2477cfbcfd19498802a88c426cd9e41759
sha
+37
~6
symbols
sha256:d892037a0c91ebf33254a3ebaf184960a8b000c6b930403e162123a757b875e7
snapshot
+37
symbols added
~6
symbols modified
0
dead code introduced
Semantic Changes
43 symbols
+
test_https_hub_replaced_with_worker_origin
method
method test_https_hub_replaced_with_worker_origin L71–86
+
test_multiple_packs_all_use_worker_url
method
method test_multiple_packs_all_use_worker_url L158–180
+
test_no_pack_origin_uses_hub_url_unchanged
method
method test_no_pack_origin_uses_hub_url_unchanged L88–102
+
test_pack_origin_does_not_append_extra_path
method
method test_pack_origin_does_not_append_extra_path L139–156
+
test_stored_and_skipped_totals_accumulated
method
method test_stored_and_skipped_totals_accumulated L182–205
+
test_different_bodies_produce_different_sigs
method
method test_different_bodies_produce_different_sigs L289–302
+
test_different_methods_produce_different_headers
method
method test_different_methods_produce_different_headers L274–287
+
test_none_body_treated_as_empty_bytes
method
method test_none_body_treated_as_empty_bytes L248–272
+
test_query_string_included_in_canonical
method
method test_query_string_included_in_canonical L223–246
+
test_pack_origin_absent_when_not_in_response
method
method test_pack_origin_absent_when_not_in_response L139–142
+
test_pack_origin_empty_string_not_set
method
method test_pack_origin_empty_string_not_set L156–159
+
test_pack_origin_populated_when_present
method
method test_pack_origin_populated_when_present L126–137
+
test_pack_origin_whitespace_only_not_set
method
method test_pack_origin_whitespace_only_not_set L161–164
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:33bc4096adb87ff25fc548c5479faa2477cfbcfd19498802a88c426cd9e41759 --body "your comment"
No comments yet. Be the first to start the discussion.