summaryrefslogtreecommitdiffstats
path: root/robot
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-05-31 11:09:14 -0400
committerMarco Platania <platania@research.att.com>2018-05-31 11:11:49 -0400
commitf44e64388ee1d21b18904d6a2d6815e6f3017d9e (patch)
tree20555b4afc605a3993d55ca6759608f8c0a22cbd /robot
parentf940ee98c0478e40a0d281ffaa5074b85f4ca6ce (diff)
Set orchestration-status to Active
- Update heatbridge.robot to set up orchestration-status to Active after a VNF is created Change-Id: I116e94047296bd57ab543bbf4c1ecf549ade32cd Issue-ID: TEST-98 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'robot')
-rw-r--r--robot/resources/heatbridge.robot5
1 files changed, 3 insertions, 2 deletions
diff --git a/robot/resources/heatbridge.robot b/robot/resources/heatbridge.robot
index b881da8f..816d22d4 100644
--- a/robot/resources/heatbridge.robot
+++ b/robot/resources/heatbridge.robot
@@ -38,7 +38,7 @@ Execute Heatbridge
${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
+ Run Set VNF ProvStatus ${vnf_id} PROV Active
${url} ${path}= Get Keystone Url And Path
${openstack_identity_url}= Catenate ${url}${path}
${region}= Get Openstack Region
@@ -74,11 +74,12 @@ Run Vserver Query
Run Set VNF ProvStatus
[Documentation] Run A&A GET and PUT to set prov-status
- [Arguments] ${vnf_id} ${prov_status}=PROV
+ [Arguments] ${vnf_id} ${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}
${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}