Multisig delegation Doer-level, Python integration tests#1334
Open
kentbull wants to merge 4 commits intoWebOfTrust:v1.2.12from
Open
Multisig delegation Doer-level, Python integration tests#1334kentbull wants to merge 4 commits intoWebOfTrust:v1.2.12from
kentbull wants to merge 4 commits intoWebOfTrust:v1.2.12from
Conversation
Signed-off-by: Kent Bull <[email protected]> # Conflicts: # src/keri/app/cli/commands/delegate/confirm.py
Signed-off-by: Kent Bull <[email protected]>
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.
Tests for multisig delegation that test the delegation fixes and new delegator AES seal saving logic.
Adds the following:
Tests
Tests:
Test fixtures, Doers, and context managers
tests/app/integration/app_helpers.py:
Test-only Doers:
EscrowDoer: handles Kevery and Counselor escrowsMultisigInceptLeader: Used by the delegatee initiator of delegated multisig inception for group AIDs with 2+ members.MultisigInceptFollower: Used by the delegatee non-initiator group members of delegated group AIDs with 2+ members.MultisigDelegationApprover: Used by the delegator group members to approve delegation requests automatically as they arrive. This completes delegation from the delegator's side.KeystateQueryDoer: Used by the delegatee group members to discover the AES seal approving delegation from the delegator's KEL. This completes delegation from the delegatee's side. May also be used by the delegator to discover delegatee key state following approval.Context classes:
ControllerContext: basically what Doers the KLI spins up when you need to use a controller, like forkli inceptor similar.WitnessContext: Doers needed to run a witness, and the ability to configure ports per witness context.Context Managers
openWit: context manager for a witness. Returns aWitnessContext.openCtrlWited: context manager for a controller that uses a witness as its mailbox and its single backer.Helper Functions:
generateOobi: equivalent ofkli oobi generateused to generate OOBIs for controllers and witnessesresolveOobi: equivalent ofkli oobi resolveused to resolve OOBIs between componentscollectWitnessReceipts: used from the controller's perspective to wait for witness receipts to arrive for a given eventhasDelegables: used by the delegator to wait for delegation approval requests to arrivedelegationSeal: constructor function for a delegation sealclearSentCue: used to clean up Postman cues to keep tests deterministic and isolated