The ironic.tests.unit.drivers.modules.storage.test_cinder
Module¶
-
class
ironic.tests.unit.drivers.modules.storage.test_cinder.
CinderInterfaceTestCase
(*args, **kwargs)[source]¶ Bases:
ironic.tests.unit.db.base.DbTestCase
-
test__generate_connector_iscsi_and_unknown
(*args, **keywargs)[source]¶ Validate we return and log with valid and invalid connectors.
-
test__generate_connector_single_path
()[source]¶ Validate an exception is raised with only an invalid connector.
-
test__generate_connector_unknown_raises_excption
(*args, **keywargs)[source]¶ Validate an exception is raised with only an invalid connector.
-
test_attach_detach_volumes_fails_without_connectors
(*args, **keywargs)[source]¶ Without connectors, attach and detach should fail.
-
test_attach_volumes_failure
(*args, **keywargs)[source]¶ Verify detach is called upon attachment failing.
-
test_attach_volumes_failure_no_attach_error
(*args, **keywargs)[source]¶ Verify that detach is called on volume/connector mismatch.
Volume attachment fails if the number of attachments completed does not match the number of configured targets.
-
test_validate_fail_on_unknown_volume_types
(*args, **keywargs)[source]¶ Ensure exception is raised when connector/target do not match.
-
test_validate_fails_fc_conn_iscsi_target
(*args, **keywargs)[source]¶ Validate failure of FC connectors with iSCSI target.
-
test_validate_fails_iscsi_conn_fc_target
(*args, **keywargs)[source]¶ Validate failure of iSCSI connectors with FC target.
-
test_validate_fails_when_fc_connectors_unequal
(*args, **keywargs)[source]¶ Validate should fail with only wwnn FC connector in place
-
test_validate_fails_with_ipxe_not_enabled
(*args, **keywargs)[source]¶ Ensure a validation failure is raised when iPXE not enabled.
-
test_validate_success_connectors_and_boot
(*args, **keywargs)[source]¶ Perform validate with volume connectors and boot capabilities.
-
test_validate_success_fc_connectors
(*args, **keywargs)[source]¶ Perform validate with only FC connectors in place
-
test_validate_success_fc_targets
(*args, **keywargs)[source]¶ Validate success with full fc scenario.
-
test_validate_success_iscsi_connector
(*args, **keywargs)[source]¶ Perform validate with only an iSCSI connector in place.
-