masakari/masakari
Dinesh Bhor d4f982449e Use os-testr instead of testr
Masakari should use ostestr instead of testr. ostestr is more
powerful and provide much prettier output than testr. Other
projects like cinder, nova, glance, neutron etc already uses
the ostestr wrapper.

Using ostestr shows each tests execution separately because of
which it has shown errors related to "KeyError" in existing test
cases. The error looks like below:

"Exception in string format operation: KeyError: u'id'"

This happens if we don't pass keyword argument like "id" to
exception which we expect to be raised from test through
side_effect [1]. This doesn't lead to test failure but it
appears in test logs. This patch fixes such issues by passing
expected keyword arguments to exceptions.

[1] https://github.com/openstack/masakari/blob/master/masakari/tests/unit/api/openstack/ha/test_hosts.py#L364
Change-Id: I91603ea3dcf35fd20a00dcf477b93d612edca362
2017-07-05 17:37:52 +05:30
..
api Optimize the link address 2017-06-08 18:37:08 +07:00
cmd Remove log translations 2017-04-05 08:11:09 +00:00
common Add support for wsgi framework 2016-07-12 13:10:10 +05:30
compute Fix race condition between evacuation and its confirmation 2017-06-23 13:08:03 +05:30
conf Fix race condition between evacuation and its confirmation 2017-06-23 13:08:03 +05:30
db Optimize the link address 2017-06-08 18:37:08 +07:00
engine Merge "Fix race condition between evacuation and its confirmation" 2017-06-23 10:21:37 +00:00
ha Add business rules for host and failover_segment 2017-02-01 11:39:45 +05:30
hacking Remove log translations 2017-04-05 08:11:09 +00:00
objects Add business rules for host and failover_segment 2017-02-01 11:39:45 +05:30
tests Use os-testr instead of testr 2017-07-05 17:37:52 +05:30
__init__.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
config.py Add RPC layer for masakari 2016-10-07 13:16:26 +05:30
context.py Stop logging unnecessary warning on context create 2017-01-27 11:35:01 +05:30
exception.py Ignore instance recovery for 'paused' or 'rescued' instance 2017-04-20 12:02:12 +05:30
i18n.py Remove log translations 2017-04-05 08:11:09 +00:00
manager.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
policy.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
rpc.py Set access_policy for messaging's dispatcher 2017-02-09 12:17:15 +05:30
safe_utils.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
service.py Remove log translations 2017-04-05 08:11:09 +00:00
test.py Use dict.items() and dict.values() as per guidelines 2017-01-16 18:08:15 +05:30
utils.py Remove log translations 2017-04-05 08:11:09 +00:00
version.py Remove log translations 2017-04-05 08:11:09 +00:00
wsgi.py Remove log translations 2017-04-05 08:11:09 +00:00