aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates/cmpv2.robot
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2021-02-17 08:27:06 +0100
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2021-02-17 08:27:06 +0100
commitc6232933e3c44de7dba7f24cd66ee944816b2941 (patch)
tree5db1d2f4f1a693488647551ec744a91f3bd457e9 /robot/resources/test_templates/cmpv2.robot
parent34e093fcdef65c1bfed921a4e898bcec362bd145 (diff)
Fix CMPv2 test cases after pnf-simulator changes
PNF Simulator logging has been extended, now it forwards exception from connection to VES collector directly to pnf simulator endpoint Issue-ID: INT-1804 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: I653380c72b9fb02c50aa3b99a67787edfecbdc4a
Diffstat (limited to 'robot/resources/test_templates/cmpv2.robot')
-rw-r--r--robot/resources/test_templates/cmpv2.robot4
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/resources/test_templates/cmpv2.robot b/robot/resources/test_templates/cmpv2.robot
index 607a4f0b..bc99ec29 100644
--- a/robot/resources/test_templates/cmpv2.robot
+++ b/robot/resources/test_templates/cmpv2.robot
@@ -22,7 +22,7 @@ ${users} ${EXECDIR}/robot/assets/cmpv2/mongo-users.json
*** Keywords ***
Pnf simulator send single VES event
- [Arguments] ${event} ${ves_host} ${ves_port} ${pnf_sim_host} ${pnf_sim_port}
+ [Arguments] ${event} ${ves_host} ${ves_port} ${pnf_sim_host} ${pnf_sim_port} ${http_reposnse_code}=202
${pnf_sim_endpoint}= Set Variable http://${pnf_sim_host}:${pnf_sim_port}
${ves_url}= Set Variable ${GLOBAL_DCAE_VES_HTTPS_PROTOCOL}://${ves_host}:${ves_port}/${VES_data_path}
${single_event}= Create Dictionary event=${event} ves_url=${ves_url}
@@ -33,7 +33,7 @@ Pnf simulator send single VES event
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${post_resp}= Post Request pnf_sim ${single_event_data_path} data=${data} headers=${headers}
Log PNF registration request ${data}
- Should Be Equal As Strings ${post_resp.status_code} 202
+ Should Be Equal As Strings ${post_resp.status_code} ${http_reposnse_code}
Log VES has accepted event with status code ${post_resp.status_code}