aboutsummaryrefslogtreecommitdiffstats
path: root/robot
diff options
context:
space:
mode:
authorkrzysztof kuzmicki <krzysztof.kuzmicki@nokia.com>2018-11-14 16:00:27 +0100
committerkrzysztof kuzmicki <krzysztof.kuzmicki@nokia.com>2018-11-14 16:00:27 +0100
commit75e0752e98d5ed0ce163cd726b8ec9aa9dee9e03 (patch)
tree1b078037b87a82dcb3198c7dea0485863813ade6 /robot
parent669f6b1adebd1d56703e644f5ab2d2f84bec0f4f (diff)
E2E PNF registration scenario fix
Issue-ID: INT-685 Change-Id: Id4c7755d63db96548da9989fd821b37a7b7a16c2 Signed-off-by: krzysztof kuzmicki <krzysztof.kuzmicki@nokia.com>
Diffstat (limited to 'robot')
-rw-r--r--robot/resources/test_templates/pnf_registration_without_SO_template.robot22
1 files changed, 14 insertions, 8 deletions
diff --git a/robot/resources/test_templates/pnf_registration_without_SO_template.robot b/robot/resources/test_templates/pnf_registration_without_SO_template.robot
index 19eef1cd..1241d698 100644
--- a/robot/resources/test_templates/pnf_registration_without_SO_template.robot
+++ b/robot/resources/test_templates/pnf_registration_without_SO_template.robot
@@ -56,14 +56,7 @@ Verify PNF integration request in A&AI
Verify PNF integration request in MR
[Documentation] Verify if PNF integration request entries are present in MR unauthenticated.PNF_READY/ topic
[Arguments] ${PNF_entry_dict}
- ${get_resp}= Run MR Get Request ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_PNF_PATH}
- Should Be Equal As Strings ${get_resp.status_code} 200
- ${json_resp_item}= Get From List ${get_resp.json()} 0
- ${json}= evaluate json.loads('${json_resp_item}') json
- Log JSON recieved from MR ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_PNF_PATH} endpoint ${json}
- Should Be Equal As Strings ${json["ipaddress-v4-oam"]} ${PNF_entry_dict.PNF_IPv4_address}
- Should Be Equal As Strings ${json["ipaddress-v6-oam"]} ${PNF_entry_dict.PNF_IPv6_address}
- Should Be Equal As Strings ${json["correlationId"]} ${PNF_entry_dict.correlation_id}
+ Wait Until Keyword Succeeds 10x 1s Query PNF MR entry ${PNF_entry_dict}
Log PNF integration request in MR has been verified and contains all necessary entries
Query PNF A&AI updated entry
@@ -78,6 +71,19 @@ Query PNF A&AI updated entry
Should Be Equal As Strings ${json_resp["pnf-name"]} ${PNF_entry_dict.correlation_id}
Log PNF integration request in A&AI has been verified and contains all necessary entries
+Query PNF MR entry
+ [Documentation] Query PNF MR updated entry
+ [Arguments] ${PNF_entry_dict}
+ ${get_resp}= Run MR Get Request ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_PNF_PATH}
+ Should Be Equal As Strings ${get_resp.status_code} 200
+ ${json_resp_item}= Get From List ${get_resp.json()} 0
+ ${json}= evaluate json.loads('${json_resp_item}') json
+ Log JSON recieved from MR ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_PNF_PATH} endpoint ${json}
+ Should Be Equal As Strings ${json["ipaddress-v4-oam"]} ${PNF_entry_dict.PNF_IPv4_address}
+ Should Be Equal As Strings ${json["ipaddress-v6-oam"]} ${PNF_entry_dict.PNF_IPv6_address}
+ Should Be Equal As Strings ${json["correlationId"]} ${PNF_entry_dict.correlation_id}
+ Log PNF integration request in MR has been verified and contains all necessary entries
+
Run VES HTTP Post Request
[Documentation] Runs a VES Post request
[Arguments] ${data}