Files
runner-images/images/win/scripts/Installers/Install-MongoDB.ps1
Mikhail Timofeev 47c20dcaa3 Stick mongodb version to 4.4.7 (#3747)
* Version 5 potentially contains breaking changes.
Stick to 4.4.7 and announce changes before upgrading to it.
2021-07-19 20:24:04 +03:00

11 lines
527 B
PowerShell

####################################################################################
## File: Install-MongoDB.ps1
## Desc: Install MongoDB
####################################################################################
Choco-Install -PackageName mongodb -ArgumentList "--version=4.4.7"
$mongoPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'mongodb'").PathName
$mongoBin = Split-Path -Path $mongoPath.split('"')[1]
Add-MachinePathItem "$mongoBin"
Invoke-PesterTests -TestFile "Databases" -TestName "MongoDB"