mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
Migration to Pester tests
This commit is contained in:
@@ -14,4 +14,90 @@ Describe "Kind" {
|
||||
It "Kind" {
|
||||
"kind version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Jq" {
|
||||
It "Jq" {
|
||||
"jq -n ." | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Julia" {
|
||||
It "Julia path exists" {
|
||||
"C:\Julia" | Should -Exist
|
||||
}
|
||||
|
||||
It "Julia" {
|
||||
"julia --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Mercurial" {
|
||||
It "Mercurial" {
|
||||
"hg --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "KubernetesCli" {
|
||||
It "kubectl" {
|
||||
"kubectl version --client=true --short=true" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "minikube" {
|
||||
"minikube version --short" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Mingw64" {
|
||||
It "gcc" {
|
||||
"gcc --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "g++" {
|
||||
"g++ --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "make" {
|
||||
"make --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "InnoSetup" {
|
||||
It "InnoSetup" {
|
||||
(Get-Command -Name iscc).CommandType | Should -BeExactly "Application"
|
||||
}
|
||||
}
|
||||
|
||||
Describe "GitHub-CLI" {
|
||||
It "gh is located in ${env:ProgramFiles(x86)}\GitHub CLI" {
|
||||
"${env:ProgramFiles(x86)}\GitHub CLI\gh.exe" | Should -Exist
|
||||
}
|
||||
|
||||
It "gh" {
|
||||
"gh --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "CloudFoundryCli" {
|
||||
It "cf is located in C:\cf-cli" {
|
||||
"C:\cf-cli\cf.exe" | Should -Exist
|
||||
}
|
||||
|
||||
It "cf" {
|
||||
"cf --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "GoogleCouldSDK" {
|
||||
It "bq" {
|
||||
"bq version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "gcloud" {
|
||||
"gcloud version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "gsutil" {
|
||||
"gsutil version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user