Skip to content

Commit 42035f9

Browse files
feat(ubuntu): add httpie package to toolsets
Co-authored-by: renishpatel2482001 <renishpatel2482001@gmail.com>
1 parent 9e3319d commit 42035f9

7 files changed

Lines changed: 14 additions & 0 deletions

File tree

images/ubuntu/scripts/tests/Apt.Tests.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ Describe "Apt" {
55
$testCases = $packages | ForEach-Object { @{ toolName = $_ } }
66

77
It "<toolName> is available" -TestCases $testCases {
8+
$originalName = $toolName
89
switch ($toolName) {
910
"acl" { $toolName = "getfacl"; break }
1011
"aria2" { $toolName = "aria2c"; break }
1112
"libnss3-tools" { $toolName = "certutil"; break }
13+
"httpie" { $toolName = "http"; break }
1214
"p7zip-full" { $toolName = "p7zip"; break }
1315
"7zip" { $toolName = "7z"; break }
1416
"subversion" { $toolName = "svn"; break }
@@ -22,5 +24,11 @@ Describe "Apt" {
2224
}
2325

2426
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
27+
28+
if ($originalName -eq "httpie") {
29+
$path = (Get-Command -Name $toolName).Source
30+
$owner = dpkg -S $path
31+
$owner | Should -Match "httpie"
32+
}
2533
}
2634
}

images/ubuntu/toolsets/toolset-2204-arm64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
"binutils",
171171
"bison",
172172
"brotli",
173+
"httpie",
173174
"libnss3-tools",
174175
"coreutils",
175176
"file",

images/ubuntu/toolsets/toolset-2204.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
"binutils",
179179
"bison",
180180
"brotli",
181+
"httpie",
181182
"libnss3-tools",
182183
"coreutils",
183184
"file",

images/ubuntu/toolsets/toolset-2404-arm64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
"binutils",
154154
"bison",
155155
"brotli",
156+
"httpie",
156157
"libnss3-tools",
157158
"coreutils",
158159
"file",

images/ubuntu/toolsets/toolset-2404.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
"binutils",
158158
"bison",
159159
"brotli",
160+
"httpie",
160161
"libnss3-tools",
161162
"coreutils",
162163
"file",

images/ubuntu/toolsets/toolset-2604-arm64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"binutils",
144144
"bison",
145145
"brotli",
146+
"httpie",
146147
"libnss3-tools",
147148
"coreutils",
148149
"file",

images/ubuntu/toolsets/toolset-2604.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
"binutils",
147147
"bison",
148148
"brotli",
149+
"httpie",
149150
"libnss3-tools",
150151
"coreutils",
151152
"file",

0 commit comments

Comments
 (0)