In havana it was possible to do this though some tests that require admin are not skipped. On master you can't even do 'testr list-tests' without correct admin creds. This is because the OfficialClientManager tries to create network and object clients with admin credentials. I'm not sure of the best way to fix this. Here is the backtrace, generated from nose because testr gives you no information on import failures:
======================================================================
ERROR: Failure: Unauthorized (Could not find project, admi. (HTTP 401))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 32, in <module>
class TestServerBasicOps(manager.OfficialClientTest):
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 46, in TestServerBasicOps
scenario_utils = test_utils.InputScenarioUtils()
File "/opt/stack/tempest/tempest/common/utils/misc.py", line 23, in getinstance
instances[cls] = cls()
File "/opt/stack/tempest/tempest/common/utils/test_utils.py", line 100, in __init__
CONF.identity.tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 482, in __init__
tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 542, in _get_object_storage_client
CONF.identity.admin_tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 607, in _get_identity_client
insecure=dscv)
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 144, in __init__
self.authenticate()
File "/opt/stack/python-keystoneclient/keystoneclient/httpclient.py", line 383, in authenticate
In havana it was possible to do this though some tests that require admin are not skipped. On master you can't even do 'testr list-tests' without correct admin creds. This is because the OfficialClientM anager tries to create network and object clients with admin credentials. I'm not sure of the best way to fix this. Here is the backtrace, generated from nose because testr gives you no information on import failures:
nosetests -v tempest/ scenario/ test_server_ basic_ops. py
Failure: Unauthorized (Could not find project, admi. (HTTP 401)) ... ERROR
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 7/dist- packages/ nose/loader. py", line 390, in loadTestsFromName python2. 7/dist- packages/ nose/importer. py", line 39, in importFromPath Dir(dir_ path, fqname) python2. 7/dist- packages/ nose/importer. py", line 86, in importFromDir part_fqname, fh, filename, desc) tempest/ tempest/ scenario/ test_server_ basic_ops. py", line 32, in <module> Ops(manager. OfficialClientT est): tempest/ tempest/ scenario/ test_server_ basic_ops. py", line 46, in TestServerBasicOps InputScenarioUt ils() tempest/ tempest/ common/ utils/misc. py", line 23, in getinstance tempest/ tempest/ common/ utils/test_ utils.py" , line 100, in __init__ identity. tenant_ name) tempest/ tempest/ clients. py", line 482, in __init__ tempest/ tempest/ clients. py", line 542, in _get_object_ storage_ client identity. admin_tenant_ name) tempest/ tempest/ clients. py", line 607, in _get_identity_ client python- keystoneclient/ keystoneclient/ v2_0/client. py", line 144, in __init__ authenticate( ) python- keystoneclient/ keystoneclient/ httpclient. py", line 383, in authenticate
ERROR: Failure: Unauthorized (Could not find project, admi. (HTTP 401))
-------
Traceback (most recent call last):
File "/usr/lib/
addr.filename, addr.module)
File "/usr/lib/
return self.importFrom
File "/usr/lib/
mod = load_module(
File "/opt/stack/
class TestServerBasic
File "/opt/stack/
scenario_utils = test_utils.
File "/opt/stack/
instances[cls] = cls()
File "/opt/stack/
CONF.
File "/opt/stack/
tenant_name)
File "/opt/stack/
CONF.
File "/opt/stack/
insecure=dscv)
File "/opt/stack/
self.
File "/opt/stack/