[Ubuntu] Pin MongoDB to the specific version defined in the toolset (#4447)

This commit is contained in:
Maksim Shilov
2021-11-10 19:30:25 +03:00
committed by GitHub
parent 44b6734000
commit 41c947a8f0
4 changed files with 18 additions and 7 deletions

View File

@@ -3,7 +3,8 @@ Describe "MongoDB" {
@{ ToolName = "mongo" }
@{ ToolName = "mongod" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
$toolsetVersion = (Get-ToolsetContent).mongodb.version
(&$ToolName --version)[2].Split('"')[-2] | Should -BeLike "$toolsetVersion*"
}
}