summaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/ccvpn-connectivities.robot
diff options
context:
space:
mode:
authorKeong Lim <keong.lim@huawei.com>2019-03-19 15:44:35 +1100
committerKeong Lim <keong.lim@huawei.com>2019-03-19 15:46:49 +1100
commiteff1eab948cd5624477e56c65db01104f87e7c96 (patch)
tree6c4b3a809e6e19d65f08a0a3a3c25b4b947ad4c1 /robot/resources/aai/ccvpn-connectivities.robot
parent2c0558d9c185638a071666e459bab50dd010f0ed (diff)
AAI-2208 Robot tests for CCVPN and relationships
Add relationship to relationship-list Add vpn-binding keywords Update connectivity keywords Update test cases to relate connectivity to vpn-binding and vice-versa Change-Id: Id23f4603f0df47e737adf481d8b6308a64936ba0 Issue-ID: AAI-2208 Signed-off-by: Keong Lim <keong.lim@huawei.com>
Diffstat (limited to 'robot/resources/aai/ccvpn-connectivities.robot')
-rw-r--r--robot/resources/aai/ccvpn-connectivities.robot25
1 files changed, 25 insertions, 0 deletions
diff --git a/robot/resources/aai/ccvpn-connectivities.robot b/robot/resources/aai/ccvpn-connectivities.robot
index e4d7bd51..3f4dc0b2 100644
--- a/robot/resources/aai/ccvpn-connectivities.robot
+++ b/robot/resources/aai/ccvpn-connectivities.robot
@@ -4,6 +4,7 @@ Documentation Operations on connectivities in AAI for CCVPN use case, using
Resource ../json_templater.robot
Resource aai_interface.robot
Resource api_version_properties.robot
+Resource add-relationship-list.robot
Library OperatingSystem
Library Collections
@@ -53,6 +54,13 @@ Get Connectivity
Should Be Equal As Strings ${resp.status_code} 200
[Return] ${resp.json()}
+Get Valid Connectivity URL
+ [Documentation] Return Valid Connectivity URL
+ [Arguments] ${connectivity_id}
+ ${resp}= Run A&AI Get Request ${AAI_CONN_API_IMPL_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id}
+ Should Be Equal As Strings ${resp.status_code} 200
+ [Return] ${AAI_CONN_API_IMPL_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id}
+
Get Nodes Query Connectivity
[Documentation] Return Nodes query Connectivity
[Arguments] ${connectivity_id}
@@ -78,3 +86,20 @@ Confirm API Not Implemented Connectivity
${resp}= Run A&AI Get Request ${AAI_CONN_API_NA_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id}
Should Be Equal As Strings ${resp.status_code} 400
+Add Connectivity Relationship
+ [Documentation] Adds Relationship to existing Connectivity in AAI
+ [Arguments] ${connectivity_id} ${related_class_name} ${related_object_url}
+ ${put_resp}= Add Relationship ${AAI_CONN_API_IMPL_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id} ${related_class_name} ${related_object_url}
+
+Get Connectivity RelationshipList
+ [Documentation] Return relationship-list from Connectivity
+ [Arguments] ${connectivity_id}
+ ${resp}= Get RelationshipList ${AAI_CONN_API_IMPL_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id}
+ [Return] ${resp}
+
+Get Connectivity With RelationshipList
+ [Documentation] Return Connectivity with relationship-list
+ [Arguments] ${connectivity_id}
+ ${resp}= Get Object With Depth ${AAI_CONN_API_IMPL_INDEX_PATH}${AAI_CONN_ROOT_PATH}/${connectivity_id}
+ [Return] ${resp}
+