+# Triggers publish_event_to_kafka_bus.py script to send msg to Kafka broker
+# 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 [ $# -ne 2 ]; then
+ echo "Need 2 parameter, <request_id> <target_topic>"
+ echo "Exiting test script....."
+ exit 1
+ fi
+ res=$(python ../common/publish_response_event_to_kafka_bus.py "$1" "$2")
+ if [ $res -eq 0 ]; then
+ echo " Result as expected "
+ else
+ echo " Result not expected "
+ echo " Exiting..... "
+ exit 1
+ fi
+}
+
+# Creates 16 digits random number using letters and numbers only
+get_random_number() {
+ r_num=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c 16)
+ echo $r_num
+}
+
+# It is being used to cross-test-cases in between A1 sim and external server
+# The parameter it holds all with regards to External Server relates e.g. HTTPX_EXT_SRV and PORT_EXT_SRV