Function test updates
[nonrtric.git] / test / common / format_endpoint_stats.sh
index c80f083..9edd01a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2021 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2021-2023 Nordix Foundation. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -80,6 +80,7 @@ shift
 echo ""
 echo "==================================================="
 echo "Functional test cases for $1"
+echo "Report date: $(date)"
 echo "==================================================="
 echo
 shift
@@ -92,7 +93,13 @@ while [ $# -gt 0 ]; do
   IMAGE_INFO_FILE=$FTC_DIR/imageinfo_$APP_ID".log"
   if [ -f $IMAGE_INFO_FILE ]; then
     echo "===  Testscript: $1  ==="
+    echo "Slogan: "$(cat $FTC_DIR/endpoint_tc_slogan.log)
     echo "Image: "$(cat $IMAGE_INFO_FILE)
+    image_name=$(< $IMAGE_INFO_FILE)
+    image_sha=$( docker inspect --format='{{.RepoDigests}}' $image_name) 2> /dev/null
+    echo "Sha: $image_sha"
+    echo "Test start: $(cat $FTC_DIR/endpoint_tc_start.log)"
+    echo "Test end: $(cat $FTC_DIR/endpoint_tc_end.log)"
     echo
     TC_RES_FILE=$FTC_DIR/.result$1.txt
     if [ -f "$TC_RES_FILE" ]; then
@@ -126,5 +133,6 @@ echo "===  Results: positive=2XX http status, negative=non 2XX http status - (ok
 echo "Method     Endpoint                                      Positive         Negative"
 cat $SUMMARYFILE | cut -c 4-
 
+echo "-- end of test report -- "
 exit 0