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:
Andreas Scheuring
2016-12-20 16:22:49 +01:00
committed by preethipy
parent 00c646ab77
commit 1889605d5e
5 changed files with 19 additions and 18 deletions

View File

@@ -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,

View File

@@ -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')