From c7cfdf2683c5e30c85996f835bd396681b5404c5 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:31:36 +0300 Subject: [PATCH] [macOS] Update MongoDB to version 5 (#3772) --- images/macos/provision/core/mongodb.sh | 10 ++++------ images/macos/tests/Databases.Tests.ps1 | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/images/macos/provision/core/mongodb.sh b/images/macos/provision/core/mongodb.sh index 944ef21c3..9e6c2bba2 100644 --- a/images/macos/provision/core/mongodb.sh +++ b/images/macos/provision/core/mongodb.sh @@ -2,13 +2,11 @@ source ~/utils/utils.sh # MongoDB object-value database -# installs last version of MongoDB Community Edition -# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/v +# Install latest release version of MongoDB Community Edition +# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x echo "Installing mongodb..." - brew tap mongodb/brew -brew_smart_install "mongodb-community@4.4" -ln -sf $(brew --prefix mongodb-community@4.4)/bin/* /usr/local/bin/ +brew_smart_install "mongodb-community@5.0" -invoke_tests "Databases" "Mongo" +invoke_tests "Databases" "MongoDB" diff --git a/images/macos/tests/Databases.Tests.ps1 b/images/macos/tests/Databases.Tests.ps1 index 6e06a231a..5f4548ac7 100644 --- a/images/macos/tests/Databases.Tests.ps1 +++ b/images/macos/tests/Databases.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Mongo" { +Describe "MongoDB" { It "mongodb" { "mongo --version" | Should -ReturnZeroExitCode "mongod --version"| Should -ReturnZeroExitCode