def test__check_existing_nodes_new_mac(self): self.ironic.port.list.return_value = [] introspection_data = {'macs': self.macs} node_driver_info = {} discovery._check_existing_nodes( introspection_data, node_driver_info, self.ironic)
def test__check_existing_nodes_new_mac(self): self.ironic.port.list.return_value = [] introspection_data = {'macs': self.macs} node_driver_info = {} discovery._check_existing_nodes(introspection_data, node_driver_info, self.ironic)
def test__check_existing_nodes_new_node(self): self.ironic.node.list.return_value = [mock.MagicMock( driver_info={'ipmi_address': '1.2.4.3'}, uuid='fake_node')] introspection_data = {} node_driver_info = {'ipmi_address': self.bmc_address} discovery._check_existing_nodes(introspection_data, node_driver_info, self.ironic)