X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fprodstub_api_functions.sh;h=a27f3b4b71d6bb5a36672d4331ee3e15078fd490;hb=f2bfafab18e7fb197a7e351a4f6a89c2936cbb5c;hp=f974df7b6340f047fb2d3b5f83e4f6ea51e645c4;hpb=5343c3097bd7ae1c1c8d5f0409803c0c60034805;p=nonrtric.git diff --git a/test/common/prodstub_api_functions.sh b/test/common/prodstub_api_functions.sh index f974df7b..a27f3b4b 100644 --- a/test/common/prodstub_api_functions.sh +++ b/test/common/prodstub_api_functions.sh @@ -155,22 +155,22 @@ prodstub_disarm_type() { } # Prodstub API: Get job data for a job and compare with a target job json -# +# # (Function for test scripts) prodstub_check_jobdata() { __log_test_start $@ - if [ $# -ne 6 ]; then - __print_err " " $@ + if [ $# -ne 7 ]; then + __print_err " " $@ return 1 fi - if [ -f $6 ]; then - jobfile=$(cat $6) + if [ -f $7 ]; then + jobfile=$(cat $7) jobfile=$(echo "$jobfile" | sed "s/XXXX/$3/g") else - _log_test_fail_general "Template file "$6" for jobdata, does not exist" + _log_test_fail_general "Template file "$7" for jobdata, does not exist" return 1 fi - targetJson="{\"ei_job_identity\":\"$3\",\"ei_type_identity\":\"$4\",\"target_uri\":\"$5\",\"ei_job_data\":$jobfile}" + targetJson="{\"ei_job_identity\":\"$3\",\"ei_type_identity\":\"$4\",\"target_uri\":\"$5\",\"owner\":\"$6\", \"ei_job_data\":$jobfile}" file="./tmp/.p.json" echo "$targetJson" > $file