From b404e33944531e6bda1959fdce1391f39e7eef28 Mon Sep 17 00:00:00 2001 From: sfarouq-ext Date: Mon, 9 Oct 2023 14:28:46 +0000 Subject: [PATCH] correcting my test --- .gitignore | 1 + tests/broker-engine/services-and-bulk-stmt.robot | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index d5b988732c6..b766b68dfdc 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ Testing __ tests/failed +2 broker_pb2.py broker_pb2.pyc broker_pb2_grpc.py diff --git a/tests/broker-engine/services-and-bulk-stmt.robot b/tests/broker-engine/services-and-bulk-stmt.robot index dbfb4e66843..77cfab0df29 100644 --- a/tests/broker-engine/services-and-bulk-stmt.robot +++ b/tests/broker-engine/services-and-bulk-stmt.robot @@ -280,7 +280,8 @@ RLCode [Tags] lua stream connector Clear Commands Status Clear Retention - + + Remove File /tmp/test4.log Remove File /tmp/toto.lua Config Engine ${1} ${1} ${10} Config Broker central @@ -345,12 +346,12 @@ RLCode FOR ${index} IN RANGE 10 ${grep_res}= Grep File ... /tmp/test4.log - ... "\"name\": \"metric_${index}\"" - Sleep 1s - Run Keyword If "${grep_res}" != "" Set Variable ${metric_name_found} True - Exit For Loop If "${grep_res}" != "" + ... "\"name\": \"metric\"" + Sleep 1s + Run Keyword If "${grep_res}" != "" Set Variable ${metric_name_found} True + Exit For Loop If "${grep_res}" != "" END - Should Be True ${metric_name_found} msg=metric name not found + Should Not Be Empty ${metric_name_found} metric name not found Reload Broker