Skip to content

feat(ubuntu): add httpie package to toolsets#14141

Open
Ronitsabhaya75 wants to merge 3 commits into
actions:mainfrom
Ronitsabhaya75:HTTP-CLI
Open

feat(ubuntu): add httpie package to toolsets#14141
Ronitsabhaya75 wants to merge 3 commits into
actions:mainfrom
Ronitsabhaya75:HTTP-CLI

Conversation

@Ronitsabhaya75
Copy link
Copy Markdown

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:

  • Added "httpie" to the "cmd_packages" array under all supported Ubuntu toolset configurations (22.04, 24.04, and 26.04 for both x64 and arm64 architectures).
  • Updated images/ubuntu/scripts/tests/Apt.Tests.ps1 to 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 curl is standard, httpie offers 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:

  • Total Disk Size: ~2.5 MB (including dependencies).
  • Installation Time: < 2 seconds via apt-get.

Co-Authorship & Testing:

This addition has been locally verified and co-tested in collaboration with:

Related issue:

N/A

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Copilot AI review requested due to automatic review settings May 21, 2026 18:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 httpie to Ubuntu 22.04/24.04/26.04 toolset package lists (x64 + arm64).
  • Update Apt.Tests.ps1 to map the httpie package to the http command 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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread images/ubuntu/scripts/tests/Apt.Tests.ps1 Outdated
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>
@Ronitsabhaya75 Ronitsabhaya75 requested a review from Copilot May 21, 2026 18:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread images/ubuntu/scripts/tests/Apt.Tests.ps1 Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Ronitsabhaya75 Ronitsabhaya75 requested a review from Copilot May 21, 2026 18:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Ronitsabhaya75 Ronitsabhaya75 requested a review from Copilot May 21, 2026 19:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants