Skip to content
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

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

ianco
Copy link
Contributor

@ianco ianco commented Jan 8, 2025

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?

@ianco ianco requested a review from jamshale January 8, 2025 17:20
@@ -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)
Copy link
Contributor Author

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).

Copy link
Contributor

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.

@ianco ianco marked this pull request as draft January 8, 2025 17:28
@ianco ianco marked this pull request as ready for review January 8, 2025 18:09
Copy link
Contributor

@jamshale jamshale left a 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.

@ianco ianco merged commit 36bc567 into openwallet-foundation:main Jan 8, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants