2021-07-22 17:31:36 +03:00
|
|
|
Describe "MongoDB" {
|
2021-11-11 16:14:27 +03:00
|
|
|
It "<ToolName>" -TestCases @(
|
|
|
|
|
@{ ToolName = "mongo" }
|
|
|
|
|
@{ ToolName = "mongod" }
|
|
|
|
|
) {
|
|
|
|
|
$toolsetVersion = Get-ToolsetValue 'mongodb.version'
|
|
|
|
|
(&$ToolName --version)[2].Split('"')[-2] | Should -BeLike "$toolsetVersion*"
|
2021-01-14 00:46:44 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "PostgreSQL" {
|
2021-11-16 11:43:59 +03:00
|
|
|
It "PostgreSQL version should correspond to the version in the toolset" {
|
|
|
|
|
$toolsetVersion = Get-ToolsetValue 'postgresql.version'
|
|
|
|
|
# Client version
|
|
|
|
|
(psql --version).split()[-1] | Should -BeLike "$toolsetVersion*"
|
|
|
|
|
# Server version
|
|
|
|
|
(pg_config --version).split()[-1] | Should -BeLike "$toolsetVersion*"
|
2021-01-14 00:46:44 +07:00
|
|
|
}
|
|
|
|
|
}
|