diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-08-12 10:46:13 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-08-12 10:46:13 +0300 |
commit | c761fe8106557525e0e5056c9391cdd5854785f2 (patch) | |
tree | 2b0bbfdd3acbf27ad187ff26202e38db7a4da216 | |
parent | 2dae957c581a25c378b1f8e77b3b2ff0f26f85fa (diff) |
Redefined test with requirepass option
-rw-r--r-- | include/tests_databases | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/tests_databases b/include/tests_databases index 5a6a3801..733679b5 100644 --- a/include/tests_databases +++ b/include/tests_databases @@ -207,21 +207,21 @@ ################################################################################# # # Test : DBS-1884 - # Description : Determine Redis configuration option: secureauth + # Description : Determine Redis configuration option: requirepass if [ ${REDIS_RUNNING} -eq 1 -a ${REDIS_CONFIGURATION_FOUND} -eq 1 ]; then PREQS_METS="YES"; else PREQS_MET="NO"; fi - Register --test-no DBS-1884 --weight L --network NO --preqs-met "${PREQS_MET}" --category security --description "Redis: secureauth option configured" + Register --test-no DBS-1884 --weight L --network NO --preqs-met "${PREQS_MET}" --category security --description "Redis: requirepass option configured" if [ ${SKIPTEST} -eq 0 ]; then if FileIsReadable ${REDIS_CONFIGURATION}; then - if SearchItem "^secureauth" "${REDIS_CONFIGURATION}" "--sensitive"; then - LogText "Result: found 'secureauth' configured" + if SearchItem "^requirepass" "${REDIS_CONFIGURATION}" "--sensitive"; then + LogText "Result: found 'requirepass' configured" AddHP 3 3 - Display --indent 4 --text "- Redis (secureauth configured)" --result "${STATUS_FOUND}" --color GREEN - Report "redis_secureauth=1" + Display --indent 4 --text "- Redis (requirepass configured)" --result "${STATUS_FOUND}" --color GREEN + Report "redis_requirepass=1" else AddHP 0 3 - Display --indent 4 --text "- Redis (secureauth configured)" --result "${STATUS_NOT_FOUND}" --color YELLOW - ReportSuggestion "${TEST_NO}" "Configure the 'secureauth' setting for Redis" "${REDIS_CONFIGURATION}" "solution:configure 'secureauth' setting" - Report "redis_secureauth=0" + Display --indent 4 --text "- Redis (requirepass configured)" --result "${STATUS_NOT_FOUND}" --color YELLOW + ReportSuggestion "${TEST_NO}" "Configure the 'requirepass' setting for Redis" "${REDIS_CONFIGURATION}" "solution:configure 'requirepass' setting" + Report "redis_requirepass=0" fi else LogText "Result: test skipped, as we can't read configuration file" |