Rename and enable 'isolate' test case
There was a test case provided for the 'isolate' policy, formerly known as 'separate', but it was disabled due to missing support for this feature. Because support has now been added we can enable this test. Change-Id: If8a96b0016ea05260dc598334ba434d9e4045ecf Partial-Bug: #1535812
This commit is contained in:
parent
76bd9162cb
commit
a0bd839e9e
|
@ -160,18 +160,17 @@ class FlavorsAdminTestJSON(base.BaseV2ComputeAdminTest):
|
|||
flavor = self._create_flavor(cpu_policy='shared')
|
||||
self._create_server(flavor)
|
||||
|
||||
@decorators.skip_because(bug='0')
|
||||
def test_cpu_dedicated_threads_separate(self):
|
||||
def test_cpu_dedicated_threads_isolate(self):
|
||||
"""Ensure vCPUs *are not* placed on thread siblings."""
|
||||
flavor = self._create_flavor(
|
||||
cpu_policy='dedicated', cpu_threads_policy='separate')
|
||||
cpu_policy='dedicated', cpu_threads_policy='isolate')
|
||||
server = self._create_server(flavor)
|
||||
cpu_pinnings = self._get_cpu_pinning(server)
|
||||
core_mappings = get_core_mappings()
|
||||
|
||||
self.assertEqual(len(cpu_pinnings), self.vcpus)
|
||||
|
||||
# if the 'prefer' policy is used, then when one thread is used
|
||||
# if the 'isolate' policy is used, then when one thread is used
|
||||
# the other should never be used.
|
||||
for vcore in set(cpu_pinnings):
|
||||
pcpu = cpu_pinnings[vcore]
|
||||
|
|
Loading…
Reference in New Issue