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

Tests for the API /ports/ methods.

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

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

setUp()[source]
test_delete_port_byaddress(*args, **keywargs)[source]
test_delete_port_byid(*args, **keywargs)[source]
test_delete_port_node_locked(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_ports.TestListPorts(*args, **kwargs)[source]

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

setUp()[source]
test_detail()[source]
test_detail_against_single()[source]
test_detail_by_node_name_not_supported(*args, **keywargs)[source]
test_detail_by_node_name_ok(*args, **keywargs)[source]
test_detail_with_incorrect_api_usage(*args, **keywargs)[source]
test_empty()[source]
test_get_all_by_node_name_not_supported(*args, **keywargs)[source]
test_get_all_by_node_name_ok(*args, **keywargs)[source]
test_get_all_by_node_uuid_and_name(*args, **keywargs)[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_hide_fields_in_newer_versions_internal_info()[source]
test_many()[source]
test_one()[source]
test_port_by_address()[source]
test_port_by_address_invalid_address_format()[source]
test_port_by_address_non_existent_address()[source]
test_sort_key()[source]
test_sort_key_invalid()[source]
class ironic.tests.unit.api.v1.test_ports.TestPatch(*args, **kwargs)[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_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_address_already_exist(*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_non_existent_node_uuid(*args, **keywargs)[source]
test_replace_singular(*args, **keywargs)[source]
test_set_pxe_enabled_false_old_api(*args, **keywargs)[source]
test_update_address_invalid_format(*args, **keywargs)[source]
test_update_byaddress_not_allowed(*args, **keywargs)[source]
test_update_byid(*args, **keywargs)[source]
test_update_not_found(*args, **keywargs)[source]
test_update_port_address_normalized(*args, **keywargs)[source]
test_update_pxe_enabled_allowed(*args, **keywargs)[source]
test_update_pxe_enabled_old_api_version(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_ports.TestPortObject(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_port_init()[source]
class ironic.tests.unit.api.v1.test_ports.TestPost(*args, **kwargs)[source]

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

setUp()[source]
test_create_port(*args, **keywargs)[source]
test_create_port_address_already_exist()[source]
test_create_port_address_normalized()[source]
test_create_port_doesnt_contain_id()[source]
test_create_port_generate_uuid()[source]
test_create_port_invalid_addr_format()[source]
test_create_port_invalid_node_uuid_format()[source]
test_create_port_no_mandatory_field_address()[source]
test_create_port_no_mandatory_field_node_uuid()[source]
test_create_port_node_uuid_not_found()[source]
test_create_port_valid_extra()[source]
test_create_port_with_hyphens_delimiter()[source]
test_create_port_with_internal_field()[source]
test_create_port_with_llc_old_api_version()[source]
test_create_port_with_pxe_enabled_old_api_version()[source]
test_node_uuid_to_node_id_mapping()[source]

Project Source

This Page