Some of the test cases in tempest related to quota use
admin_tenant_name, ideally it should use admin_tenant_id.
As tempest.conf file does not contains admin_tenant_id
it should also be updated. tempest.conf file is generated
by devstack while setup of openstack, changes should be made
in devstack so as to put admin_tenant_id in tempest conf file.
Change-Id: I62baf5b1e21ebf8d3b511624c54741015b304955
Closes-Bug: #1321624
| ... | ... |
@@ -148,6 +148,7 @@ function configure_tempest {
|
| 148 | 148 |
TEMPEST_TENANT_NAME=${TEMPEST_TENANT_NAME:-demo}
|
| 149 | 149 |
ALT_USERNAME=${ALT_USERNAME:-alt_demo}
|
| 150 | 150 |
ALT_TENANT_NAME=${ALT_TENANT_NAME:-alt_demo}
|
| 151 |
+ ADMIN_TENANT_ID=$(openstack project list | awk "/ admin / { print \$2 }")
|
|
| 151 | 152 |
|
| 152 | 153 |
# If the ``DEFAULT_INSTANCE_TYPE`` not declared, use the new behavior |
| 153 | 154 |
# Tempest creates instane types for himself |
| ... | ... |
@@ -258,6 +259,7 @@ function configure_tempest {
|
| 258 | 258 |
iniset $TEMPEST_CONFIG identity admin_username $ADMIN_USERNAME |
| 259 | 259 |
iniset $TEMPEST_CONFIG identity admin_password "$password" |
| 260 | 260 |
iniset $TEMPEST_CONFIG identity admin_tenant_name $ADMIN_TENANT_NAME |
| 261 |
+ iniset $TEMPEST_CONFIG identity admin_tenant_id $ADMIN_TENANT_ID |
|
| 261 | 262 |
iniset $TEMPEST_CONFIG identity admin_domain_name $ADMIN_DOMAIN_NAME |
| 262 | 263 |
iniset $TEMPEST_CONFIG identity auth_version ${TEMPEST_AUTH_VERSION:-v2}
|
| 263 | 264 |
|