Tempest Fix for Gate

Note that the change under utils.py results in a failure
when trying to run the tempests via regular methods e.g. nosetests
If this change will hold in gate, more changes to the tempest_tests
dir will be needed. For now, run tempests using testr:
From within  /opt/stack/tempest: 'testr run vitrage_tempest_tests'

Change-Id: I2fdb5f719db3b08b87fc3ef9610ab9357fb3545f
This commit is contained in:
Noam Bloom 2016-05-16 13:34:21 +03:00
parent d28be58b3d
commit 788d07ef36
3 changed files with 65 additions and 12 deletions

View File

@ -16,19 +16,68 @@
[identity]
username = demo
# Username to use for Nova API requests. (string value)
# This option is deprecated for removal.
# Its value may be silently ignored in the future.
username = admin
# Project name to use for Nova API requests. (string value)
# Deprecated group/name - [DEFAULT]/tenant_name
# This option is deprecated for removal.
# Its value may be silently ignored in the future.
project_name = admin
# Role required to administrate keystone. (string value)
admin_role = admin
# API key to use when authenticating. (string value)
# This option is deprecated for removal.
# Its value may be silently ignored in the future.
password = password
tenant_name = demo
domain_name = default
admin_username = admin
admin_password = password
admin_domain_name = default
admin_tenant_name = admin
use_ssl = False
auth_version = v3
# The identity region name to use. Also used as the other services'
# region name unless they are set explicitly. If no such region is
# found in the service catalog, the first found one is used. (string
# value)
region = RegionOne
# Identity API version to be used for authentication for API tests.
# (string value)
auth_version = v2
# Full URI of the OpenStack Identity API (Keystone), v2 (string value)
uri = http://127.0.0.1:5000/v2.0/
# Full URI of the OpenStack Identity API (Keystone), v3 (string value)
uri_v3 = http://127.0.0.1:35357/v3/
[auth]
use_dynamic_credentials = true
# Allows test cases to create/destroy projects and users. This option
# requires that OpenStack Identity API admin credentials are known. If
# false, isolated test cases and parallel execution, can still be
# achieved configuring a list of test accounts (boolean value)
# Deprecated group/name - [auth]/allow_tenant_isolation
# Deprecated group/name - [compute]/allow_tenant_isolation
# Deprecated group/name - [orchestration]/allow_tenant_isolation
use_dynamic_credentials = true
# Username for an administrative user. This is needed for
# authenticating requests made by project isolation to create users
# and projects (string value)
# Deprecated group/name - [identity]/admin_username
admin_username = admin
# Project name to use for an administrative user. This is needed for
# authenticating requests made by project isolation to create users
# and projects (string value)
# Deprecated group/name - [auth]/admin_tenant_name
# Deprecated group/name - [identity]/admin_tenant_name
admin_project_name = admin
# Password to use for an administrative user. This is needed for
# authenticating requests made by project isolation to create users
# and projects (string value)
# Deprecated group/name - [identity]/admin_password
admin_password = password

View File

@ -30,14 +30,18 @@ console_scripts =
oslo.config.opts =
vitrage = vitrage.opts:list_opts
plugins = vitrage.opts:plugins_opts
datasources = vitrage.opts:datasources_opts
keystoneauth1.plugin =
password-vitrage-legacy = vitrage.keystone_client:LegacyVitrageKeystoneLoader
tempest.test_plugins =
vitrage_tests = vitrage_tempest_tests.plugin:VitrageTempestPlugin
[files]
packages =
vitrage
vitrage_tempest_tests
[build_sphinx]
source-dir = doc/source

View File

@ -41,7 +41,7 @@ extra_log_level_defaults = [
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
logging.register_options(CONF)
# logging.register_options(CONF)
logging.setup(CONF, "vitrage")
logging.set_defaults(default_log_levels=extra_log_level_defaults)