mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[ubuntu] Pester tests for dotnet sdk, cmd tools and codeql (#2335)
* dotnet cmd codeql tests * fixed dotnet tests, added codeql to toolset * changed codeql version to wildcard * removed unused import and a test call * tmp * lowercase file name * removed sourcing invoke-tests Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
14
images/linux/scripts/tests/Apt.Tests.ps1
Normal file
14
images/linux/scripts/tests/Apt.Tests.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
|
||||
$cmd = (Get-ToolsetContent).apt.cmd_packages
|
||||
|
||||
Describe "Apt" {
|
||||
|
||||
$testCases = $cmd | ForEach-Object {
|
||||
@{ toolName = $_ }
|
||||
}
|
||||
|
||||
It "<toolName> is available" -TestCases $testCases {
|
||||
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user