aboutsummaryrefslogtreecommitdiffstats
path: root/test/security
diff options
context:
space:
mode:
authorVirginie <virginie.lefilleul@orange.com>2020-11-03 10:03:18 +0100
committerVirginie <virginie.lefilleul@orange.com>2020-11-04 16:24:46 +0100
commitb50d578afe62926110318eeeda4b529395c08a36 (patch)
treef3ac08868c17879304abc8b2ce2a89f5b3044928 /test/security
parent7f3734b743eba226525da5ca8e53fbffcb4e04ec (diff)
Display waiver content for the security tests
Issue-ID: INT-1764 Signed-off-by: Virginie <virginie.lefilleul@orange.com> Change-Id: I0efaa815112b30ad5c9faeeeafecaf7109a9162a Signed-off-by: Virginie <virginie.lefilleul@orange.com>
Diffstat (limited to 'test/security')
-rwxr-xr-xtest/security/check_for_jdwp.sh8
-rwxr-xr-xtest/security/check_for_nonssl_endpoints.sh8
2 files changed, 16 insertions, 0 deletions
diff --git a/test/security/check_for_jdwp.sh b/test/security/check_for_jdwp.sh
index 9343d1615..748aec30a 100755
--- a/test/security/check_for_jdwp.sh
+++ b/test/security/check_for_jdwp.sh
@@ -94,6 +94,14 @@ get_open_ports_on_pod() {
done
}
+echo "------------------------------------------------------------------------"
+# Display the waivers
+if [ -s $XL_FILE_PATH ]; then
+ echo -e "--------------------\e[0;31m WARNING \e[0;m XFail List ----------------------------"
+ cat $WL_FILE_PATH
+ echo "------------------------------------------------------------------------"
+fi
+
N_PORTS=0
# go through all pods
diff --git a/test/security/check_for_nonssl_endpoints.sh b/test/security/check_for_nonssl_endpoints.sh
index 531b24814..c7bb8a7f8 100755
--- a/test/security/check_for_nonssl_endpoints.sh
+++ b/test/security/check_for_nonssl_endpoints.sh
@@ -75,6 +75,14 @@ do
esac
done
+echo "------------------------------------------------------------------------"
+# Display the waivers
+if [ -s $XL_FILE_PATH ]; then
+ echo -e "--------------------\e[0;31m WARNING \e[0;m XFail List ----------------------------"
+ cat $XL_FILE_PATH
+ echo "------------------------------------------------------------------------"
+fi
+
# Get both values on single call as this may get slow
PORTS_SVCS=`kubectl get svc --namespace=$K8S_NAMESPACE -o go-template='{{range $item := .items}}{{range $port := $item.spec.ports}}{{if .nodePort}}{{.nodePort}}{{"\t"}}{{$item.metadata.name}}{{"\n"}}{{end}}{{end}}{{end}}' | column -t | sort -n`