-
Notifications
You must be signed in to change notification settings - Fork 582
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
cmd/snap/debug-api: option to choose access through /run/snapd-snap.socket #14540
cmd/snap/debug-api: option to choose access through /run/snapd-snap.socket #14540
Conversation
…ocket Add an option to choose access through the dedicated snap socket. Signed-off-by: Maciej Borzecki <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14540 +/- ##
==========================================
+ Coverage 78.85% 79.28% +0.43%
==========================================
Files 1079 1082 +3
Lines 145615 147619 +2004
==========================================
+ Hits 114828 117047 +2219
+ Misses 23601 23381 -220
- Partials 7186 7191 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
"header": "Set header (can be repeated multiple times), header kind and value are separated with ': '", | ||
"request": "HTTP method to use (defaults to GET)", | ||
"fail": "Fail on request errors", | ||
"snap-socket": "Use snap access socket", |
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 is vague, can you clarify that this is using the socket used by snapctl when SNAP_NAME is set?
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.
hm but it's using the snap socket only when --snap-socket
is passed in the command line, SNAP_NAME is not checked at all
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, thank you
Add an option to choose access through the dedicated snap socket. Useful for debugging when curl isn't around.