nova/nova/tests
Matt Riedemann 2b57b3d867 virt: handle unicode when logging LifecycleEvents
The repr on the LifecycleEvent object includes a translated
name, which blows up with a UnicodeEncodeError in the emit_event
method because of str(event) and non-English locales.

This change uses six.text_type on the object rather than str
and adds a test to recreate the bug and show the fix.

Change-Id: I9b7b52739883043b7aae9759f500e5e21cfe8b30
Closes-Bug: #1621392
2016-09-08 11:14:52 -04:00
..
functional Merge "[placement] Allow inventory to violate allocations" 2016-09-07 22:36:12 +00:00
live_migration/hooks Skipping test_volume_backed_live_migration for live_migration job 2016-08-11 10:03:16 +00:00
unit virt: handle unicode when logging LifecycleEvents 2016-09-08 11:14:52 -04:00
__init__.py
fixtures.py Use StableObjectJsonFixture from o.vo 2016-08-29 11:52:10 -04:00
uuidsentinel.py Add uuidsentinel test module 2015-12-14 11:28:55 +01:00