Fixing hostname vs cpcsubset_name
+ modified hostname to cpcsubset_name + removed all the host and hostname variables Closes-Bug: #1651464 Change-Id: Ia3c1f9db3a3eaa267268cb7e3e2251991ee68603
This commit is contained in:
committed by
preethipy
parent
00c646ab77
commit
1889605d5e
@@ -30,7 +30,7 @@ def getFakeCPC(cpcmanager):
|
||||
|
||||
def getFakeCPCconf():
|
||||
|
||||
conf = {'hostname': "S12subset",
|
||||
conf = {'cpcsubset_name': "S12subset",
|
||||
'cpc_uuid': "1232132",
|
||||
'max_processors': 10,
|
||||
'max_memory_mb': 200,
|
||||
|
||||
@@ -62,5 +62,6 @@ class HostTestCase(TestCase):
|
||||
|
||||
host1 = host.Host(conf, cpc, client)
|
||||
host_properties = host1.properties
|
||||
self.assertEqual(host_properties['hypervisor_hostname'], 'S12subset')
|
||||
self.assertEqual(host_properties['hypervisor_hostname'],
|
||||
'S12subset')
|
||||
self.assertEqual(host_properties['cpc_name'], 'fakecpc')
|
||||
|
||||
Reference in New Issue
Block a user