aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-collectors-datafile/resources
diff options
context:
space:
mode:
authorBjornMagnussonXA <bjorn.magnusson@est.tech>2019-04-16 12:10:40 +0000
committerBjornMagnussonXA <bjorn.magnusson@est.tech>2019-04-16 12:10:40 +0000
commit90b09746e5f7692065a2775ada0a3cec529395ed (patch)
tree16f8379409ab56b1a627647fe0739689744fc87e /tests/dcaegen2-collectors-datafile/resources
parent636b397b71bf1da63f635c6aea28392857b3f74f (diff)
Updates to DFC CSIT test
Adaptation of Functional tests due to updated dfc simulators Adaptation of Management tests due to changes in DFC app Removed test for FTPS due to issue with ftps sim cert Issue-ID: DCAEGEN2-1434 Change-Id: Ic92ac4901586cb55164177a8640ba23b60c02f0d Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Diffstat (limited to 'tests/dcaegen2-collectors-datafile/resources')
-rw-r--r--tests/dcaegen2-collectors-datafile/resources/common-keywords.robot30
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/dcaegen2-collectors-datafile/resources/common-keywords.robot b/tests/dcaegen2-collectors-datafile/resources/common-keywords.robot
index a1135375..76dc0338 100644
--- a/tests/dcaegen2-collectors-datafile/resources/common-keywords.robot
+++ b/tests/dcaegen2-collectors-datafile/resources/common-keywords.robot
@@ -5,14 +5,36 @@ Library Process
*** Variables ***
-${CLI_MRSIM_CTR_REQUESTS} curl http://${SIM_IP}:2222/ctr_requests
-${CLI_MRSIM_CTR_RESPONSES} curl http://${SIM_IP}:2222/ctr_responses
-${CLI_MRSIM_CTR_FILES} curl http://${SIM_IP}:2222/ctr_unique_files
+${CLI_MRSIM_CTR_REQUESTS} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_requests
+${CLI_MRSIM_CTR_RESPONSES} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_responses
+${CLI_MRSIM_CTR_FILES} curl --connect-timeout 10 -X GET http://${SIM_IP}:2222/ctr_unique_files
+
+${CLI_DRSIM_CTR_QUERY_NOT_PUBLISHED} curl --connect-timeout 10 -X GET http://${SIM_IP}:3906/ctr_publish_query_not_published
+${CLI_DRSIM_CTR_PUBLISHED_FILES} curl --connect-timeout 10 -X GET http://${SIM_IP}:3906/ctr_published_files
+${CLI_DR_REDIR_SIM_DOWNLOADED_VOLUME} curl --connect-timeout 10 -X GET http://${SIM_IP}:3908/dwl_volume
*** Keywords ***
MR Sim Emitted Files Equal
- [Documentation] Verify that the number of emitted unique files are equal to a target value
+ [Documentation] Verify that the number of emitted unique files are equal to a target value
[Arguments] ${target_ctr_value}
${resp}= Run Process ${CLI_MRSIM_CTR_FILES} shell=yes
+ Should Be Equal As Strings ${resp.stdout} ${target_ctr_value}
+
+DR Sim Query Not Published Equal
+ [Documentation] Verify that the number responsed of queries of not published files are equal to a target value
+ [Arguments] ${target_ctr_value}
+ ${resp}= Run Process ${CLI_DRSIM_CTR_QUERY_NOT_PUBLISHED} shell=yes
+ Should Be Equal As Strings ${resp.stdout} ${target_ctr_value}
+
+DR Sim Published Files Equal
+ [Documentation] Verify that the number published files are equal to a target value
+ [Arguments] ${target_ctr_value}
+ ${resp}= Run Process ${CLI_DRSIM_CTR_PUBLISHED_FILES} shell=yes
+ Should Be Equal As Strings ${resp.stdout} ${target_ctr_value}
+
+DR Redir Sim Downloaded Volume Equal
+ [Documentation] Verify that the size of the downloaded data volume is equal to a target value
+ [Arguments] ${target_ctr_value}
+ ${resp}= Run Process ${CLI_DR_REDIR_SIM_DOWNLOADED_VOLUME} shell=yes
Should Be Equal As Strings ${resp.stdout} ${target_ctr_value} \ No newline at end of file