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]
-
test_portgroups_subresource_delete
(*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_collection_links
()[source]
-
test_collection_links_default_limit
()[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_sort_key_allowed
()[source]
-
test_detail_sort_key_not_allowed
()[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_all_by_portgroup_name
()[source]
-
test_get_all_by_portgroup_uuid
()[source]
-
test_get_all_by_portgroup_uuid_and_node_uuid
()[source]
-
test_get_all_by_portgroup_uuid_older_api_version
()[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_get_one_portgroup_is_none
()[source]
-
test_hide_fields_in_newer_versions_internal_info
()[source]
-
test_links
()[source]
-
test_links_public_url
()[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_portgroups_subresource_invalid_ident
()[source]
-
test_portgroups_subresource_node_not_found
()[source]
-
test_sort_key
()[source]
-
test_sort_key_allowed
()[source]
-
test_sort_key_invalid
()[source]
-
test_sort_key_not_allowed
()[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_portgroup_uuid
(*args, **keywargs)[source]
-
test_add_root
(*args, **keywargs)[source]
-
test_add_root_non_existent
(*args, **keywargs)[source]
-
test_portgroups_subresource_patch
(*args, **keywargs)[source]
-
test_remove_local_link_connection_old_api
(*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_local_link_connection
(*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_portgroup_uuid
(*args, **keywargs)[source]
-
test_replace_portgroup_uuid_old_api
(*args, **keywargs)[source]
-
test_replace_portgroup_uuid_remove
(*args, **keywargs)[source]
-
test_replace_portgroup_uuid_remove_add
(*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
(*args, **keywargs)[source]
-
class
ironic.tests.unit.api.v1.test_ports.
TestPortsController__CheckAllowedPortFields
(*args, **kwargs)[source]
Bases: ironic.tests.base.TestCase
-
setUp
()[source]
-
test__check_allowed_port_fields_allow
(*args, **keywargs)[source]
-
test__check_allowed_port_fields_empty
(*args, **keywargs)[source]
-
test__check_allowed_port_fields_none
(*args, **keywargs)[source]
-
test__check_allowed_port_fields_not_allow
(*args, **keywargs)[source]
-
test__check_allowed_port_fields_portgroup_allow
(*args, **keywargs)[source]
-
test__check_allowed_port_fields_portgroup_not_allow
(*args, **keywargs)[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
(*args, **keywargs)[source]
-
test_create_port_address_normalized
(*args, **keywargs)[source]
-
test_create_port_doesnt_contain_id
(*args, **keywargs)[source]
-
test_create_port_error
(*args, **keywargs)[source]
-
test_create_port_generate_uuid
(*args, **keywargs)[source]
-
test_create_port_invalid_addr_format
(*args, **keywargs)[source]
-
test_create_port_invalid_node_uuid_format
(*args, **keywargs)[source]
-
test_create_port_local_link_connection_keys
(*args, **keywargs)[source]
-
test_create_port_local_link_connection_missing_mandatory
(*args, **keywargs)[source]
-
test_create_port_local_link_connection_missing_optional
(*args, **keywargs)[source]
-
test_create_port_local_link_connection_switch_id_bad_mac
(*args, **keywargs)[source]
-
test_create_port_min_api_version
(*args, **keywargs)[source]
-
test_create_port_no_mandatory_field_address
(*args, **keywargs)[source]
-
test_create_port_no_mandatory_field_node_uuid
(*args, **keywargs)[source]
-
test_create_port_node_uuid_not_found
(*args, **keywargs)[source]
-
test_create_port_novif_nopxe_noportgroup
(*args, **keywargs)[source]
-
test_create_port_novif_nopxe_portgroup_nostandalone_ports
(*args, **keywargs)[source]
-
test_create_port_novif_nopxe_portgroup_standalone_ports
(*args, **keywargs)[source]
-
test_create_port_novif_pxe_noportgroup
(*args, **keywargs)[source]
-
test_create_port_novif_pxe_portgroup_nostandalone_ports
(*args, **keywargs)[source]
-
test_create_port_novif_pxe_portgroup_standalone_ports
(*args, **keywargs)[source]
-
test_create_port_portgroup
(*args, **keywargs)[source]
-
test_create_port_portgroup_different_nodes
(*args, **keywargs)[source]
-
test_create_port_portgroup_old_api_version
(*args, **keywargs)[source]
-
test_create_port_portgroup_uuid_not_found
(*args, **keywargs)[source]
-
test_create_port_portgroup_uuid_not_found_old_api_version
(*args, **keywargs)[source]
-
test_create_port_some_invalid_local_link_connection_key
(*args, **keywargs)[source]
-
test_create_port_vif_nopxe_noportgroup
(*args, **keywargs)[source]
-
test_create_port_vif_nopxe_portgroup_nostandalone_ports
(*args, **keywargs)[source]
-
test_create_port_vif_nopxe_portgroup_standalone_ports
(*args, **keywargs)[source]
-
test_create_port_vif_pxe_noportgroup
(*args, **keywargs)[source]
-
test_create_port_vif_pxe_portgroup_nostandalone_ports
(*args, **keywargs)[source]
-
test_create_port_vif_pxe_portgroup_standalone_ports
(*args, **keywargs)[source]
-
test_create_port_with_hyphens_delimiter
(*args, **keywargs)[source]
-
test_create_port_with_internal_field
(*args, **keywargs)[source]
-
test_create_port_with_llc_old_api_version
(*args, **keywargs)[source]
-
test_create_port_with_pxe_enabled_old_api_version
(*args, **keywargs)[source]
-
test_node_uuid_to_node_id_mapping
(*args, **keywargs)[source]
-
test_portgroups_subresource_post
(*args, **keywargs)[source]