The ironic.tests.unit.common.test_driver_factory Module

class ironic.tests.unit.common.test_driver_factory.CheckAndUpdateNodeInterfacesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

test_create_node_classic_driver_invalid_network_interface()[source]
test_create_node_classic_driver_no_interfaces_set()[source]
test_create_node_classic_driver_not_allowed_interfaces_set()[source]
test_create_node_classic_driver_valid_interfaces()[source]
test_create_node_dynamic_driver_interfaces_set()[source]
test_create_node_dynamic_driver_invalid_network_interface()[source]
test_no_network_interface()[source]
test_no_network_interface_default_from_conf()[source]
test_no_network_interface_default_from_dhcp()[source]
test_node_update_dynamic_driver_set_interfaces()[source]

Update interfaces for node with dynamic driver

test_none_network_interface()[source]
test_update_node_classic_driver_unset_interfaces()[source]

Update interfaces to None for node with classic driver

test_update_node_set_classic_driver_and_allowed_interfaces()[source]

Update driver to classic and interfaces specified

test_update_node_set_classic_driver_and_not_allowed_interfaces()[source]

Update driver to classic and interfaces specified

test_update_node_set_classic_driver_no_interfaces()[source]

Update driver to classic no interfaces specified

test_update_node_set_classic_driver_unset_interfaces()[source]

Update driver to classic and set interfaces to None

test_update_node_set_dynamic_driver_and_interfaces()[source]

Update driver to dynamic and interfaces specified

class ironic.tests.unit.common.test_driver_factory.DefaultInterfaceTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_calculated_no_answer()[source]
test_calculated_no_answer_drivername()[source]
test_calculated_no_answer_drivername_node()[source]
test_calculated_with_one()[source]
test_calculated_with_two()[source]
test_calculated_with_unsupported()[source]
test_from_additional_defaults()[source]
test_from_config()[source]
test_network_from_additional_defaults()[source]
test_network_from_additional_defaults_neutron_dhcp()[source]
class ironic.tests.unit.common.test_driver_factory.DriverLoadTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

test_build_driver_for_task()[source]
test_build_driver_for_task_incorrect(*args, **keywargs)[source]
test_driver_duplicated_entry(*args, **keywargs)[source]
test_driver_empty_entry(*args, **keywargs)[source]
test_driver_init_checks_unsupported(*args, **keywargs)[source]
test_driver_load_error_if_driver_enabled()[source]
test_no_driver_load_error_if_driver_disabled(*args, **keywargs)[source]
test_wrap_in_driver_load_error_if_driver_enabled()[source]
class ironic.tests.unit.common.test_driver_factory.FakeEp[source]

Bases: object

class ironic.tests.unit.common.test_driver_factory.GetDriverTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_get_driver_known()[source]
test_get_driver_unknown()[source]
class ironic.tests.unit.common.test_driver_factory.HardwareTypeLoadTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_build_driver_for_task()[source]
test_build_driver_for_task_bad_default()[source]
test_build_driver_for_task_calculated_defaults()[source]
test_build_driver_for_task_configured_defaults()[source]
test_build_driver_for_task_fake()[source]
test_build_driver_for_task_incorrect()[source]
test_build_driver_for_task_no_defaults()[source]
test_build_driver_for_task_not_fake(*args, **keywargs)[source]
test_enabled_supported_interfaces()[source]
test_enabled_supported_interfaces_non_default()[source]
test_get_driver_or_hardware_type()[source]
test_get_driver_or_hardware_type_missing()[source]
test_get_hardware_type_existing()[source]
test_get_hardware_type_missing()[source]
test_invalid_storage_interface()[source]
test_no_raid_interface_no_default()[source]
test_no_storage_interface()[source]
test_no_storage_interface_default_from_conf()[source]
test_none_storage_interface()[source]
class ironic.tests.unit.common.test_driver_factory.NetworkInterfaceFactoryTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

test_build_driver_for_task(*args, **keywargs)[source]
test_build_driver_for_task_default_is_flat()[source]
test_build_driver_for_task_default_is_none()[source]
test_build_driver_for_task_default_network_interface_is_set()[source]
test_build_driver_for_task_unknown_network_interface()[source]
class ironic.tests.unit.common.test_driver_factory.NewDriverFactory[source]

Bases: ironic.common.driver_factory.BaseDriverFactory

class ironic.tests.unit.common.test_driver_factory.NewFactoryTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

test_new_driver_factory_unknown_entrypoint()[source]
class ironic.tests.unit.common.test_driver_factory.StorageInterfaceFactoryTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_build_interface_for_task()[source]

Validate a node has no default storage interface.

class ironic.tests.unit.common.test_driver_factory.TestFakeHardware[source]

Bases: ironic.drivers.hardware_type.AbstractHardwareType

class ironic.tests.unit.common.test_driver_factory.WarnUnsupportedDriversTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test__warn_if_unsupported_with_supported()[source]
test__warn_if_unsupported_with_unsupported()[source]