summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-07-25 15:10:09 -0400
committerMarco Platania <platania@research.att.com>2018-07-25 15:10:09 -0400
commitbf2a3eed56d279f007d3d198013c6440f14979c0 (patch)
tree86146400bf05a5dd4012cdea6ce970ffb24bd1a2
parentca5e32e9c0dfab04397aee554b3a61c21b21ca0d (diff)
Add support to IPV4-OAM-ADDRESS to heatbridge
Change-Id: I6f76e916e81d4f80c783d87d09f33dbf710da3fd Issue-ID: INT-602 Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r--robot/resources/heatbridge.robot12
-rw-r--r--robot/testsuites/demo.robot2
2 files changed, 8 insertions, 6 deletions
diff --git a/robot/resources/heatbridge.robot b/robot/resources/heatbridge.robot
index 816d22d4..69f55e16 100644
--- a/robot/resources/heatbridge.robot
+++ b/robot/resources/heatbridge.robot
@@ -31,14 +31,15 @@ Execute Heatbridge
[Documentation] Run the Heatbridge against the stack to generate the bulkadd message
... Execute the build add
... Validate the add results by running the named query
- [Arguments] ${stack_name} ${service_instance_id} ${service}
+ [Arguments] ${stack_name} ${service_instance_id} ${service} ${ipv4_oam_address}
Return From Keyword If '${service}' == 'vVG'
Run Openstack Auth Request auth
${stack_info}= Wait for Stack to Be Deployed auth ${stack_name}
${stack_id}= Get From Dictionary ${stack_info} id
${tenant_id}= Get From Dictionary ${stack_info} OS::project_id
${vnf_id}= Get From Dictionary ${stack_info} vnf_id
- Run Set VNF ProvStatus ${vnf_id} PROV Active
+ ${ipv4_vnf_address}= Get From Dictionary ${stack_info} ${ipv4_oam_address}
+ Run Set VNF Params ${vnf_id} ${ipv4_vnf_address} PROV Active
${url} ${path}= Get Keystone Url And Path
${openstack_identity_url}= Catenate ${url}${path}
${region}= Get Openstack Region
@@ -72,14 +73,15 @@ Run Vserver Query
Should Be Equal As Strings ${resp.status_code} 200
-Run Set VNF ProvStatus
- [Documentation] Run A&A GET and PUT to set prov-status
- [Arguments] ${vnf_id} ${prov_status}=PROV ${orch_status}=Active
+Run Set VNF Params
+ [Documentation] Run A&A GET and PUT to set prov-status, orchestration status, and ipv4-oam-address
+ [Arguments] ${vnf_id} ${ipv4_vnf_address} ${prov_status}=PROV ${orch_status}=Active
${payload}= Run Get Generic VNF by VnfId ${vnf_id}
#${payload_json}= evaluate json.loads('''${payload}''') json
set to dictionary ${payload} prov-status ${prov_status}
set to dictionary ${payload} orchestration-status ${orch_status}
+ set to dictionary ${payload} ipv4-oam-address ${ipv4_vnf_address}
${payload_string}= evaluate json.dumps(${payload}) json
${put_resp}= Run A&AI Put Request ${VERSIONED_INDEX_PATH}/network/generic-vnfs/generic-vnf/${vnf_id} ${payload_string}
diff --git a/robot/testsuites/demo.robot b/robot/testsuites/demo.robot
index e7c47f43..f3c5847b 100644
--- a/robot/testsuites/demo.robot
+++ b/robot/testsuites/demo.robot
@@ -57,5 +57,5 @@ Run Heatbridge
[Documentation]
... Try to run heatbridge
[Tags] heatbridge
- Execute Heatbridge ${HB_STACK} ${HB_SERVICE_INSTANCE_ID} ${HB_SERVICE}
+ Execute Heatbridge ${HB_STACK} ${HB_SERVICE_INSTANCE_ID} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}