Improve policy admin client and related tools#223
Conversation
6e30f51 to
746fd7e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #223 +/- ##
==========================================
+ Coverage 78.96% 80.91% +1.94%
==========================================
Files 55 58 +3
Lines 10544 10813 +269
==========================================
+ Hits 8326 8749 +423
+ Misses 2218 2064 -154 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
572ddcd to
1dbf790
Compare
1dbf790 to
178e7a1
Compare
| rpc = "List" | ||
| return self.call(rpc, is_include=is_include).rstrip("\n").split("\n") | ||
|
|
||
| def policy_include_list(self) -> List[str]: |
There was a problem hiding this comment.
Please keep policy_include_* (as wrappers for new methods) for compatibility. It is a public API after all.
There was a problem hiding this comment.
Added them back. I tried to issue a DeprecationWarning, but I am not sure why it not emitted.
PYTHONPATH=. python3import qrexec.policy.admin_client
client = qrexec.policy.admin_client
client.policy_include_list()Warning is not emitted.
|
And also black complains about minor thing |
77a5c32 to
12b0b4f
Compare
|
PipelineRetryFailed |
| else: | ||
| client.policy_replace(name, content, token) | ||
| except subprocess.CalledProcessError as e: | ||
| policy_replace(name, content, token) |
There was a problem hiding this comment.
Rebase failure (should be between try/except)? You do fix it in a later commit (0b26e0a)
There was a problem hiding this comment.
Yes, messed up rebase.
12b0b4f to
a217b14
Compare
|
https://gitlab.com/QubesOS/qubes-core-qrexec/-/jobs/13694697611
Bug in |
Attempting to address this in #228. |
1d1972f to
1c8e634
Compare
* origin/pr/301: Use new policy admin exceptions Pull request description: For: QubesOS/qubes-issues#10746 Requires: QubesOS/qubes-core-qrexec#223
1c8e634 to
1bfe03d
Compare
Largely duplicate of the server side methods, but creating it anyway as it serves two purposes: - If the client can receive appropriate exceptions - If the client methods works
The repository is already reformatted with black using that same line length.
b9b6b0f to
be28027
Compare
Easier to move test files around.
Easier to identify which test file relates to which file when they are under the same directory structure.
be28027 to
842a543
Compare
|
PipelineRetryFailed |
--to shell commands.policyextension so editors can recognize the filetype and load syntax accordinglyAnd many more things as commit grew. Check each commit message.
Fixes: QubesOS/qubes-issues#10745
Fixes: QubesOS/qubes-issues#10746