Files
runner-images-sangeeth/images/macos/tests/Databases.Tests.ps1
Maksim Shilov d127e51bf4 [MacOS] Pin MongoDB to the specific version defined in the toolset (#4452)
* Define mongodb version installed in the toolset
* Searching for latest version of a tool based on a toolset version
2021-11-11 16:14:27 +03:00

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
}
}