-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some more functionality and checks to the restart/upgrade test #3431
Conversation
Signed-off-by: Ian Costanzo <[email protected]>
scenarios/examples/util.py
Outdated
@@ -301,7 +301,7 @@ async def anoncreds_issue_credential_v2( | |||
) | |||
holder_indy_record = await holder.event_with_values( | |||
topic="issue_credential_v2_0_anoncreds" | |||
if is_holder_anoncreds | |||
if (is_holder_anoncreds or is_issuer_anoncreds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change in util.py
allows the event issue_credential_v2_0_anoncreds
from an askar holder (this is what I observed in the test, and also in the alice/faber demo).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look great. I do remember this and wasn't exactly sure what to do. I'll need to think about it for a bit.
Signed-off-by: Ian Costanzo <[email protected]>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I'm glad this is tested more thoroughly. I meant to do this for a long time.
For the changing of the event name, this already requires both parties being on the latest version of acapy, so I think adding the anoncreds event handler to an indy agent for forward compatibility would solve the issue.
That's not an issue that needs to be addressed in this PR. I'll create a separate issue for it.
Fleshes out the upgrade & restart scenario test (checks record counts, issues and revokes credentials after restart, etc).
There is one event type I'm not sure of (issue credential from anoncreds issuer agent to askar holder agent and one of the holder events is
_anoncreds
rather than_indy
. I patched the test to allow this?