Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions images/ubuntu/scripts/tests/Apt.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ Describe "Apt" {
$testCases = $packages | ForEach-Object { @{ toolName = $_ } }

It "<toolName> is available" -TestCases $testCases {
$originalName = $toolName
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 }
Comment on lines 9 to 16
Expand All @@ -22,5 +24,11 @@ Describe "Apt" {
}

(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"

if ($originalName -eq "httpie") {
$path = (Get-Command -Name $toolName).Source
Comment on lines 26 to +29
$owner = dpkg -S $path
$owner | Should -Match "^httpie:"
Comment thread
Ronitsabhaya75 marked this conversation as resolved.
Outdated
}
}
}
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2204-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2204.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2404-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2404.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2604-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/toolsets/toolset-2604.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"binutils",
"bison",
"brotli",
"httpie",
"libnss3-tools",
"coreutils",
"file",
Expand Down