X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fdcaegen2%2Ftestcases%2Fresources%2Fdcae_keywords.robot;h=b45ee57d158567d5378202551d9185ea1ff6925d;hb=6ca08114631d139902ed556a079c7893aa518a68;hp=52424e63dce815d0bea640e1dc018789b27e875e;hpb=7bf9d5c1e9c94d60b138c73a716bc10bce038992;p=integration%2Fcsit.git diff --git a/tests/dcaegen2/testcases/resources/dcae_keywords.robot b/tests/dcaegen2/testcases/resources/dcae_keywords.robot index 52424e63..b45ee57d 100644 --- a/tests/dcaegen2/testcases/resources/dcae_keywords.robot +++ b/tests/dcaegen2/testcases/resources/dcae_keywords.robot @@ -1,13 +1,14 @@ *** Settings *** Documentation The main interface for interacting with DCAE. It handles low level stuff like managing the http request library and DCAE required fields +Library robot_library.DcaeLibrary +Library robot_library.DmaapLibrary +Library robot_library.CertsLibrary Library RequestsLibrary -Library DcaeLibrary Library OperatingSystem Library Collections -Library CertsLibrary -Variables ../resources/DcaeVariables.py +Variables ./robot_library/DcaeVariables.py Resource ../../../common.robot -Resource ../resources/dcae_properties.robot +Resource ./dcae_properties.robot *** Keywords *** Create sessions @@ -140,14 +141,14 @@ Publish Event To VES Collector With Put Method [Return] ${resp} Send Request And Validate Response And Error Message - [Documentation] Post singel event to passed url and validate received response code and content + [Documentation] Post single event to passed url and validate received response code and content [Arguments] ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code} ${msg_content} ${resp}= Send Request And Validate Response ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code} ${error_message}= Set Variable ${resp.json()['requestError']['ServiceException']['text']} Should Be Equal As Strings ${msg_content} ${error_message} Send Request And Validate Response - [Documentation] Post singel event to passed url with passed data and validate received response + [Documentation] Post single event to passed url with passed data and validate received response [Arguments] ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code} ${msg_code}=None ${topic}=None ${evtdata}= Get Data From File ${evtjson} ${resp}= Run Keyword ${keyword} ${session} ${evtpath} ${evtdata} @@ -159,7 +160,7 @@ Send Request And Validate Response [Return] ${resp} Check Whether Message Received - [Documentation] Validare if message has been received + [Documentation] Validate if message has been received [Arguments] ${msg_code} ${topic} ${ret}= Run Keyword If '${topic}' != 'None' DMaaP Message Receive On Topic ${msg_code} ${topic} ... ELSE DMaaP Message Receive ${msg_code}