From 11368b4ca8bf830a3ed833f697cd963050bb200f Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 14 Jan 2019 11:13:03 +0100 Subject: [PATCH] Added STATUS_WEAK --- db/languages/en | 1 + include/tests_banners | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db/languages/en b/db/languages/en index 1d485d6e..fbd62435 100644 --- a/db/languages/en +++ b/db/languages/en @@ -35,5 +35,6 @@ STATUS_SKIPPED="SKIPPED" STATUS_SUGGESTION="SUGGESTION" STATUS_UNKNOWN="UNKNOWN" STATUS_WARNING="WARNING" +STATUS_WEAK="WEAK" TEXT_YOU_CAN_HELP_LOGFILE="You can help by providing your log file" TEXT_UPDATE_AVAILABLE="update available" diff --git a/include/tests_banners b/include/tests_banners index fce9f5dc..729eabbd 100644 --- a/include/tests_banners +++ b/include/tests_banners @@ -107,7 +107,7 @@ AddHP 2 2 else LogText "Result: Found only ${COUNT} key words (5 or more suggested), to warn unauthorized users and could be increased" - Display --indent 4 --text "- ${FILE} contents" --result WEAK --color YELLOW + Display --indent 4 --text "- ${FILE} contents" --result "${STATUS_WEAK}" --color YELLOW ReportSuggestion ${TEST_NO} "Add a legal banner to ${FILE}, to warn unauthorized users" AddHP 0 1 Report "weak_banner_file[]=${FILE}" @@ -160,7 +160,7 @@ AddHP 2 2 else LogText "Result: Found only ${COUNT} key words, to warn unauthorized users and could be increased" - Display --indent 4 --text "- ${ROOTDIR}etc/issue.net contents" --result WEAK --color YELLOW + Display --indent 4 --text "- ${ROOTDIR}etc/issue.net contents" --result "${STATUS_WEAK}" --color YELLOW ReportSuggestion ${TEST_NO} "Add legal banner to /etc/issue.net, to warn unauthorized users" AddHP 0 1 fi