Fix DCAE VES Collector csits for latest schema mapping changes
[integration/csit.git] / tests / dcaegen2 / testcases / resources / dcae_keywords.robot
index fb5fc1d..660f145 100644 (file)
@@ -141,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}
@@ -160,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}
@@ -171,8 +171,9 @@ Send Request And Expect Error
     [Arguments]  ${keyword}  ${session}  ${evtpath}  ${evtjson}  ${error_type}  @{error_content}
     ${evtdata}=  Get Data From File  ${evtjson}
     ${err_msg}=  Run Keyword And Expect Error  ${error_type}  ${keyword}  ${session}  ${evtpath}  ${evtdata}
-    :FOR    ${content}    IN    @{error_content}
-    \    Should Contain   ${err_msg}  ${content}
+    FOR    ${content}    IN    @{error_content}
+        Should Contain   ${err_msg}  ${content}
+    END
     Log  Recieved error message ${err_msg}
 
 Run Healthcheck