VOL-3278 Update kafka endpoint name
Change-Id: I664591332301f7bbd779eb1f61016723e3b5931d
diff --git a/tests/functional/Voltha_AlarmTests.robot b/tests/functional/Voltha_AlarmTests.robot
index 9805a9a..9812369 100755
--- a/tests/functional/Voltha_AlarmTests.robot
+++ b/tests/functional/Voltha_AlarmTests.robot
@@ -36,6 +36,7 @@
${has_dataplane} True
${setup_device} True
${teardown_device} True
+${VOLTCTL_KAFKA_ENDPOINT} kafka:9092
${VOLTCTL_NAMESPACE} default
${BBSIMCTL_NAMESPACE} voltha
${VOLTCTL_POD_NAME} voltctl
@@ -472,8 +473,11 @@
Get Device Event
[Documentation] Get the most recent alarm event from voltha.events
[Arguments] ${deviceEventName} ${since}
+ ${voltctl_command} Catenate SEPARATOR=
+ ... voltctl event listen --show-body -t 1 -o json -f Titles=${deviceEventName} ${EMPTY}
+ ... -s ${since} -kafka ${VOLTCTL_KAFKA_ENDPOINT}
${output} ${raiseErr} Exec Pod Separate Stderr ${VOLTCTL_NAMESPACE} ${VOLTCTL_POD_NAME}
- ... voltctl event listen --show-body -t 1 -o json -f Titles=${deviceEventName} -s ${since}
+ ... ${voltctl_command}
${json} To Json ${output}
${count} Get Length ${json}
# If there is more than one event (which could happen if we quickly do a raise and a clear),