You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the iterator pattern is nice for this because it fits well with our use case as we typically don't want to reuse keys (identity), across nodes for example.
It would be prudent to ensure that we can also retrieve specific identities, I think via index should suffice.
Non-goals / Non-deliverables
Refactoring existing tests to use pre-generated identities.
General issue deliverables
Update the appropriate CHANGELOG(s)
Update any relevant local/global README(s)
Update relevant source code tree explanations
Add or update any relevant or supporting mermaid diagrams
Testing Methodology
All tests: make test_all
LocalNet: verify a LocalNet is still functioning correctly by following the instructions at docs/development/README.md
That should address the determinism aspect. The only other improvement I was anticipating would potentially be a speed improvement in CI (depending on "things" which I haven't looked into yet).
This issue was based on observations I made while debugging tests. It's definitely not urgent but I'm not sure how important it is (or could be, depending on "things").
I think the MVC here is to just go after the second delivarable. We already have ~1K keypairs in private-keys.yaml which we could then use in unit tests.
Objective
Enabling faster and more deterministic tests.
Origin Document
Goals
testidentity
pkg)Deliverable
Add a make target which generates the keys, output as go source code.Load existing pre-generated keys from private-keys.yamltestkeys
; also see [Testing] Organizing test utilities package(s) #609) which exports a means by which to retrieve the pre-generated ascryptoPocket.PrivateKey
sNon-goals / Non-deliverables
General issue deliverables
Testing Methodology
make test_all
LocalNet
is still functioning correctly by following the instructions at docs/development/README.mdCreator: @bryanchriswhite
Co-Owners: @deblasis
The text was updated successfully, but these errors were encountered: