Module Expr Str Import alias ImportFrom alias Import alias ImportFrom alias identifier Import alias identifier If AttributeLoad NameLoad attr body Import alias Assign NameStore AttributeLoad NameLoad attr ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str ListLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad decorator_list
N/A N/A Test class for Firmware Processor used by iLO management interface. N/A mock oslo_utils importutils N/A six six.moves builtins __builtin__ N/A six.moves.urllib.parse urlparse N/A N/A six PY3 N/A N/A io N/A file N/A io BytesIO ironic.common exception ironic.drivers.modules.ilo common ilo_common ironic.drivers.modules.ilo firmware_processor ilo_fw_processor ironic.tests base N/A ilo_error N/A N/A importutils try_import proliantutils.exception FirmwareProcessorTestCase N/A N/A base TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FirmwareProcessorTestCase self setUp N/A N/A self any_url http://netloc/path N/A N/A self fw_processor_fake N/A N/A mock MagicMock parsed_url set it as required N/A test_verify_firmware_update_args_throws_for_invalid_update_mode N/A N/A self N/A N/A N/A update_firmware_mock N/A N/A mock MagicMock N/A firmware_update_args N/A firmware_update_mode firmware_images invalid_mode None N/A N/A update_firmware_mock __name__ update_firmware_mock N/A wrapped_func N/A N/A ilo_fw_processor verify_firmware_update_args update_firmware_mock N/A node_fake N/A N/A mock MagicMock uuid fake_node_uuid N/A task_fake N/A N/A mock MagicMock node node_fake N/A N/A N/A self assertRaises N/A exception InvalidParameterValue wrapped_func N/A mock ANY task_fake firmware_update_args N/A test_verify_firmware_update_args_throws_for_no_firmware_url N/A N/A self N/A N/A N/A update_firmware_mock N/A N/A mock MagicMock N/A firmware_update_args N/A firmware_update_mode firmware_images ilo N/A N/A N/A update_firmware_mock __name__ update_firmware_mock N/A wrapped_func N/A N/A ilo_fw_processor verify_firmware_update_args update_firmware_mock N/A N/A N/A self assertRaises N/A exception InvalidParameterValue wrapped_func N/A mock ANY N/A mock ANY firmware_update_args N/A test_get_and_validate_firmware_image_info N/A N/A self N/A N/A N/A firmware_image_info N/A url checksum component N/A self any_url b64c8f7799cfbb553d384d34dc43fafe336cc889 BIOS N/A N/A url checksum component N/A N/A ilo_fw_processor get_and_validate_firmware_image_info firmware_image_info N/A N/A N/A self assertEqual N/A self any_url url N/A N/A N/A self assertEqual b64c8f7799cfbb553d384d34dc43fafe336cc889 checksum N/A N/A N/A self assertEqual bios component N/A test_get_and_validate_firmware_image_info_fails_for_missing_parameter N/A N/A self N/A N/A N/A invalid_firmware_image_info N/A url component N/A self any_url bios N/A N/A N/A self assertRaisesRegexp N/A exception MissingParameterValue checksum N/A ilo_fw_processor get_and_validate_firmware_image_info invalid_firmware_image_info N/A test_get_and_validate_firmware_image_info_fails_for_empty_parameter N/A N/A self N/A N/A N/A invalid_firmware_image_info N/A url checksum component N/A self any_url valid_checksum N/A N/A N/A self assertRaisesRegexp N/A exception MissingParameterValue component N/A ilo_fw_processor get_and_validate_firmware_image_info invalid_firmware_image_info N/A test_get_and_validate_firmware_image_info_fails_for_invalid_component N/A N/A self N/A N/A N/A invalid_firmware_image_info N/A url checksum component N/A self any_url valid_checksum INVALID N/A N/A N/A self assertRaises N/A exception InvalidParameterValue N/A ilo_fw_processor get_and_validate_firmware_image_info invalid_firmware_image_info N/A test_fw_processor_ctor_sets_parsed_url_attrib_of_fw_processor N/A N/A self N/A N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor N/A self any_url N/A N/A N/A self assertEqual N/A self any_url N/A N/A N/A fw_processor parsed_url geturl N/A test__download_file_based_fw_to_gets_invoked_for_file_based_firmware N/A N/A self _download_file_based_fw_to_mock N/A N/A N/A some_file_url file:///some_location/some_firmware_file N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor some_file_url N/A N/A N/A fw_processor _download_fw_to some_target_file N/A N/A N/A _download_file_based_fw_to_mock assert_called_once_with fw_processor some_target_file N/A N/A N/A N/A mock patch object ilo_fw_processor _download_file_based_fw_to autospec True test__download_http_based_fw_to_gets_invoked_for_http_based_firmware N/A N/A self _download_http_based_fw_to_mock N/A N/A N/A some_http_url N/A http://netloc/path_to_firmware_file https://netloc/path_to_firmware_file N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor some_http_url N/A N/A N/A fw_processor _download_fw_to some_target_file N/A N/A N/A _download_http_based_fw_to_mock assert_called_once_with fw_processor some_target_file N/A N/A N/A _download_http_based_fw_to_mock reset_mock N/A N/A N/A N/A mock patch object ilo_fw_processor _download_http_based_fw_to autospec True test__download_swift_based_fw_to_gets_invoked_for_swift_based_firmware N/A N/A self _download_swift_based_fw_to_mock N/A N/A N/A some_swift_url swift://containername/objectname N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor some_swift_url N/A N/A N/A fw_processor _download_fw_to some_target_file N/A N/A N/A _download_swift_based_fw_to_mock assert_called_once_with fw_processor some_target_file N/A N/A N/A N/A mock patch object ilo_fw_processor _download_swift_based_fw_to autospec True test_fw_processor_ctor_throws_exception_with_invalid_firmware_url N/A N/A self N/A N/A N/A any_invalid_firmware_url any_invalid_url N/A N/A N/A self assertRaises N/A exception InvalidParameterValue N/A ilo_fw_processor FirmwareProcessor any_invalid_firmware_url N/A test_process_fw_on_calls__download_fw_to N/A N/A self _extract_fw_from_file_mock verify_checksum_mock shutil_mock os_mock tempfile_mock N/A N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor N/A self any_url N/A _download_fw_to_mock N/A N/A mock MagicMock N/A N/A fw_processor _download_fw_to _download_fw_to_mock N/A expected_return_location N/A N/A ilo_fw_processor FirmwareImageLocation some_location/file file N/A N/A _extract_fw_from_file_mock return_value N/A expected_return_location True N/A node_mock N/A mock ANY N/A checksum_fake N/A mock ANY N/A actual_return_location N/A N/A fw_processor process_fw_on node_mock checksum_fake N/A N/A N/A _download_fw_to_mock assert_called_once_with N/A N/A N/A os_mock path join return_value N/A N/A N/A self assertEqual N/A expected_return_location fw_image_location N/A actual_return_location fw_image_location N/A N/A N/A self assertEqual N/A expected_return_location fw_image_filename N/A actual_return_location fw_image_filename N/A N/A N/A N/A mock patch object ilo_fw_processor tempfile autospec True N/A N/A N/A mock patch object ilo_fw_processor os autospec True N/A N/A N/A mock patch object ilo_fw_processor shutil autospec True N/A N/A N/A mock patch object ilo_common verify_image_checksum spec_set True autospec True N/A N/A N/A mock patch object ilo_fw_processor _extract_fw_from_file autospec True test_process_fw_on_verifies_checksum_of_downloaded_fw_file N/A N/A self _extract_fw_from_file_mock verify_checksum_mock shutil_mock os_mock tempfile_mock N/A N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor N/A self any_url N/A _download_fw_to_mock N/A N/A mock MagicMock N/A N/A fw_processor _download_fw_to _download_fw_to_mock N/A expected_return_location N/A N/A ilo_fw_processor FirmwareImageLocation some_location/file file N/A N/A _extract_fw_from_file_mock return_value N/A expected_return_location True N/A node_mock N/A mock ANY N/A checksum_fake N/A mock ANY N/A actual_return_location N/A N/A fw_processor process_fw_on node_mock checksum_fake N/A N/A N/A _download_fw_to_mock assert_called_once_with N/A N/A N/A os_mock path join return_value N/A N/A N/A verify_checksum_mock assert_called_once_with N/A N/A N/A os_mock path join return_value checksum_fake N/A N/A N/A self assertEqual N/A expected_return_location fw_image_location N/A actual_return_location fw_image_location N/A N/A N/A self assertEqual N/A expected_return_location fw_image_filename N/A actual_return_location fw_image_filename N/A N/A N/A N/A mock patch object ilo_fw_processor tempfile autospec True N/A N/A N/A mock patch object ilo_fw_processor os autospec True N/A N/A N/A mock patch object ilo_fw_processor shutil autospec True N/A N/A N/A mock patch object ilo_common verify_image_checksum spec_set True autospec True N/A N/A N/A mock patch object ilo_fw_processor _extract_fw_from_file autospec True test_process_fw_on_throws_error_if_checksum_validation_fails N/A N/A self verify_checksum_mock shutil_mock os_mock tempfile_mock N/A N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor N/A self any_url N/A _download_fw_to_mock N/A N/A mock MagicMock N/A N/A fw_processor _download_fw_to _download_fw_to_mock N/A N/A verify_checksum_mock side_effect N/A N/A exception ImageRefValidationFailed image_href some image reason checksum verification failed N/A node_mock N/A mock ANY N/A checksum_fake N/A mock ANY N/A N/A N/A self assertRaises N/A exception ImageRefValidationFailed N/A fw_processor process_fw_on node_mock checksum_fake N/A N/A N/A N/A shutil_mock rmtree assert_called_once_with N/A N/A tempfile_mock mkdtemp ignore_errors True N/A N/A N/A N/A mock patch object ilo_fw_processor tempfile autospec True N/A N/A N/A mock patch object ilo_fw_processor os autospec True N/A N/A N/A mock patch object ilo_fw_processor shutil autospec True N/A N/A N/A mock patch object ilo_common verify_image_checksum spec_set True autospec True test_process_fw_on_calls__extract_fw_from_file N/A N/A self _extract_fw_from_file_mock verify_checksum_mock shutil_mock os_mock tempfile_mock N/A N/A N/A fw_processor N/A N/A ilo_fw_processor FirmwareProcessor N/A self any_url N/A _download_fw_to_mock N/A N/A mock MagicMock N/A N/A fw_processor _download_fw_to _download_fw_to_mock N/A expected_return_location N/A N/A ilo_fw_processor FirmwareImageLocation some_location/file file N/A N/A _extract_fw_from_file_mock return_value N/A expected_return_location True N/A node_mock N/A mock ANY N/A checksum_fake N/A mock ANY N/A actual_return_location N/A N/A fw_processor process_fw_on node_mock checksum_fake N/A N/A N/A _extract_fw_from_file_mock assert_called_once_with node_mock N/A N/A N/A os_mock path join return_value N/A N/A N/A self assertEqual N/A expected_return_location fw_image_location N/A actual_return_location fw_image_location N/A N/A N/A self assertEqual N/A expected_return_location fw_image_filename N/A actual_return_location fw_image_filename N/A N/A N/A N/A shutil_mock rmtree assert_called_once_with N/A N/A tempfile_mock mkdtemp ignore_errors True N/A N/A N/A N/A mock patch object ilo_fw_processor tempfile autospec True N/A N/A N/A mock patch object ilo_fw_processor os autospec True N/A N/A N/A mock patch object ilo_fw_processor shutil autospec True N/A N/A N/A mock patch object ilo_common verify_image_checksum spec_set True autospec True N/A N/A N/A mock patch object ilo_fw_processor _extract_fw_from_file autospec True test__download_file_based_fw_to_copies_file_to_target N/A N/A self file_image_service_mock open_mock N/A N/A N/A fd_mock N/A N/A mock MagicMock spec file N/A N/A open_mock return_value fd_mock N/A N/A N/A fd_mock __enter__ return_value fd_mock N/A any_file_based_firmware_file file:///tmp/any_file_path N/A firmware_file_path /tmp/any_file_path N/A N/A N/A self fw_processor_fake parsed_url N/A N/A urlparse urlparse any_file_based_firmware_file N/A N/A N/A ilo_fw_processor _download_file_based_fw_to N/A self fw_processor_fake target_file N/A N/A N/A N/A N/A file_image_service_mock return_value download assert_called_once_with firmware_file_path fd_mock N/A N/A N/A N/A mock patch object __builtin__ open autospec True N/A N/A N/A mock patch object N/A ilo_fw_processor image_service FileImageService autospec True test__download_http_based_fw_to_downloads_the_fw_file N/A N/A self image_service_mock open_mock N/A N/A N/A fd_mock N/A N/A mock MagicMock spec file N/A N/A open_mock return_value fd_mock N/A N/A N/A fd_mock __enter__ return_value fd_mock N/A any_http_based_firmware_file http://netloc/path_to_firmware_file N/A any_target_file any_target_file N/A N/A N/A self fw_processor_fake parsed_url N/A N/A urlparse urlparse any_http_based_firmware_file N/A N/A N/A ilo_fw_processor _download_http_based_fw_to N/A self fw_processor_fake any_target_file N/A N/A N/A N/A N/A N/A image_service_mock HttpImageService download assert_called_once_with any_http_based_firmware_file fd_mock N/A N/A N/A N/A mock patch object __builtin__ open autospec True N/A N/A N/A mock patch object ilo_fw_processor image_service autospec True test__download_swift_based_fw_to_creates_temp_url N/A N/A self swift_mock _download_http_based_fw_to_mock urlparse_mock N/A N/A N/A any_swift_based_firmware_file swift://containername/objectname N/A any_target_file any_target_file N/A N/A N/A self fw_processor_fake parsed_url N/A N/A urlparse urlparse any_swift_based_firmware_file N/A N/A N/A ilo_fw_processor _download_swift_based_fw_to N/A self fw_processor_fake any_target_file N/A N/A N/A N/A N/A N/A swift_mock SwiftAPI get_temp_url assert_called_once_with containername objectname N/A mock ANY N/A N/A N/A N/A mock patch object ilo_fw_processor urlparse autospec True N/A N/A N/A mock patch object ilo_fw_processor _download_http_based_fw_to autospec True N/A N/A N/A mock patch object ilo_fw_processor swift autospec True test__download_swift_based_fw_to_calls__download_http_based_fw_to N/A N/A self swift_mock _download_http_based_fw_to_mock urlparse_mock N/A N/A N/A _download_swift_based_fw_to invokes _download_http_based_fw_to

        _download_swift_based_fw_to makes a call to _download_http_based_fw_to
        in turn with temp url set as the url attribute of fw_processor instance
         N/A any_swift_based_firmware_file swift://containername/objectname N/A any_target_file any_target_file N/A N/A N/A self fw_processor_fake parsed_url N/A N/A urlparse urlparse any_swift_based_firmware_file N/A N/A N/A urlparse_mock reset_mock N/A N/A N/A ilo_fw_processor _download_swift_based_fw_to N/A self fw_processor_fake any_target_file N/A N/A N/A _download_http_based_fw_to_mock assert_called_once_with N/A self fw_processor_fake any_target_file N/A N/A N/A urlparse_mock assert_called_once_with N/A N/A N/A N/A swift_mock SwiftAPI get_temp_url return_value N/A N/A N/A self assertEqual N/A urlparse_mock return_value N/A N/A self fw_processor_fake parsed_url N/A N/A N/A N/A mock patch object urlparse urlparse autospec True N/A N/A N/A mock patch object ilo_fw_processor _download_http_based_fw_to autospec True N/A N/A N/A mock patch object ilo_fw_processor swift autospec True test__extract_fw_from_file_calls_process_firmware_image N/A N/A self utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A ilo_object_mock N/A N/A ilo_common_mock get_ilo_object return_value N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location True True N/A N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A N/A utils_mock process_firmware_image assert_called_once_with any_target_file ilo_object_mock N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True test__extract_fw_from_file_doesnt_upload_firmware N/A N/A self utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file False True N/A N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A N/A ilo_common_mock copy_image_to_web_server assert_not_called N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True test__extract_fw_from_file_sets_loc_obj_remove_to_file_if_no_upload N/A N/A self _remove_mock utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file False True N/A N/A location_obj is_different_file N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A location_obj remove N/A N/A N/A _remove_mock assert_called_once_with location_obj N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True N/A N/A N/A mock patch object ilo_fw_processor _remove_file_based_me autospec True test__extract_fw_from_file_uploads_firmware_to_webserver N/A N/A self utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file True True N/A N/A N/A self config use_web_server_for_images True group ilo N/A N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A N/A ilo_common_mock copy_image_to_web_server assert_called_once_with some_location/some_fw_file some_fw_file N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True test__extract_fw_from_file_sets_loc_obj_remove_to_webserver N/A N/A self _remove_mock utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file True True N/A N/A N/A self config use_web_server_for_images True group ilo N/A N/A location_obj is_different_file N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A location_obj remove N/A N/A N/A _remove_mock assert_called_once_with location_obj N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True N/A N/A N/A mock patch object ilo_fw_processor _remove_webserver_based_me autospec True test__extract_fw_from_file_uploads_firmware_to_swift N/A N/A self utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file True True N/A N/A N/A self config use_web_server_for_images False group ilo N/A N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A N/A ilo_common_mock copy_image_to_swift assert_called_once_with some_location/some_fw_file some_fw_file N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True test__extract_fw_from_file_sets_loc_obj_remove_to_swift N/A N/A self _remove_mock utils_mock ilo_common_mock N/A N/A N/A node_mock N/A N/A mock MagicMock uuid fake_node_uuid N/A any_target_file any_target_file N/A N/A N/A utils_mock process_firmware_image return_value N/A some_location/some_fw_file True True N/A N/A N/A self config use_web_server_for_images False group ilo N/A N/A location_obj is_different_file N/A N/A ilo_fw_processor _extract_fw_from_file node_mock any_target_file N/A N/A N/A location_obj remove N/A N/A N/A _remove_mock assert_called_once_with location_obj N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A N/A N/A mock patch object ilo_fw_processor proliantutils_utils autospec True N/A N/A N/A mock patch object ilo_fw_processor _remove_swift_based_me autospec True test_fw_img_loc_sets_these_attributes N/A N/A self N/A N/A N/A any_loc some_location/some_fw_file N/A any_s_filename some_fw_file N/A location_obj N/A N/A ilo_fw_processor FirmwareImageLocation any_loc any_s_filename N/A N/A N/A self assertEqual any_loc N/A location_obj fw_image_location N/A N/A N/A self assertEqual any_s_filename N/A location_obj fw_image_filename N/A test__remove_file_based_me N/A N/A self ilo_common_mock N/A N/A N/A fw_img_location_obj_fake N/A N/A mock MagicMock N/A N/A N/A ilo_fw_processor _remove_file_based_me fw_img_location_obj_fake N/A N/A N/A N/A ilo_common_mock remove_single_or_list_of_files assert_called_with N/A fw_img_location_obj_fake fw_image_location N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True test__remove_swift_based_me N/A N/A self ilo_common_mock N/A N/A N/A fw_img_location_obj_fake N/A N/A mock MagicMock N/A N/A N/A ilo_fw_processor _remove_swift_based_me fw_img_location_obj_fake N/A N/A N/A N/A ilo_common_mock remove_image_from_swift assert_called_with N/A fw_img_location_obj_fake fw_image_filename firmware update N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True test__remove_webserver_based_me N/A N/A self ilo_common_mock N/A N/A N/A fw_img_location_obj_fake N/A N/A mock MagicMock N/A N/A N/A ilo_fw_processor _remove_webserver_based_me fw_img_location_obj_fake N/A N/A N/A N/A ilo_common_mock remove_image_from_web_server assert_called_with N/A fw_img_location_obj_fake fw_image_filename N/A N/A N/A N/A mock patch object ilo_fw_processor ilo_common autospec True N/A