#!/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.
echo ""
echo "==================================================="
echo "Functional test cases for $1"
+echo "Report date: $(date)"
echo "==================================================="
echo
shift
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
echo "Method Endpoint Positive Negative"
cat $SUMMARYFILE | cut -c 4-
+echo "-- end of test report -- "
exit 0