Skip to content

Add some more functionality and checks to the restart/upgrade test#3431

Merged
ianco merged 3 commits intoopenwallet-foundation:mainfrom
ianco:fix/scenario-tests
Jan 8, 2025
Merged

Add some more functionality and checks to the restart/upgrade test#3431
ianco merged 3 commits intoopenwallet-foundation:mainfrom
ianco:fix/scenario-tests

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?

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
@ianco ianco requested a review from jamshale January 8, 2025 17:20
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
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2025

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
sownak pushed a commit to cheqd/aries-cloudagent-python that referenced this pull request Jan 13, 2025
…penwallet-foundation#3431)

* Add some more functionality and checks to the restart/upgrade test

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>

* Logic fix plus some reformatting

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>

---------

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
ff137 pushed a commit to didx-xyz/acapy that referenced this pull request Jan 29, 2025
…penwallet-foundation#3431)

* Add some more functionality and checks to the restart/upgrade test

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>

* Logic fix plus some reformatting

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>

---------

Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
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