
* Added check_service_status to determine the service availability and later on it will be used for all services. * Removed hardcoded values for swift services * As swift was disabled earlier, SwiftOperator was not getting used and it is not present in the CI Job, let's use member role for the same. * Set operator_role default to admin if admin credential is available otherwise, set operator_role to ResellerAdmin * Do not fail if a conflict exist in roles names Story: 2001253 Task: 5783 Co-Authored-By: Arx Cruz <arxcruz@redhat.com> Depends-On: https://review.openstack.org/#/c/576472/ Closes-Bug: 1776729 Change-Id: Ie1e9d8e98fde460f9270c2799f971ea017d10d84
21 lines
470 B
Django/Jinja
21 lines
470 B
Django/Jinja
# Script to generate tempest.conf
|
|
set -ex
|
|
export PATH=$PATH:/usr/local/sbin:/usr/sbin
|
|
source {{ virtualenvs.tempestconf }}/bin/activate
|
|
{{ source_credentials_commands }}
|
|
printenv
|
|
discover-tempest-config \
|
|
--debug \
|
|
-v \
|
|
{% if user == "admin" %}
|
|
--create \
|
|
{% else %}
|
|
--non-admin \
|
|
{% endif %}
|
|
{% if test_demo_user %}
|
|
--test-accounts {{ test_accounts_file }} \
|
|
{% endif %}
|
|
identity.uri $OS_AUTH_URL \
|
|
auth.admin_password $OS_PASSWORD \
|
|
{{ aditional_tempestconf_params }}
|