test
patch
task/identity-tests-and-docstrings
#1 / 1
test: belt-and-suspenders coverage for identity plugin phases 1–6
- Add test_identity_belt_and_suspenders.py with 19 new tests covering: - _commit_key_rotation_to_identity_repo: no-op guards + correct HEAD update - State integrity: identity repo HEAD pubkey consistent with MusehubAuthKey fingerprint - Concurrent stress: 50+ simultaneous read_object_bytes calls across all storage paths - Security edge cases: malformed pubkey, corrupted JSON, empty paths all return None - Update docstrings in identities.py: - get_identity: document merge strategy (repo HEAD > DB enrichment) - _read_identity_record_from_repo: expand to describe the full traversal path - _row_to_dict: document the canonical-truth merge logic
sha256:f15e86f04c55358e06df845eb5024feebbe4c34d0143c0cef1d0debbfa6c60ba
sha
+54
~3
symbols
sha256:84d244395d76f602a6e1466eba88290a5a8ca6cb79cf5c3e8e8ac99ef318a255
snapshot
+54
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
57 symbols
+
test_noop_when_identity_has_no_identity_repo
method
async_method test_noop_when_identity_has_no_identity_repo L268–283
+
test_noop_when_identity_id_not_found
method
async_method test_noop_when_identity_id_not_found L255–265
+
test_preserves_other_fields_after_rotation
method
async_method test_preserves_other_fields_after_rotation L311–339
+
test_second_rotation_overwrites_first
method
async_method test_second_rotation_overwrites_first L341–367
+
test_updates_pubkey_in_head_record
method
async_method test_updates_pubkey_in_head_record L286–309
+
test_50_concurrent_reads_on_cached_object
method
async_method test_50_concurrent_reads_on_cached_object L504–513
+
test_50_concurrent_reads_on_disk_object
method
async_method test_50_concurrent_reads_on_disk_object L515–526
+
test_concurrent_reads_complete_under_budget
method
async_method test_concurrent_reads_complete_under_budget L550–561
+
test_mixed_concurrent_reads_cached_and_disk
method
async_method test_mixed_concurrent_reads_cached_and_disk L528–548
+
test_read_identity_record_corrupted_json_returns_none
method
async_method test_read_identity_record_corrupted_json_returns_none L666–734
+
test_read_object_bytes_returns_none_on_empty_paths
method
async_method test_read_object_bytes_returns_none_on_empty_paths L590–601
+
test_read_object_bytes_returns_none_on_missing_disk_path
method
async_method test_read_object_bytes_returns_none_on_missing_disk_path L574–588
+
test_resolve_handle_empty_pubkey_returns_none
method
async_method test_resolve_handle_empty_pubkey_returns_none L626–640
+
test_resolve_handle_malformed_pubkey_returns_none
method
async_method test_resolve_handle_malformed_pubkey_returns_none L605–624
+
test_resolve_handle_no_identity_repo_returns_none
method
async_method test_resolve_handle_no_identity_repo_returns_none L642–653
+
test_resolve_unknown_handle_returns_none
method
async_method test_resolve_unknown_handle_returns_none L655–662
+
test_after_rotation_get_response_and_auth_key_agree
method
async_method test_after_rotation_get_response_and_auth_key_agree L441–475
+
test_get_identity_pubkey_consistent_with_auth_key_fingerprint
method
async_method test_get_identity_pubkey_consistent_with_auth_key_fingerprint L414–439
+
test_registered_key_fingerprint_matches_identity_repo_pubkey
method
async_method test_registered_key_fingerprint_matches_identity_repo_pubkey L386–412
← Older
Oldest on task/identity-tests-and-docstrings
All commits
Newer →
Latest on task/identity-tests-and-docstrings
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:f15e86f04c55358e06df845eb5024feebbe4c34d0143c0cef1d0debbfa6c60ba --body "your comment"
No comments yet. Be the first to start the discussion.