gabriel / muse public
test task/issue3-test-coverage #1 / 1
AI Agent gabriel · 136 days ago · May 1, 2026 · Diff

test: add integration, stress, data integrity, security, performance tiers to migrate domain-integers tests

Completes the 7-tier test coverage for issue #3 Phase 4: - Integration: real TOML file on disk via list_all_identities - Stress: 50-hub dry-run and live-run scenarios - Data integrity: idempotency, partial failure recovery, fingerprint format, hd_path updated even when hub registration fails, deterministic dry-run - Security: adversarial paths, boundary conditions, path traversal, wrong purpose, too-few/too-many segments, whitespace-only, non-hardened paths - Performance: 20-entry migration under 10s, 1000 is_legacy_hd_path calls under 1s

All 65 tests pass in 0.86s.

sha256:7c9910248bd47dd72e38994b8ebb70d5ecf2487b1fd98ac797e64e63a07dab3b sha
+25 symbols
sha256:0c934d4e232680b5ff95b894c52a3267b2d22e5e0ebdbb1efb88057e3960e743 snapshot
+25
symbols added
0
dead code introduced
Semantic Changes 25 symbols
~ tests/test_migrate_domain_integers.py .py 25 symbols added
+ TestDataIntegrity class class TestDataIntegrity L733–849
+ test_already_migrated_map_returns_empty method method test_already_migrated_map_returns_empty L734–749
+ test_dry_run_twice_same_results method method test_dry_run_twice_same_results L833–849
+ test_fingerprint_format_stored_in_identity_map method method test_fingerprint_format_stored_in_identity_map L790–808
+ test_hd_path_updated_even_when_registration_fails method method test_hd_path_updated_even_when_registration_fails L810–831
+ test_partial_failure_updates_successful_entries method method test_partial_failure_updates_successful_entries L751–788
+ TestIntegration class class TestIntegration L623–668
+ test_migration_against_real_toml_file method method test_migration_against_real_toml_file L624–668
+ TestPerformance class class TestPerformance L923–959
+ test_is_legacy_hd_path_fast_for_thousand_calls method method test_is_legacy_hd_path_fast_for_thousand_calls L947–959
+ test_run_migration_twenty_entries_under_ten_seconds method method test_run_migration_twenty_entries_under_ten_seconds L924–945
+ TestSecurity class class TestSecurity L857–915
+ test_derive_fingerprint_invalid_path_raises method method test_derive_fingerprint_invalid_path_raises L909–915
+ test_domain_just_above_range_not_legacy method method test_domain_just_above_range_not_legacy L864–867
+ test_empty_string_not_legacy method method test_empty_string_not_legacy L894–897
+ test_large_domain_integer_not_legacy method method test_large_domain_integer_not_legacy L869–873
+ test_malformed_path_missing_hardened_marker_not_legacy method method test_malformed_path_missing_hardened_marker_not_legacy L875–880
+ test_non_muse_purpose_with_legacy_domain_not_flagged method method test_non_muse_purpose_with_legacy_domain_not_flagged L858–862
+ test_path_traversal_attempt_not_legacy method method test_path_traversal_attempt_not_legacy L904–907
+ test_path_with_extra_segments_not_legacy method method test_path_with_extra_segments_not_legacy L888–892
+ test_path_with_too_few_segments_not_legacy method method test_path_with_too_few_segments_not_legacy L882–886
+ test_whitespace_only_not_legacy method method test_whitespace_only_not_legacy L899–902
+ TestStress class class TestStress L676–725
+ test_dry_run_fifty_hubs_no_writes method method test_dry_run_fifty_hubs_no_writes L677–700
+ test_live_run_fifty_hubs_all_registered method method test_live_run_fifty_hubs_all_registered L702–725
← Older Oldest on task/issue3-test-coverage
All commits
Newer → Latest on task/issue3-test-coverage

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:7c9910248bd47dd72e38994b8ebb70d5ecf2487b1fd98ac797e64e63a07dab3b --body "your comment"