]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
test_glance.py: Stub out _get_member_model as well.
authorAdam Gandelman <adamg@canonical.com>
Tue, 28 May 2013 21:34:30 +0000 (14:34 -0700)
committerAdam Gandelman <adamg@canonical.com>
Tue, 28 May 2013 23:11:04 +0000 (16:11 -0700)
commit1365ada3bcd8b9f7f4c1c7f7c9f158fc9ae867b3
treea8c6ee7db41d0a9052ff504f4c8d84ce4a941d5f
parentb782597725fcccd0a6a949057941380538898555
test_glance.py: Stub out _get_member_model as well.

glanceclient's v2 client needs to also have its _get_member_model()
stubbed out as well, to avoid attempts to reach 'fake_host' during
client instantiation.

Update: Only stub when _get_member_model() when required.

Change-Id: I943cbb017ccdbe4f6c994bc83cbefe8693f4672b
Fixes: bug #1185178.
cinder/tests/image/test_glance.py