X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fformat_endpoint_stats.sh;h=9edd01aa8400518d49c62357701b789fa28e97c4;hb=refs%2Fchanges%2F89%2F10889%2F2;hp=c80f0831284c126d1b42b7980623cf99239b6c75;hpb=8fbb226ef10720895adb98e6ca7ac1cae39f0103;p=nonrtric.git diff --git a/test/common/format_endpoint_stats.sh b/test/common/format_endpoint_stats.sh index c80f0831..9edd01aa 100755 --- a/test/common/format_endpoint_stats.sh +++ b/test/common/format_endpoint_stats.sh @@ -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