The ironic.tests.unit.drivers.modules.storage.test_cinder Module

The ironic.tests.unit.drivers.modules.storage.test_cinder Module

class ironic.tests.unit.drivers.modules.storage.test_cinder.CinderInterfaceTestCase(*args, **kwds)[source]

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

setUp()[source]
test__fail_validation(*args, **keywargs)[source]
test__generate_connector_iscsi()[source]
test__generate_connector_iscsi_and_unknown(*args, **keywargs)[source]

Validate we return and log with valid and invalid connectors.

test__generate_connector_multiple_fc_wwns()[source]
test__generate_connector_raises_with_insufficent_data(*args, **keywargs)[source]
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_called_with_target_and_connector(*args, **keywargs)[source]
test_attach_detach_volumes_fails_without_connectors(*args, **keywargs)[source]

Without connectors, attach and detach should fail.

test_attach_detach_volumes_no_volumes(*args, **keywargs)[source]
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_detach_volumes_failure(*args, **keywargs)[source]
test_detach_volumes_failure_raises_exception(*args, **keywargs)[source]
test_should_write_image()[source]
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_failure_if_fc_boot_no_connectors(*args, **keywargs)[source]
test_validate_failure_if_iscsi_boot_no_connectors(*args, **keywargs)[source]
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.

test_validate_success_iscsi_targets(*args, **keywargs)[source]

Validate success with full iscsi scenario.

test_validate_success_no_settings(*args, **keywargs)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.