a113537579f8c3a817788b30e92077a5d3b534ea
[integration/csit.git] / tests / dcaegen2-collectors-datafile / resources / common-keywords.robot
1 *** Settings ***
2 Library         OperatingSystem
3 Library         RequestsLibrary
4 Library         Process
5
6 *** Variables ***
7
8 ${CLI_MRSIM_CTR_REQUESTS}                  curl http://${SIM_IP}:2222/ctr_requests
9 ${CLI_MRSIM_CTR_RESPONSES}                 curl http://${SIM_IP}:2222/ctr_responses
10 ${CLI_MRSIM_CTR_FILES}                     curl http://${SIM_IP}:2222/ctr_unique_files
11
12 *** Keywords ***
13
14 MR Sim Emitted Files Equal
15         [Documentation]                         Verify that the number of emitted unique files are equal to a target value    
16         [Arguments]                     ${target_ctr_value}
17     ${resp}=                                    Run Process     ${CLI_MRSIM_CTR_FILES}  shell=yes
18     Should Be Equal As Strings  ${resp.stdout}  ${target_ctr_value}