

def delete_node(self, node_id):
    'Delete node method works only with fake driver.\n\n        :param node_id: node uuid\n        '
    node_list = self.list_nodes()
    if utils.get_object(node_list, node_id):
        node_show = self.show_node(node_id)
        if (node_show['provision_state'] != 'available'):
            self.ironic('node-set-provision-state', params='{0} deleted'.format(node_id))
        if (node_show['power_state'] not in ('None', 'off')):
            self.ironic('node-set-power-state', params='{0} off'.format(node_list_uuid))
        self.ironic('node-delete', params=node_id)
        node_list_uuid = self.get_nodes_uuids_from_node_list()
        if (node_id in node_list_uuid):
            self.fail('Ironic node {0} has not been deleted!'.format(node_id))

dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/tests/functional/base.py FunctionalTestBase.delete_node/VarMisuse@101/204 `node_id`->`node_list_uuid`