X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Ftest%2Fcommon%2Ftest_common.sh;h=e1191d20cae80517c38a1331eed74cc0a52baa0c;hb=refs%2Fchanges%2F91%2F12091%2F1;hp=af4e79b9e6c3a0914cc6988f65be2093d4084d6f;hpb=1ef05f94c2b4cc34f4b4b7e891b41548ad9bf446;p=sim%2Fa1-interface.git diff --git a/near-rt-ric-simulator/test/common/test_common.sh b/near-rt-ric-simulator/test/common/test_common.sh index af4e79b..e1191d2 100755 --- a/near-rt-ric-simulator/test/common/test_common.sh +++ b/near-rt-ric-simulator/test/common/test_common.sh @@ -83,12 +83,12 @@ do_curl() { # The aim of this function is to realize error related test cases only # The request_id for the Kafka msg, should be passed here as a function parameter publish_response_event() { - if [ $# -lt 1 ]; then - echo "Need 1 parameter, " + if [ $# -ne 2 ]; then + echo "Need 2 parameter, " echo "Exiting test script....." exit 1 fi - res=$(python ../common/publish_response_event_to_kafka_bus.py "$1") + res=$(python ../common/publish_response_event_to_kafka_bus.py "$1" "$2") if [ $res -eq 0 ]; then echo " Result as expected " else