feat(ubuntu): add httpie package to toolsets#14141
Open
Ronitsabhaya75 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR adds the httpie package to the Ubuntu image toolsets (x64 + arm64 across 22.04/24.04/26.04) and updates the Apt test mapping to validate the installed binary.
Changes:
- Add
httpieto Ubuntu 22.04/24.04/26.04 toolset package lists (x64 + arm64). - Update
Apt.Tests.ps1to map thehttpiepackage to thehttpcommand for verification.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| images/ubuntu/toolsets/toolset-2604.json | Adds httpie to the 26.04 package set. |
| images/ubuntu/toolsets/toolset-2604-arm64.json | Adds httpie to the 26.04 arm64 package set. |
| images/ubuntu/toolsets/toolset-2404.json | Adds httpie to the 24.04 package set. |
| images/ubuntu/toolsets/toolset-2404-arm64.json | Adds httpie to the 24.04 arm64 package set. |
| images/ubuntu/toolsets/toolset-2204.json | Adds httpie to the 22.04 package set. |
| images/ubuntu/toolsets/toolset-2204-arm64.json | Adds httpie to the 22.04 arm64 package set. |
| images/ubuntu/scripts/tests/Apt.Tests.ps1 | Maps httpie to http for the apt-installed tool check. |
| "acl" { $toolName = "getfacl"; break } | ||
| "aria2" { $toolName = "aria2c"; break } | ||
| "libnss3-tools" { $toolName = "certutil"; break } | ||
| "httpie" { $toolName = "http"; break } |
Co-authored-by: renishpatel2482001 <renishpatel2482001@gmail.com>
Comment on lines
9
to
16
| switch ($toolName) { | ||
| "acl" { $toolName = "getfacl"; break } | ||
| "aria2" { $toolName = "aria2c"; break } | ||
| "libnss3-tools" { $toolName = "certutil"; break } | ||
| "httpie" { $toolName = "http"; break } | ||
| "p7zip-full" { $toolName = "p7zip"; break } | ||
| "7zip" { $toolName = "7z"; break } | ||
| "subversion" { $toolName = "svn"; break } |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
|
||
| if ($originalName -eq "httpie") { | ||
| $path = (Get-Command -Name $toolName).Source | ||
| $owner = dpkg -S $path |
Comment on lines
26
to
+29
| (Get-Command -Name $toolName).CommandType | Should -BeExactly "Application" | ||
|
|
||
| if ($originalName -eq "httpie") { | ||
| $path = (Get-Command -Name $toolName).Source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
New tool / Improvement
This pull request adds
httpie(a highly popular, user-friendly command-line HTTP client) to the Ubuntu runner images.Summary of Changes:
"httpie"to the"cmd_packages"array under all supported Ubuntu toolset configurations (22.04,24.04, and26.04for bothx64andarm64architectures).images/ubuntu/scripts/tests/Apt.Tests.ps1to map"httpie"to its actual executable binary name"http". This ensures the Pester post-build verification test suite passes successfully.Motivation and Context:
Developers frequently need to test endpoints, perform REST calls, or debug API requests directly inside their CI/CD steps. While
curlis standard,httpieoffers an extremely intuitive syntax, default colorized formatting, and auto-formatted JSON parsing out-of-the-box. This helps keep workflow steps readable and clean.Metadata for New Tools:
apt-get.Co-Authorship & Testing:
This addition has been locally verified and co-tested in collaboration with:
Related issue:
N/A
Check list