From: Jerry Flood Date: Thu, 8 Jun 2017 15:52:40 +0000 (-0400) Subject: Add tenant name to keystone authentication X-Git-Tag: 1.0.0-Amsterdam~51 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=46a20553fed5b238da1b27e6bc051dc825d77598;p=testsuite.git Add tenant name to keystone authentication Issue: TEST-28 Change-Id: I939a40b3fc9ae09a2b73df0e77ecc2b47ac9a255 Signed-off-by: Jerry Flood --- diff --git a/robot/assets/templates/keystone_get_auth.template b/robot/assets/templates/keystone_get_auth.template index 255f8ffd..776ed49e 100644 --- a/robot/assets/templates/keystone_get_auth.template +++ b/robot/assets/templates/keystone_get_auth.template @@ -1,5 +1,6 @@ { "auth": { + "tenantName" : "${tenantName}", "passwordCredentials": { "username": "${username}", "password": "${password}" diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot index 6bf1d1e7..ef9eca36 100644 --- a/robot/resources/openstack/keystone_interface.robot +++ b/robot/resources/openstack/keystone_interface.robot @@ -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}