[Windows] Pin PostgreSQL version installed in the toolset (#4492)

This commit is contained in:
Maksim Shilov
2021-11-16 11:38:03 +03:00
committed by GitHub
parent d3e74a5d7d
commit ff41a760f0
5 changed files with 32 additions and 9 deletions

View File

@@ -51,6 +51,16 @@ Describe "PostgreSQL" {
$StartType | Should -Be "Disabled"
}
}
Context "PostgreSQL version" {
It "PostgreSQL version should correspond to the version in the toolset" {
$toolsetVersion = (Get-ToolsetContent).postgresql.version
# Client version
(&$Env:PGBIN\psql --version).split()[-1] | Should -BeLike "$toolsetVersion*"
# Server version
(&$Env:PGBIN\pg_config --version).split()[-1] | Should -BeLike "$toolsetVersion*"
}
}
}
Describe "MySQL" {