Add ClearTPMOnDelete attribute in RSD 2.3 Node
Change-Id: Ibab30e5be8e3e71e905bba94b7e309a22cf95652
This commit is contained in:
parent
df2dca3897
commit
bc8655f501
@ -50,6 +50,11 @@ class NodeActionsField(v2_1_node.NodeActionsField):
|
||||
|
||||
class Node(v2_1_node.Node):
|
||||
|
||||
clear_tpm_on_delete = base.Field('ClearTPMOnDelete', adapter=bool)
|
||||
"""This is used to specify if TPM module should be cleared on composed node
|
||||
DELETE request
|
||||
"""
|
||||
|
||||
_actions = NodeActionsField('Actions', required=True)
|
||||
|
||||
def _get_attach_endpoint_action_element(self):
|
||||
|
@ -44,6 +44,7 @@
|
||||
"UEFI"]
|
||||
},
|
||||
"Oem": {},
|
||||
"ClearTPMOnDelete": true,
|
||||
"Links": {
|
||||
"ComputerSystem": {
|
||||
"@odata.id": "/redfish/v1/Systems/System1"
|
||||
|
@ -36,6 +36,10 @@ class NodeTestCase(testtools.TestCase):
|
||||
self.conn, '/redfish/v1/Nodes/Node1',
|
||||
redfish_version='1.0.2')
|
||||
|
||||
def test__parse_attributes(self):
|
||||
self.node_inst._parse_attributes()
|
||||
self.assertEqual(True, self.node_inst.clear_tpm_on_delete)
|
||||
|
||||
def test__get_attach_endpoint_action_element(self):
|
||||
with open('rsd_lib/tests/unit/json_samples/v2_3/'
|
||||
'attach_action_info.json', 'r') as f:
|
||||
|
Loading…
x
Reference in New Issue
Block a user