mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +00:00
* [ubuntu] Refactor pester tests * Fix key name and add BeforeAll * Fix ActionArchiveCache test
24 lines
1012 B
PowerShell
24 lines
1012 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
Describe "Apt" {
|
|
$packages = (Get-ToolsetContent).apt.cmd_packages + (Get-ToolsetContent).apt.vital_packages
|
|
$testCases = $packages | ForEach-Object { @{ toolName = $_ } }
|
|
|
|
It "<toolName> is available" -TestCases $testCases {
|
|
switch ($toolName) {
|
|
"acl" { $toolName = "getfacl"; break }
|
|
"aria2" { $toolName = "aria2c"; break }
|
|
"p7zip-full" { $toolName = "p7zip"; break }
|
|
"subversion" { $toolName = "svn"; break }
|
|
"sphinxsearch" { $toolName = "searchd"; break }
|
|
"binutils" { $toolName = "strings"; break }
|
|
"coreutils" { $toolName = "tr"; break }
|
|
"net-tools" { $toolName = "netstat"; break }
|
|
"mercurial" { $toolName = "hg"; break }
|
|
"findutils" { $toolName = "find"; break }
|
|
}
|
|
|
|
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
|
}
|
|
}
|