From b6679cf8ceaa49f52df7a30f34b59674147f0f02 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Mon, 16 Jan 2023 23:19:34 +0700 Subject: [PATCH] Update unit test --- shunit2/run_test.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/shunit2/run_test.sh b/shunit2/run_test.sh index 954b487..eb40a2c 100755 --- a/shunit2/run_test.sh +++ b/shunit2/run_test.sh @@ -5,13 +5,13 @@ #script_under_test=$(basename "$0") # Source the helper functions. -if [[ -f ./scripts/helper.sh ]]; then - . ./scripts/helper.sh +if [[ -f ./scripts/utils.sh ]]; then + . ./scripts/utils.sh preflight_system_check init_log init_config else - echo "Helper function (scripts/helper.sh) not found." + echo "Helper function (scripts/utils.sh) not found." exit 1 fi @@ -129,16 +129,16 @@ testEqualityInstallRedis() assertEquals "/usr/bin/redis-server" "${redisserver_bin}" } -testEqualityInstallMongoDB() -{ - . scripts/install_mongodb.sh +#testEqualityInstallMongoDB() +# { +# . scripts/install_mongodb.sh - mongo_bin=$(command -v mongo) - assertEquals "/usr/bin/mongo" "${mongo_bin}" +# mongo_bin=$(command -v mongo) +# assertEquals "/usr/bin/mongo" "${mongo_bin}" - mongod_bin=$(command -v mongod) - assertEquals "/usr/bin/mongod" "${mongod_bin}" -} +# mongod_bin=$(command -v mongod) +# assertEquals "/usr/bin/mongod" "${mongod_bin}" +#} testEqualityInstallFail2ban() {