feat: Migrate sync tests to objects-test-utils foundation (PR4) #19
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.
Summary
Completes PR4 of the test utilities consolidation plan by migrating objects-sync and objects-registry tests to use the shared test utilities foundation.
Full migration - no backwards compatibility or deprecation stubs.
Changes
Sync Module Implementation (Tier 4)
sync::sync_engine()- Creates SyncEngine for testingsync::project_from_replica()- Creates Project from ReplicaId using RFC-004sync::asset()- Creates Asset with Result type for test compatibilityTest Migrations
objects-sync:
create_test_sync_engine()→sync::sync_engine()test_identity_id()→identity::test_identity_id()test_project_from_replica()→sync::project_from_replica()test_asset()→sync::asset()ObjectsEndpoint::builder().bind()→transport::endpoint()crates/objects-sync/tests/test_utils.rs(full migration)objects-registry:
test_passkey_key()→crypto::passkey_keypair().signing_keytest_wallet_key()→crypto::wallet_keypair().signing_keycurrent_timestamp()→time::now()Dependencies
objects-syncandanyhowtoobjects-test-utils/Cargo.tomlobjects-test-utilsdev-dependency toobjects-sync/Cargo.tomlobjects-test-utilsdev-dependency toobjects-registry/Cargo.tomlVerification
PR Dependency Chain
Files Changed
crates/objects-test-utils/src/sync.rs(new)crates/objects-test-utils/src/lib.rscrates/objects-test-utils/Cargo.tomlcrates/objects-sync/Cargo.tomlcrates/objects-sync/tests/integration_tests.rscrates/objects-sync/tests/test_utils.rs(deleted)bins/objects-registry/Cargo.tomlbins/objects-registry/tests/integration_tests.rsbins/objects-registry/tests/concurrency_tests.rsRelated
~/.claude/plans/logical-purring-comet.md