From b1dc846170e67ce63ef78d9ef86fe287cb97c9a1 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 1 Jun 2012 17:19:54 -0400 Subject: add unit tests for new virt driver loader Continues work on bp:virt-driver-cleanup Add unit tests to test the loading of the new and old style loaders Fix libvirt driver to make read_only optional on the constructor Fix fake driver to correctly have the kwarg be read_only Add VirtDriverNotFound exception to make get_connection failures more explicit Factor out fake backend replacement (currently just libvirt) to a seperate super class Remove touching FLAGS and use self.flags instead Change-Id: I089d0dd9c97f87478b922f4c3e26c45891eaf6cc --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index 940a5a410..e5ae3d267 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -429,6 +429,10 @@ class NotFound(NovaException): code = 404 +class VirtDriverNotFound(NotFound): + message = _("Could not find driver for connection_type %(name)s") + + class VolumeNotFound(NotFound): message = _("Volume %(volume_id)s could not be found.") -- cgit