summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authormarekpl <marek.pondel@nokia.com>2018-10-25 11:38:24 +0200
committermarekpl <marek.pondel@nokia.com>2018-10-25 11:38:24 +0200
commit906dab0d5cd5901e0046298c44982f74298a6304 (patch)
tree34d56c44227b64c68436547778815fc7d3867fd8 /robot/resources
parent03f549f99b20a272aa69af6aa470795fe3854a4d (diff)
Fix for HV-VES TA sunny scenario
Handle situation when the topic doesn't exist yet because it is created on kafka after 1st HV-VES message is sent Issue-ID: INT-650 Change-Id: Ie95af8a02ce5cda703f1898cb5d7ece32262987b Signed-off-by: marekpl <marek.pondel@nokia.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/test_templates/hvves_template.robot5
1 files changed, 3 insertions, 2 deletions
diff --git a/robot/resources/test_templates/hvves_template.robot b/robot/resources/test_templates/hvves_template.robot
index 682566fd..5ee9a02d 100644
--- a/robot/resources/test_templates/hvves_template.robot
+++ b/robot/resources/test_templates/hvves_template.robot
@@ -15,8 +15,9 @@ Check Number Of Messages On Topic
[Arguments] ${kafka_server} ${kafka_port} ${kafka_topic}
[Teardown] Close
Connect Consumer bootstrap_servers=${kafka_server}:${kafka_port}
- ${msg_number}= Get Number Of Messages In Topics ${kafka_topic}
- [Return] ${msg_number}
+ ${status} ${msg_number}= Run Keyword And Ignore Error Get Number Of Messages In Topics ${kafka_topic}
+ Run Keyword If '${status}' == 'FAIL' Return From Keyword 0
+ Run Keyword If '${status}' == 'PASS' Return From Keyword ${msg_number}
Define WTP Protocol
[Documentation] Defines Wire Transfer Protocol.