nova/nova/tests/unit/virt
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
..
disk libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
hyperv Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
libvirt libvirt: improve logging for shared storage check 2016-09-07 14:04:34 -04:00
vmwareapi Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
xenapi Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
__init__.py
fakelibosinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_block_device.py Fix invalid uuid warnings in virt testcases 2016-06-02 18:24:12 +05:30
test_configdrive.py force_config_drive: StrOpt -> BoolOpt 2015-11-11 19:59:22 +00:00
test_diagnostics.py
test_driver.py virt: refactor method compute_driver_matches 2016-03-10 00:27:13 +08:00
test_events.py
test_fake.py fake: fix public API signatures to match virt driver 2015-02-19 11:44:00 +00:00
test_firewall.py Add unit tests for nova.virt.firewall.IpTablesFirewallDriver (Part 3) 2016-08-11 17:40:37 +00:00
test_hardware.py virt/hardware: Check for threads when "required" 2016-08-09 18:14:25 +00:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py Remove unused arguments to images.fetch and images.fetch_to_raw 2016-05-13 15:27:21 +01:00
test_osinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_virt.py Replace stubs.Set with stub_out (os) 2016-01-14 22:35:53 -05:00
test_virt_drivers.py virt: handle unicode when logging LifecycleEvents 2016-09-08 11:14:52 -04:00
test_volumeutils.py Switch to using os-brick 2015-07-27 10:47:22 -07:00