X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fformat_endpoint_stats.sh;h=80809fe0fa22ca58264120292f70c4af2eb0a210;hb=84525a0316cc1626fe4d6328283d4578f735ae9b;hp=0e2b12abbf26979e0a154b984bae491985521ac1;hpb=b8ae6c467edee10ef39f1b43097fd1ec426e86b7;p=nonrtric.git diff --git a/test/common/format_endpoint_stats.sh b/test/common/format_endpoint_stats.sh index 0e2b12ab..80809fe0 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. @@ -17,7 +17,7 @@ # ============LICENSE_END================================================= # -# This script format http endpoint stats generated by testscripts +# This script format http endpoint stats generated by test scripts print_usage() { echo "Usage: format_endpoint_stats [tc-id]+ " @@ -93,6 +93,7 @@ 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 @@ -132,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