~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/image/fake.py

  • Committer: Tarmac
  • Author(s): Brian Waldon
  • Date: 2011-09-13 15:23:15 UTC
  • mfrom: (1517.2.17 image-service-cleanup)
  • Revision ID: tarmac-20110913152315-a21jg0bvjjlyga82
- remove translation of non-recognized attributes to user metadata, now just ignored
- ensure all keys are defined in image dictionaries, defaulting to None if glance client doesn't provide one
- remove BaseImageService
- reorganize some GlanceImageService tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from nova import exception
25
25
from nova import flags
26
26
from nova import log as logging
27
 
from nova.image import service
28
27
 
29
28
 
30
29
LOG = logging.getLogger('nova.image.fake')
33
32
FLAGS = flags.FLAGS
34
33
 
35
34
 
36
 
class _FakeImageService(service.BaseImageService):
 
35
class _FakeImageService(object):
37
36
    """Mock (fake) image service for unit testing."""
38
37
 
39
38
    def __init__(self):