Conversation
Move create_test_keypair, get_shared_keypair, gen_keypair from auths-test-utils into auths-crypto/src/testing.rs behind a test-utils feature gate.
- Disable jsonschema default features in auths-id and auths-cli to remove transitive reqwest dependency (resolve-http not needed) - Ignore RUSTSEC-2023-0071 (rsa Marvin Attack via ssh-key transitive dep, no fix available until ssh-key upgrades to rsa v0.10+)
auths-telemetry: add MemoryEventSink and event_sink_contract_tests! macro behind test-utils feature gate. auths-verifier: add MockClock (fixed-time ClockProvider) behind test-utils feature gate, chaining auths-crypto/test-utils.
…d InMemoryStorage Move DeterministicUuidProvider (UuidProvider fake) and InMemoryStorage (6 storage port trait fakes) from auths-test-utils into auths-core/testing. Chain test-utils feature to auths-crypto/test-utils.
Move init_test_repo, get_cloned_test_repo, copy_directory from auths-test-utils into auths-infra-git/src/testing.rs behind a test-utils feature gate with tempfile as optional dep.
…s, and mocks Move FakeRegistryBackend, FakeAttestationSink/Source, FakeIdentityStorage, test_inception_event/test_attestation fixtures, registry_backend_contract_tests! macro, and MockIdentityStorage/MockAttestationSource from auths-test-utils into auths-id/src/testing/ behind #[cfg(any(test, feature = "test-utils"))]. Fix clock injection violation in FakeRegistryBackend::metadata() by replacing chrono::Utc::now() with DateTime::UNIX_EPOCH. Contract macro paths rewritten from auths_test_utils::fixtures::* to $crate::testing::fixtures::* for proper cross-crate resolution.
Move FakeGitLogProvider, FakeGitDiagnosticProvider, FakeCryptoDiagnosticProvider and git_log_provider_contract_tests! macro from auths-test-utils into auths-sdk/src/testing/ behind #[cfg(any(test, feature = "test-utils"))]. Contract macro paths rewritten to use $crate:: for cross-crate resolution. Feature chains to auths-id/test-utils.
…st-utils Update import paths across workspace: - auths_test_utils::crypto::* -> auths_crypto::testing::* - auths_test_utils::fakes::registry -> auths_id::testing::fakes - auths_test_utils::fakes::attestation -> auths_id::testing::fakes - auths_test_utils::fakes::identity_storage -> auths_id::testing::fakes - auths_test_utils::fakes::clock -> auths_verifier::testing - auths_test_utils::fakes::id -> auths_core::testing - auths_test_utils::fakes::git -> auths_sdk::testing::fakes - auths_test_utils::fakes::diagnostics -> auths_sdk::testing::fakes - auths_test_utils::git -> auths_infra_git::testing - auths_test_utils::registry_backend_contract_tests! -> auths_id macro - auths_test_utils::git_log_provider_contract_tests! -> auths_sdk macro Remove auths-test-utils from dev-dependencies of all consumer crates.
All test utilities have been distributed to their owning crates behind per-crate test-utils features. The monolithic auths-test-utils is no longer needed. Removed from workspace members, workspace dependencies, and deny.toml git2 wrapper list.
Split trait definitions from git implementations so AttestationSource, AttestationSink, IdentityStorage, and ManagedIdentity are available without the git-storage feature. Git implementations moved to separate _git.rs files gated behind #[cfg(feature = "git-storage")]. Removed git-storage from test-utils feature chain.
…rage Move GitAttestationStorage, GitIdentityStorage, and GitRefSink to auths-storage::git as standalone modules. Refactor initialize_keri_identity to accept &dyn IdentityStorage and IndexedAttestationStorage to accept Box<dyn AttestationSource>, removing direct coupling to concrete Git types.
Move git-backed contract tests, concurrent_writes tests, and registry benchmark from auths-id to auths-storage. Keep only in-memory fake tests in auths-id. Remove auths-storage dev-dependency from auths-id to eliminate circular dev-dependency.
Add a second nextest run with --all-features to catch test-utils module regressions. Add missing description/repository/readme to auths-storage Cargo.toml for crates.io publishing.
Update CLAUDE.md crate architecture to reflect the actual 7-layer model after the dependency refactor. Mark dependency-architecture-refactor.md as complete.
Reflects the completed workspace restructuring: 7-layer dependency model, per-crate test-utils features, trait/implementation split, removal of auths-test-utils monolith, and updated feature flag documentation.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.