Display waiver content for the security tests 21/114521/4
authorVirginie <virginie.lefilleul@orange.com>
Tue, 3 Nov 2020 09:03:18 +0000 (10:03 +0100)
committerVirginie <virginie.lefilleul@orange.com>
Wed, 4 Nov 2020 15:24:46 +0000 (16:24 +0100)
Issue-ID: INT-1764

Signed-off-by: Virginie <virginie.lefilleul@orange.com>
Change-Id: I0efaa815112b30ad5c9faeeeafecaf7109a9162a
Signed-off-by: Virginie <virginie.lefilleul@orange.com>
test/security/check_for_jdwp.sh
test/security/check_for_nonssl_endpoints.sh

index 9343d16..748aec3 100755 (executable)
@@ -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
index 531b248..c7bb8a7 100755 (executable)
@@ -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`