-
Notifications
You must be signed in to change notification settings - Fork 46
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
permission api: use _keystore.get_* functions #194
Conversation
fb8f0bb
to
4005906
Compare
Codecov Report
@@ Coverage Diff @@
## master #194 +/- ##
==========================================
+ Coverage 55.38% 60.34% +4.95%
==========================================
Files 17 17
Lines 585 585
Branches 52 52
==========================================
+ Hits 324 353 +29
+ Misses 247 218 -29
Partials 14 14
Continue to review full report at Codecov.
|
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 changes the AttributeError
to a segfaults for me. Can you detail how to test this ?
(Or provide a test for it :p)
It changes it to a... segfault? What the heck? Any chance that's Focal/SSL-related? I just ran |
I confirmed I have a segfault on Focal with the repo state before all the refactoring so not related to this PR. Not great but at least clears this ... As mentionned offline, committing a simple test along this PR would be great, full coverage can be done at another time. |
4005906
to
6b9c1ef
Compare
Done. Couldn't let codecov own me like that. I'm afraid that I rebased instead of merged though, I'm sorry. At least the diff is tiny. |
Proof that we're still completely missing test coverage of some verbs. Add a basic `create_permissions` test as well. Signed-off-by: Kyle Fazzari <[email protected]>
6b9c1ef
to
e6aaaa3
Compare
Signed-off-by: Kyle Fazzari <[email protected]>
298c9c2
to
06754f8
Compare
Signed-off-by: Kyle Fazzari <[email protected]>
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.
thanks for adding a smoke test !
Couple comments below but non blocking
sros2/test/sros2/commands/security/verbs/test_create_permission.py
Outdated
Show resolved
Hide resolved
sros2/test/sros2/commands/security/verbs/test_create_permission.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Kyle Fazzari <[email protected]>
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
Later on, it might be easier to just compare the permission.xml tree to a reference xml file, and just pre-processes steps to remove/sanitize known diffs, like
|
Proof that we're still completely missing test coverage of some verbs (logged as #193) 😢 . Added some here.