test_heatclient fix mocking with latest keystone

The tests break with latest (0.10.0) keystoneclient, so replace
the mocked domain with a MockAnything object

Change-Id: Icd460e554656e11ef8c4bcda62c1363b7eed8a68
Closes-Bug: #1347319
This commit is contained in:
Steven Hardy 2014-07-23 02:43:43 +01:00
parent 150564431c
commit e81ba6f246
1 changed files with 3 additions and 4 deletions

View File

@ -1368,11 +1368,10 @@ class KeystoneClientTestDomainName(KeystoneClientTest):
cfg.CONF.clear_override('stack_user_domain_name')
def _stub_domain_admin_client_domain_get(self):
dummy_domain = self.m.CreateMockAnything()
dummy_domain.id = 'adomain123'
self.mock_ks_v3_client_domain_mngr.get('adomain123').AndReturn(
kc_v3_domains.Domain(
self.mock_ks_v3_client_domain_mngr,
{'id': 'adomain123'},
loaded=True))
dummy_domain)
def _stub_domain_admin_client(self, auth_ok=True):
kc_v3.Client(