Add tenant name to keystone authentication 75/4875/1
authorJerry Flood <jf9860@att.com>
Thu, 8 Jun 2017 15:52:40 +0000 (11:52 -0400)
committerJerry Flood <jf9860@att.com>
Thu, 8 Jun 2017 15:53:00 +0000 (11:53 -0400)
Issue: TEST-28
Change-Id: I939a40b3fc9ae09a2b73df0e77ecc2b47ac9a255
Signed-off-by: Jerry Flood <jf9860@att.com>
robot/assets/templates/keystone_get_auth.template
robot/resources/openstack/keystone_interface.robot

index 255f8ff..776ed49 100644 (file)
@@ -1,5 +1,6 @@
 {
   "auth": {
+    "tenantName" : "${tenantName}",
     "passwordCredentials": {
       "username": "${username}",
       "password": "${password}"
index 6bf1d1e..ef9eca3 100644 (file)
@@ -23,7 +23,7 @@ Run Openstack Auth Request
     ${session}=    Create Session      keystone        ${GLOBAL_OPENSTACK_KEYSTONE_SERVER}    verify=True
     ${uuid}=    Generate UUID
     ${data_template}=    OperatingSystem.Get File    ${OPENSTACK_KEYSTONE_AUTH_BODY_FILE}
-    ${arguments}=    Create Dictionary    username=${username}    password=${password}
+    ${arguments}=    Create Dictionary    username=${username}    password=${password}   tenantName=${GLOBAL_OPENSTACK_TENANT_NAME}
     ${data}=   Fill JSON Template    ${data_template}    ${arguments}
     ${data_path}=    Catenate    ${OPENSTACK_KEYSTONE_API_VERSION}${OPENSTACK_KEYSTONE_AUTH_PATH}
     ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}