From 59b54c853095283b1bdd83940f7df21f48f57e31 Mon Sep 17 00:00:00 2001 From: DR695H Date: Mon, 3 Jun 2019 18:44:17 -0400 Subject: replace protobuf cli with robot lib Change-Id: I230ef223b8a9264d5935d7cdbccc7db8986c2257 Issue-ID: TEST-158 Signed-off-by: DR695H --- robot/testsuites/hvves.robot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'robot/testsuites') diff --git a/robot/testsuites/hvves.robot b/robot/testsuites/hvves.robot index ea9d678f..733719db 100644 --- a/robot/testsuites/hvves.robot +++ b/robot/testsuites/hvves.robot @@ -5,6 +5,7 @@ Test Timeout 3m Resource ../resources/global_properties.robot Resource ../resources/dcae/hvves.robot Library OperatingSystem +Library ONAPLibrary.Protobuf *** Test Cases *** HV-VES test case @@ -12,6 +13,6 @@ HV-VES test case Start HV-VES TCP Client And Send Message ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT} Wait Until Keyword Succeeds 30s 5s Check If Topic Exists ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic} Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic} - ${msg_decoded}= Decode Last Message From Topic ${GLOBAL_DMAAP_KAFKA_SERVER_NAME} ${GLOBAL_DMAAP_KAFKA_SERVER_PORT} ${hvves_kafka_topic} ${security_protocol} ${sasl_mechanisms} ${GLOBAL_DMAAP_KAFKA_JAAS_USERNAME} ${GLOBAL_DMAAP_KAFKA_JAAS_PASSWORD} - ${msg_decoded_template}= Get File ${EXECDIR}/robot/assets/templates/hvves/hvves_decoded_msg.template - Should Be Equal As Strings ${msg_decoded} ${msg_decoded_template} \ No newline at end of file + ${msg}= Decode Last Message From Topic ${GLOBAL_DMAAP_KAFKA_SERVER_NAME} ${GLOBAL_DMAAP_KAFKA_SERVER_PORT} ${hvves_kafka_topic} ${security_protocol} ${sasl_mechanisms} ${GLOBAL_DMAAP_KAFKA_JAAS_USERNAME} ${GLOBAL_DMAAP_KAFKA_JAAS_PASSWORD} + ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg} + Should Be True ${results} \ No newline at end of file -- cgit 1.2.3-korg