BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 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} |