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 | |
BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame^] | 8 | ${CLI_MRSIM_CTR_REQUESTS} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_requests |
| 9 | ${CLI_MRSIM_CTR_RESPONSES} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_responses |
| 10 | ${CLI_MRSIM_CTR_FILES} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_unique_files |
| 11 | |
| 12 | ${CLI_DRSIM_CTR_QUERY_NOT_PUBLISHED} curl --connect-timeout 10 -X GET http://${SIM_IP}:3906/ctr_publish_query_not_published |
| 13 | ${CLI_DRSIM_CTR_PUBLISHED_FILES} curl --connect-timeout 10 -X GET http://${SIM_IP}:3906/ctr_published_files |
| 14 | ${CLI_DR_REDIR_SIM_DOWNLOADED_VOLUME} curl --connect-timeout 10 -X GET http://${SIM_IP}:3908/dwl_volume |
BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 15 | |
| 16 | *** Keywords *** |
| 17 | |
| 18 | MR Sim Emitted Files Equal |
BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame^] | 19 | [Documentation] Verify that the number of emitted unique files are equal to a target value |
BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 20 | [Arguments] ${target_ctr_value} |
| 21 | ${resp}= Run Process ${CLI_MRSIM_CTR_FILES} shell=yes |
BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame^] | 22 | Should Be Equal As Strings ${resp.stdout} ${target_ctr_value} |
| 23 | |
| 24 | DR Sim Query Not Published Equal |
| 25 | [Documentation] Verify that the number responsed of queries of not published files are equal to a target value |
| 26 | [Arguments] ${target_ctr_value} |
| 27 | ${resp}= Run Process ${CLI_DRSIM_CTR_QUERY_NOT_PUBLISHED} shell=yes |
| 28 | Should Be Equal As Strings ${resp.stdout} ${target_ctr_value} |
| 29 | |
| 30 | DR Sim Published Files Equal |
| 31 | [Documentation] Verify that the number published files are equal to a target value |
| 32 | [Arguments] ${target_ctr_value} |
| 33 | ${resp}= Run Process ${CLI_DRSIM_CTR_PUBLISHED_FILES} shell=yes |
| 34 | Should Be Equal As Strings ${resp.stdout} ${target_ctr_value} |
| 35 | |
| 36 | DR Redir Sim Downloaded Volume Equal |
| 37 | [Documentation] Verify that the size of the downloaded data volume is equal to a target value |
| 38 | [Arguments] ${target_ctr_value} |
| 39 | ${resp}= Run Process ${CLI_DR_REDIR_SIM_DOWNLOADED_VOLUME} shell=yes |
BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 40 | Should Be Equal As Strings ${resp.stdout} ${target_ctr_value} |