Updates to DFC CSIT test
[integration/csit.git] / tests / dcaegen2-collectors-datafile / testsuites / ManagementInterface-suite / MI.robot
index 7020042..9d9f26d 100755 (executable)
@@ -1,6 +1,7 @@
 *** Settings ***
 Library       OperatingSystem
 Library       RequestsLibrary
+Library       Process
 
 *** Variables ***
 
@@ -27,27 +28,24 @@ Stop test - secure
     [Documentation]    Check DFC stop, secure
     Stop-secure           Datafile Service has already been stopped!
 
-
 Start test - secure
     [Documentation]    Check DFC start, secure
     Start-secure       Datafile Service has been started!
 
 
-#PRobably move definitions of common Keywords to a common file
-
 *** Keywords ***
 #Probably simplyfy the test cases by using variables for port numbers/urls etc
 Heartbeat
     [Arguments]                  ${respbody}
     Create Session               session              http://localhost:8100/heartbeat
     ${resp}=                     Get Request          session                  /
-    Should Be Equal                             ${resp.text}         ${respbody}
+    Should Match Regexp                         ${resp.text}         ${respbody}*
 
 Heartbeat-secure
     [Arguments]                  ${respbody}
     Create Session               session              https://localhost:8433/heartbeat
     ${resp}=                     Get Request          session                  /
-    Should Be Equal                             ${resp.text}         ${respbody}
+    Should Match Regexp                         ${resp.text}         ${respbody}*
 
 Stop
     [Arguments]                  ${respbody}