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

Tests for the API /portgroups/ methods.

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

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

setUp()[source]
test_delete_portgroup_byaddress(*args, **keywargs)[source]
test_delete_portgroup_byid(*args, **keywargs)[source]
test_delete_portgroup_byname(*args, **keywargs)[source]
test_delete_portgroup_byname_not_existed(*args, **keywargs)[source]
test_delete_portgroup_invalid_api_version(*args, **keywargs)[source]
test_delete_portgroup_node_locked(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_portgroups.TestListPortgroups(*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_ok(*args, **keywargs)[source]
test_detail_invalid_api_version()[source]
test_detail_sort_key_allowed()[source]
test_detail_sort_key_not_allowed()[source]
test_empty()[source]
test_get_all_by_node_name_ok(*args, **keywargs)[source]
test_get_all_by_node_uuid_ok(*args, **keywargs)[source]
test_get_all_ports_by_portgroup_uuid()[source]
test_get_collection_custom_fields()[source]
test_get_collection_properties_field_lower_api_version()[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_get_one_mode_field_lower_api_version()[source]
test_many()[source]
test_one()[source]
test_portgroup_by_address()[source]
test_portgroup_by_address_invalid_address_format()[source]
test_portgroup_by_address_non_existent_address()[source]
test_portgroup_get_all_invalid_api_version()[source]
test_ports_subresource()[source]
test_ports_subresource_no_portgroups_allowed()[source]
test_ports_subresource_not_allowed()[source]
test_ports_subresource_portgroup_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_portgroups.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_address(*args, **keywargs)[source]
test_remove_mode_not_allowed(*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_update_address_invalid_format(*args, **keywargs)[source]
test_update_byaddress_not_allowed(*args, **keywargs)[source]
test_update_byid(*args, **keywargs)[source]
test_update_byid_invalid_api_version(*args, **keywargs)[source]
test_update_byname(*args, **keywargs)[source]
test_update_invalid_name(*args, **keywargs)[source]
test_update_not_found(*args, **keywargs)[source]
test_update_portgroup_address_normalized(*args, **keywargs)[source]
test_update_portgroup_internal_info_not_allowed(*args, **keywargs)[source]
test_update_portgroup_mode_properties(*args, **keywargs)[source]
test_update_portgroup_mode_properties_bad_api_version(*args, **keywargs)[source]
test_update_portgroup_standalone_ports_supported(*args, **keywargs)[source]
test_update_portgroup_standalone_ports_supported_bad_api_version(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_portgroups.TestPortgroupObject(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

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

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

setUp()[source]
test_create_portgroup(*args, **keywargs)[source]
test_create_portgroup_address_already_exist()[source]
test_create_portgroup_address_normalized()[source]
test_create_portgroup_default_mode()[source]
test_create_portgroup_doesnt_contain_id()[source]
test_create_portgroup_error(*args, **keywargs)[source]
test_create_portgroup_generate_uuid(*args, **keywargs)[source]
test_create_portgroup_internal_info_not_allowed()[source]
test_create_portgroup_invalid_addr_format()[source]
test_create_portgroup_invalid_api_version()[source]
test_create_portgroup_invalid_node_uuid_format()[source]
test_create_portgroup_mode_old_api_version()[source]
test_create_portgroup_mode_properties()[source]
test_create_portgroup_name_invalid()[source]
test_create_portgroup_name_ok()[source]
test_create_portgroup_no_address()[source]
test_create_portgroup_no_mandatory_field_node_uuid()[source]
test_create_portgroup_node_uuid_not_found()[source]
test_create_portgroup_v123(*args, **keywargs)[source]
test_create_portgroup_valid_extra()[source]
test_create_portgroup_with_extra_vif_port_id_deprecated(*args, **keywargs)[source]
test_create_portgroup_with_hyphens_delimiter()[source]
test_create_portgroup_with_no_extra(*args, **keywargs)[source]
test_node_uuid_to_node_id_mapping()[source]