The ironic.tests.unit.common.test_cinder Module

The ironic.tests.unit.common.test_cinder Module

class ironic.tests.unit.common.test_cinder.TestCinderActions(*args, **kwds)[source]

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

setUp()[source]
test_attach_volumes(*args, **keywargs)[source]

Iterate once on a single volume with success.

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

Attach a volume and fail if final record failure occurs

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

Attach a volume and tolerate set_metadata failure.

test_attach_volumes_client_init_failure(*args, **keywargs)[source]
test_attach_volumes_initialize_connection_failure(*args, **keywargs)[source]

Fail attachment upon an initialization failure.

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

Iterate with two volumes, one already attached.

test_attach_volumes_reserve_failure(*args, **keywargs)[source]
test_attach_volumes_vol_not_found(*args, **keywargs)[source]

Raise an error if the volume lookup fails

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

Iterate once and detach a volume without issues.

test_detach_volumes_begin_detaching_failure(*args, **keywargs)[source]
test_detach_volumes_client_init_failure_bad_request(*args, **keywargs)[source]
test_detach_volumes_client_init_failure_invalid_parameter_value(*args, **keywargs)[source]
test_detach_volumes_detach_failure_errors_allowed(*args, **keywargs)[source]
test_detach_volumes_detach_failure_errors_not_allowed(*args, **keywargs)[source]
test_detach_volumes_detach_meta_failure_errors_not_allowed(*args, **keywargs)[source]
test_detach_volumes_one_detached(*args, **keywargs)[source]

Iterate with two volumes, one already detached.

test_detach_volumes_term_failure(*args, **keywargs)[source]
test_detach_volumes_vol_not_found(*args, **keywargs)[source]

Raise an error if the volume lookup fails

class ironic.tests.unit.common.test_cinder.TestCinderClient(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_get_client(*args, **keywargs)[source]
test_get_client_deprecated_opts(*args, **keywargs)[source]
class ironic.tests.unit.common.test_cinder.TestCinderSession(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__get_cinder_session(*args, **keywargs)[source]

Check establishing new session when no session exists.

class ironic.tests.unit.common.test_cinder.TestCinderUtils(*args, **kwds)[source]

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

setUp()[source]
test__create_metadata_dictionary(*args, **keywargs)[source]
test__get_attachment_id()[source]
test_is_volume_attached()[source]
test_is_volume_available()[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.