mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[Ubuntu] Migrate tests for CLI tools to Pester (#2289)
* add tests for cli tools to pester * small fix * remove extra commenting * resolve issues * fix vercel test * remove extra logging
This commit is contained in:
committed by
GitHub
parent
7e4e97b9d9
commit
90ecf07404
72
images/linux/scripts/tests/CLI.Tools.Tests.ps1
Normal file
72
images/linux/scripts/tests/CLI.Tools.Tests.ps1
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
Describe "Azure CLI" {
|
||||
It "Azure CLI" {
|
||||
"az --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Azure DevOps CLI" {
|
||||
It "az devops" {
|
||||
"az devops -h" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Aliyun CLI" {
|
||||
It "Aliyun CLI" {
|
||||
"aliyun version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "AWS" {
|
||||
It "AWS CLI" {
|
||||
"aws --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Session Manager Plugin for the AWS CLI" {
|
||||
session-manager-plugin | Out-String | Should -Match "plugin was installed successfully"
|
||||
}
|
||||
}
|
||||
|
||||
Describe "AWS SAM CLI" {
|
||||
It "AWS SAM CLI" {
|
||||
"sam --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "GitHub CLI" {
|
||||
It "gh cli" {
|
||||
"gh --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "hub is installed" {
|
||||
"hub --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Google Cloud SDK" {
|
||||
It "Google Cloud SDK" {
|
||||
"gcloud --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "OC CLI" {
|
||||
It "OC CLI" {
|
||||
"oc version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Oras CLI" {
|
||||
It "Oras CLI" {
|
||||
"oras version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Vercel CLI" {
|
||||
It "Vercel CLI" {
|
||||
"vercel --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Validate the symlink link [now]" {
|
||||
"now --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user