2020-06-02 17:52:54 +05:00
|
|
|
####################################################################################
|
|
|
|
|
## File: Install-MongoDB.ps1
|
|
|
|
|
## Desc: Install MongoDB
|
|
|
|
|
####################################################################################
|
|
|
|
|
|
2020-06-03 17:35:03 +03:00
|
|
|
Choco-Install -PackageName mongodb
|
|
|
|
|
$mongoPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'mongodb'").PathName
|
|
|
|
|
$mongoBin = Split-Path -Path $mongoPath.split('"')[1]
|
|
|
|
|
Add-MachinePathItem "$mongoBin"
|
2020-07-09 10:53:29 +03:00
|
|
|
|
|
|
|
|
Invoke-PesterTests -TestFile "Databases" -TestName "MongoDB"
|