Merge "Add MEM_ENCRYPTION_CONTEXT resource class"
This commit is contained in:
@@ -64,6 +64,10 @@ STANDARDS = [
|
||||
# guest. A dedicated CPU is a physical processor that has been marked
|
||||
# to be used for a single guest only
|
||||
'PCPU',
|
||||
# Resource class representing the number of guests a compute node can
|
||||
# host with memory encrypted at the hardware level. See
|
||||
# http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html
|
||||
'MEM_ENCRYPTION_CONTEXT',
|
||||
]
|
||||
|
||||
# Namespace used for custom resource classes
|
||||
|
@@ -44,8 +44,8 @@ class TestOs_resource_classes(base.TestCase):
|
||||
of the STANDARDS list, otherwise database ids will get confused
|
||||
in the placement service.
|
||||
"""
|
||||
expected_last_class = rc.PCPU
|
||||
expected_length = 15
|
||||
expected_last_class = rc.MEM_ENCRYPTION_CONTEXT
|
||||
expected_length = 16
|
||||
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
||||
self.assertEqual(expected_length, len(rc.STANDARDS))
|
||||
|
||||
|
Reference in New Issue
Block a user