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.
|
mikaelarguedas
left a comment
There was a problem hiding this comment.
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 <kyle@canonical.com>
6b9c1ef to
e6aaaa3
Compare
Signed-off-by: Kyle Fazzari <kyle@canonical.com>
298c9c2 to
06754f8
Compare
Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
mikaelarguedas
left a comment
There was a problem hiding this comment.
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 <kyle@canonical.com>
|
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.