-
Notifications
You must be signed in to change notification settings - Fork 250
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
test_: wakuext_SavedAddress get, remove, remaining_capacity #6333
Conversation
Jenkins Builds
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6333 +/- ##
===========================================
- Coverage 60.42% 60.33% -0.09%
===========================================
Files 845 845
Lines 111357 111357
===========================================
- Hits 67289 67190 -99
- Misses 36270 36346 +76
- Partials 7798 7821 +23
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
LGTM, thanks!
Added 2 small comments
), | ||
], | ||
) | ||
def test_add_saved_address(self, method, params): |
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.
A general question for all methods:
Do we want to have tests that attempt to save an address with a wrong payload to check error handling? Or we are good with the positive scenarios only
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 can do this, np, just when I tested validation I realized that it exists only for address from the all fields, so I was wondering does it even make sense to add error validation only for this case.
Turned out that most of validation is happening on the client
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.
hmm not sure, @igor-sirotin WDYT? Should we do functional testing for negative scenarios as well to test error handling? i.e. to send RPC requests with wrong payload
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.
Let's discuss it on the call, I'm also curious
Fixes #6089
🔹 Changes:
wakuext_SavedAddress
Readme.md
with new information for functional test setup🚧 Note:
The step for testing adding beyond capacity is currently commented out.
Discussion on this can be found here.
🛠 Current Issue:
The method
wakuext_upsertSavedAddress
works regardless of the limit set bywakuext_remainingCapacityForSavedAddresses
.📌 Readme Updates:
sock.connect
as a prerequisite.✅ Ready for review. Let me know if any additional fixes are required!