The ironic.tests.unit.api.v1.test_chassis Module

Tests for the API /chassis/ methods.

class ironic.tests.unit.api.v1.test_chassis.TestChassisObject(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_chassis_init()[source]
test_chassis_sample()[source]
class ironic.tests.unit.api.v1.test_chassis.TestDelete(*args, **kwargs)[source]

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

test_delete_chassis(*args, **keywargs)[source]
test_delete_chassis_not_found()[source]
test_delete_chassis_with_node(*args, **keywargs)[source]
test_delete_nodes_subresource()[source]
class ironic.tests.unit.api.v1.test_chassis.TestListChassis(*args, **kwargs)[source]

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

test_detail()[source]
test_detail_against_single()[source]
test_empty()[source]
test_get_collection_custom_fields()[source]
test_get_custom_fields_invalid_api_version()[source]
test_get_custom_fields_invalid_fields()[source]
test_get_one()[source]
test_get_one_custom_fields()[source]
test_many()[source]
test_nodes_subresource()[source]
test_nodes_subresource_chassis_not_found()[source]
test_nodes_subresource_no_uuid()[source]
test_one()[source]
test_sort_key()[source]
test_sort_key_invalid()[source]
class ironic.tests.unit.api.v1.test_chassis.TestPatch(*args, **kwargs)[source]

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

setUp()[source]
test_add_multi()[source]
test_add_root()[source]
test_add_root_non_existent()[source]
test_patch_nodes_subresource()[source]
test_remove_multi()[source]
test_remove_non_existent_property_fail()[source]
test_remove_singular()[source]
test_remove_uuid()[source]
test_replace_multi()[source]
test_replace_singular(*args, **keywargs)[source]
test_update_error(*args, **keywargs)[source]
test_update_not_found()[source]
class ironic.tests.unit.api.v1.test_chassis.TestPost(*args, **kwargs)[source]

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

test_create_chassis(*args, **keywargs)[source]
test_create_chassis_doesnt_contain_id()[source]
test_create_chassis_error(*args, **keywargs)[source]
test_create_chassis_generate_uuid(*args, **keywargs)[source]
test_create_chassis_invalid_description()[source]
test_create_chassis_toolong_description()[source]
test_create_chassis_unicode_description()[source]
test_create_chassis_valid_extra()[source]
test_post_nodes_subresource()[source]