hard to understand test failure if osprofiler is not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
New
|
Undecided
|
Unassigned |
Bug Description
novaclient uses try_import to import osprofiler.profiler and osprofiler.web:
novaclient/
novaclient/
novaclient/
Unfortunately two tests in novaclient/
Failed 2 tests - output below:
===
novaclient.
---
Captured traceback:
~~~
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **kwargs)
File "/home/
File "/home/
File "/home/
self.cs = client.Client(
File "/home/
KeyError: 'profile'
novaclient.
---
Captured traceback:
~~~
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **kwargs)
File "/home/
File "/home/
File "/home/
self.cs = client.Client(
File "/home/
KeyError: 'profile'
Please adjust the tests to either check if osprofiler.* is available and loaded, or at least add a check if kwargs['profile'] is set - and print a useful error message if it isn't.