From: Virginie Date: Tue, 3 Nov 2020 09:03:18 +0000 (+0100) Subject: Display waiver content for the security tests X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b50d578afe62926110318eeeda4b529395c08a36;p=integration.git Display waiver content for the security tests Issue-ID: INT-1764 Signed-off-by: Virginie Change-Id: I0efaa815112b30ad5c9faeeeafecaf7109a9162a Signed-off-by: Virginie --- 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`