mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
* Define mongodb version installed in the toolset * Searching for latest version of a tool based on a toolset version
19 lines
492 B
PowerShell
19 lines
492 B
PowerShell
Describe "MongoDB" {
|
|
It "<ToolName>" -TestCases @(
|
|
@{ ToolName = "mongo" }
|
|
@{ ToolName = "mongod" }
|
|
) {
|
|
$toolsetVersion = Get-ToolsetValue 'mongodb.version'
|
|
(&$ToolName --version)[2].Split('"')[-2] | Should -BeLike "$toolsetVersion*"
|
|
}
|
|
}
|
|
|
|
Describe "PostgreSQL" {
|
|
It "PostgreSQL-Client" {
|
|
"psql --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "PostgreSQL-Server" {
|
|
"pg_config --version" | Should -ReturnZeroExitCode
|
|
}
|
|
} |