The ironic.tests.unit.api.controllers.v1.test_volume_target Module

The ironic.tests.unit.api.controllers.v1.test_volume_target Module

Tests for the API /volume targets/ methods.

class ironic.tests.unit.api.controllers.v1.test_volume_target.TestDelete(*args, **kwds)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

setUp()[source]
test_delete_volume_target_byid(*args, **keywargs)[source]
test_delete_volume_target_byid_invalid_api_version(*args, **keywargs)[source]
test_delete_volume_target_invalid_power_state(*args, **keywargs)[source]
test_delete_volume_target_node_locked(*args, **keywargs)[source]
class ironic.tests.unit.api.controllers.v1.test_volume_target.TestListVolumeTargets(*args, **kwds)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

setUp()[source]
test_detail()[source]
test_detail_against_single()[source]
test_detail_and_fields()[source]
test_detail_by_node_name_ok(*args, **keywargs)[source]
test_detail_false()[source]
test_detail_invalid_api_version()[source]
test_detail_sepecified_by_path()[source]
test_empty()[source]
test_get_all_by_node_name_ok(*args, **keywargs)[source]
test_get_collection_custom_fields()[source]
test_get_custom_fields_invalid_fields()[source]
test_get_one()[source]
test_get_one_custom_fields()[source]
test_get_one_invalid_api_version()[source]
test_many()[source]
test_one()[source]
test_one_invalid_api_version()[source]
test_sort_key()[source]
test_sort_key_invalid()[source]
class ironic.tests.unit.api.controllers.v1.test_volume_target.TestPatch(*args, **kwds)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

setUp()[source]
test_add_multi(*args, **keywargs)[source]
test_add_node_id(*args, **keywargs)[source]
test_add_node_uuid(*args, **keywargs)[source]
test_add_node_uuid_invalid_type(*args, **keywargs)[source]
test_add_root(*args, **keywargs)[source]
test_add_root_non_existent(*args, **keywargs)[source]
test_remove_mandatory_field(*args, **keywargs)[source]
test_remove_multi(*args, **keywargs)[source]
test_remove_node_id(*args, **keywargs)[source]
test_remove_non_existent_property_fail(*args, **keywargs)[source]
test_remove_uuid(*args, **keywargs)[source]
test_replace_boot_index_already_exist(*args, **keywargs)[source]
test_replace_invalid_power_state(*args, **keywargs)[source]
test_replace_multi(*args, **keywargs)[source]
test_replace_node_id(*args, **keywargs)[source]
test_replace_node_uuid(*args, **keywargs)[source]
test_replace_node_uuid_inalid_type(*args, **keywargs)[source]
test_replace_non_existent_node_uuid(*args, **keywargs)[source]
test_replace_singular(*args, **keywargs)[source]
test_update_byid(*args, **keywargs)[source]
test_update_byid_invalid_api_version(*args, **keywargs)[source]
test_update_not_found(*args, **keywargs)[source]
class ironic.tests.unit.api.controllers.v1.test_volume_target.TestPost(*args, **kwds)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

setUp()[source]
test_create_volume_target(*args, **keywargs)[source]
test_create_volume_target_doesnt_contain_id()[source]
test_create_volume_target_error(*args, **keywargs)[source]
test_create_volume_target_generate_uuid(*args, **keywargs)[source]
test_create_volume_target_invalid_api_version()[source]
test_create_volume_target_invalid_node_uuid_format()[source]
test_create_volume_target_no_mandatory_field_node_uuid()[source]
test_create_volume_target_no_mandatory_field_type()[source]
test_create_volume_target_no_mandatory_field_value()[source]
test_create_volume_target_node_uuid_not_found()[source]
test_create_volume_target_valid_extra()[source]
test_node_uuid_to_node_id_mapping()[source]
class ironic.tests.unit.api.controllers.v1.test_volume_target.TestVolumeTargetObject(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

test_volume_target_init()[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.