-
Notifications
You must be signed in to change notification settings - Fork 516
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
Remove in memory wallet #3311
Remove in memory wallet #3311
Conversation
jamshale
commented
Oct 24, 2024
•
edited
Loading
edited
- Removes the in-memory wallet and updates tests to use an in-memory sqlite askar wallet.
- Doesn't flatten the wallet abstraction in this PR. Will do this in an additional PR.
- Runs the tests in parallel to speed up execution time.
- Updates all tests that created an in-memory (non-async) profile (wallet) to use the async askar wallet.
- test_dispatcher had a few tests that are skipped. It seems like there might be bug in this code preventing them from working.
- there was one problematic test in test_conductor that I skipped. It has a bad mock somewhere and was causing other tests to fail when run sequentially.
d1ef4be
to
f9f1c41
Compare
Signed-off-by: jamshale <[email protected]>
Signed-off-by: jamshale <[email protected]>
Signed-off-by: jamshale <[email protected]>
Signed-off-by: jamshale <[email protected]>
Signed-off-by: jamshale <[email protected]>
Signed-off-by: jamshale <[email protected]>
f9f1c41
to
7dc00b9
Compare
Signed-off-by: jamshale <[email protected]>
Quality Gate failedFailed conditions |
Switching to a raw key dramatically sped up the tests. Whole PR Tests take less than 3 minutes now. |
This should be ready. It is a breaking change for external plugins that use the old in_memory_profile for testing. |
@jamshale if a wallet type is not specified on startup, do we spin up with an in-memory askar wallet? (if so, this should also probably be using raw key method and |
This is great! I'm interested in taking this one step further after this PR is merged and flattening some of the wallet related abstractions now that there is just Askar. |
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.
I reviewed every non-test file in depth and skimmed the test updates. Nice work!
async def test_ready_middleware_http_unauthorized(self): | ||
"""Test handling of web.HTTPUnauthorized and related exceptions.""" | ||
with mock.patch.object(test_module, "LOGGER", mock.MagicMock()) as mock_logger: | ||
mock_logger.info = mock.MagicMock() | ||
|
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.
Seems that the rebase dropped some of the unit tests I added :-) from #3327
I'll re-add in follow-up PR 👍