aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/heatbridge.robot
diff options
context:
space:
mode:
authorAh <Ashwini.Ah@arris.com>2018-10-04 11:56:36 +0530
committerAh <Ashwini.Ah@arris.com>2018-10-04 11:57:27 +0530
commit2f3b84630ab4176c95f7d8a1cb6cc1fedb28ef54 (patch)
tree98002e689df48f36f0102d8bbec39b52700bc25a /robot/resources/heatbridge.robot
parenta31243463c77f5cae6350ccf625b2f5cb9ca8855 (diff)
Programmatically determining keystone api version
Issue-ID: TEST-39 Change-Id: If000bd3aa02447b9cab195bf48fc8fa050766514 Signed-off-by: Ah <Ashwini.Ah@arris.com>
Diffstat (limited to 'robot/resources/heatbridge.robot')
-rw-r--r--robot/resources/heatbridge.robot7
1 files changed, 5 insertions, 2 deletions
diff --git a/robot/resources/heatbridge.robot b/robot/resources/heatbridge.robot
index 8e8d6a0e..5182d6b2 100644
--- a/robot/resources/heatbridge.robot
+++ b/robot/resources/heatbridge.robot
@@ -41,11 +41,14 @@ Execute Heatbridge
${KeyIsPresent}= Run Keyword And Return Status Dictionary Should Contain Key ${stack_info} ${ipv4_oam_address}
${ipv4_vnf_address}= Run Keyword If ${KeyIsPresent} 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
+ ${keystone_api_version}= Run Keyword If '${GLOBAL_INJECTED_OPENSTACK_KEYSTONE_API_VERSION}'=='' Get KeystoneAPIVersion
+ ... ELSE Set Variable ${GLOBAL_INJECTED_OPENSTACK_KEYSTONE_API_VERSION}
+ ${url} ${path}= Get Keystone Url And Path ${keystone_api_version}
${openstack_identity_url}= Catenate ${url}${path}
${region}= Get Openstack Region
${user} ${pass}= Get Openstack Credentials
- Init Bridge ${openstack_identity_url} ${user} ${pass} ${tenant_id} ${region} ${GLOBAL_AAI_CLOUD_OWNER}
+ Run Keyword If '${keystone_api_version}'=='v2.0' Init Bridge ${openstack_identity_url} ${user} ${pass} ${tenant_id} ${region} ${GLOBAL_AAI_CLOUD_OWNER}
+ ... ELSE Init Bridge ${openstack_identity_url} ${user} ${pass} ${tenant_id} ${region} ${GLOBAL_AAI_CLOUD_OWNER} ${GLOBAL_INJECTED_OPENSTACK_DOMAIN_ID} ${GLOBAL_INJECTED_OPENSTACK_PROJECT_NAME}
${request}= Bridge Data ${stack_id}
Log ${request}
${resp}= Run A&AI Put Request ${VERSIONED_INDEX_PATH}${MULTIPART_PATH} ${request}