Module Import alias Import alias Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Assign NameStore Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr UnaryOpNot NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad UnaryOpNot NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Str Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr UnaryOpNot NameLoad NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore ListLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpMult Num Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Num NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult ListLoad BinOpMult Str NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad IfExp NameLoad ListLoad BinOpMult Str NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpSub NameLoad NameLoad keyword Num comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Str NameLoad Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Str Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpMult Num Num Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index Num attr attr ListLoad NameLoad Assign NameStore IfExp NameLoad ListLoad NameLoad ListLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd ListLoad NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore ListLoad BinOpMod Str Dict Str Str SubscriptLoad NameLoad Index Num Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad Str Str Str Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore IfExp NameLoad Num Num Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign NameStore BinOpSub Num Call NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpSub Num Call NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore IfExp NameLoad ListLoad Str Str ListLoad Assign NameStore ListLoad Str Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpMult ListLoad NameLoad BinOpSub Call NameLoad NameLoad Num ListLoad NameLoad Assign NameStore ListComp BinOpMod Str Dict Str Str NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A importlib N/A itertools N/A os N/A unittest N/A N/A N/A unittest.mock mock N/A N/A N/A ImportError N/A N/A mock oslo_config cfg cloudbaseinit exception cloudbaseinit.tests testutils N/A CONF N/A cfg CONF N/A OPEN N/A N/A mock mock_open TestWindowsConfigDriveManager N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A module_path cloudbaseinit.metadata.services.osconfigdrive.windows N/A mock_ctypes N/A N/A mock MagicMock N/A N/A mock_ctypes wintypes N/A N/A mock MagicMock N/A N/A self _module_patcher N/A N/A N/A mock patch dict sys.modules N/A disk ctypes winioctlcon N/A N/A mock Mock mock_ctypes N/A N/A mock Mock N/A N/A N/A N/A self _module_patcher start N/A N/A N/A self addCleanup N/A N/A self _module_patcher stop N/A N/A self conf_module N/A N/A importlib import_module module_path N/A N/A N/A self conf_module osutils_factory N/A N/A mock Mock N/A N/A N/A N/A self conf_module disk Disk N/A N/A mock MagicMock N/A N/A N/A self conf_module tempfile N/A N/A mock Mock N/A N/A self mock_gettempdir N/A N/A N/A self conf_module tempfile gettempdir N/A N/A N/A self mock_gettempdir return_value tempdir N/A N/A N/A self conf_module uuid N/A N/A mock Mock N/A N/A self mock_uuid4 N/A N/A N/A self conf_module uuid uuid4 N/A N/A N/A self mock_uuid4 return_value uuid N/A N/A self _config_manager N/A N/A N/A self conf_module WindowsConfigDriveManager N/A N/A N/A self addCleanup N/A os rmdir N/A N/A self _config_manager target_path N/A N/A self osutils N/A N/A mock Mock N/A N/A N/A self _config_manager _osutils N/A self osutils N/A N/A self snatcher N/A N/A testutils LogSnatcher module_path N/A _test_check_for_config_drive N/A N/A self mock_exists exists label fail N/A True config-2 False N/A N/A drive C:\ N/A N/A N/A N/A self osutils get_volume_label return_value label N/A N/A mock_exists return_value exists N/A N/A self snatcher N/A N/A response N/A N/A N/A self _config_manager _check_for_config_drive drive N/A N/A N/A N/A N/A self osutils get_volume_label assert_called_once_with drive N/A N/A exists N/A fail N/A N/A N/A N/A self assertEqual N/A Config Drive found on C:\ N/A N/A self snatcher output N/A N/A N/A self assertEqual N/A fail response N/A N/A N/A mock patch os.path.exists test_check_for_config_drive_exists N/A N/A self N/A N/A N/A N/A N/A self _test_check_for_config_drive N/A test_check_for_config_drive_exists_upper_label N/A N/A self N/A N/A N/A N/A N/A self _test_check_for_config_drive label CONFIG-2 N/A test_check_for_config_drive_missing N/A N/A self N/A N/A N/A N/A N/A self _test_check_for_config_drive exists False fail True N/A test_check_for_config_drive_wrong_label N/A N/A self N/A N/A N/A N/A N/A self _test_check_for_config_drive label config-3 fail True N/A _test_get_iso_file_size N/A N/A self fixed small found_iso N/A True False True N/A N/A device N/A N/A mock Mock N/A N/A device fixed fixed N/A N/A device size N/A N/A N/A N/A self conf_module OFFSET_BLOCK_SIZE N/A N/A self conf_module PEEK_SIZE N/A int N/A small N/A iso_id N/A N/A self conf_module ISO_ID N/A N/A found_iso N/A N/A iso_id pwned N/A iso_off N/A N/A N/A self conf_module OFFSET_ISO_ID 1 N/A volume_off N/A N/A N/A self conf_module OFFSET_VOLUME_SIZE 1 N/A block_off N/A N/A N/A self conf_module OFFSET_BLOCK_SIZE 1 N/A volume_bytes d N/A block_bytes N/A N/A N/A device seek side_effect N/A iso_off volume_off block_off N/A N/A N/A device read side_effect N/A iso_id volume_bytes block_bytes N/A response N/A N/A N/A self _config_manager _get_iso_file_size device N/A N/A N/A fixed small N/A found_iso N/A N/A N/A N/A self assertIsNone response N/A N/A seek_calls N/A N/A N/A mock call N/A N/A self conf_module OFFSET_ISO_ID N/A N/A mock call N/A N/A self conf_module OFFSET_VOLUME_SIZE N/A N/A mock call N/A N/A self conf_module OFFSET_BLOCK_SIZE N/A read_calls N/A N/A N/A mock call N/A len iso_id skip N/A N/A N/A self conf_module OFFSET_ISO_ID iso_off N/A N/A mock call N/A N/A self conf_module PEEK_SIZE skip N/A N/A N/A self conf_module OFFSET_VOLUME_SIZE volume_off N/A N/A mock call N/A N/A self conf_module PEEK_SIZE skip N/A N/A N/A self conf_module OFFSET_BLOCK_SIZE block_off N/A N/A N/A N/A device seek assert_has_calls seek_calls N/A N/A N/A N/A device read assert_has_calls read_calls N/A N/A N/A self assertEqual N/A 100 512 response N/A test_get_iso_file_size_not_fixed N/A N/A self N/A N/A N/A N/A N/A self _test_get_iso_file_size fixed False N/A test_get_iso_file_size_small N/A N/A self N/A N/A N/A N/A N/A self _test_get_iso_file_size small True N/A test_get_iso_file_size_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_get_iso_file_size found_iso False N/A test_get_iso_file_size N/A N/A self N/A N/A N/A N/A N/A self _test_get_iso_file_size N/A test_write_iso_file N/A N/A self N/A N/A N/A file_path fake\path N/A file_size N/A 100 512 N/A sector_size N/A N/A self conf_module MAX_SECTOR_SIZE N/A offsets N/A list N/A range 0 file_size sector_size N/A remain N/A file_size sector_size N/A reads N/A N/A N/A N/A sector_size N/A N/A len offsets N/A int N/A bool remain N/A remain N/A N/A remain N/A N/A device N/A N/A mock Mock N/A device_seek_calls N/A N/A N/A mock call off N/A off offsets N/A device_read_calls N/A N/A N/A mock call N/A min sector_size N/A file_size off skip 0 N/A off offsets N/A stream_write_calls N/A N/A N/A mock call read N/A read reads N/A N/A N/A device seek side_effect offsets N/A N/A N/A device read side_effect reads N/A N/A N/A N/A self _config_manager _write_iso_file device file_path file_size N/A N/A N/A N/A device seek assert_has_calls device_seek_calls N/A N/A N/A N/A device read assert_has_calls device_read_calls N/A N/A N/A N/A N/A OPEN return_value write assert_has_calls stream_write_calls N/A N/A N/A mock patch six.moves.builtins.open new OPEN _test_extract_files_from_iso N/A N/A self exit_code N/A N/A N/A fake_path N/A N/A N/A os path join fake path N/A fake_target_path N/A N/A N/A os path join fake_path target N/A N/A N/A self _config_manager target_path fake_target_path N/A args N/A N/A CONF bsdtar_path -xf fake_path -C fake_target_path N/A N/A N/A N/A self osutils execute_process return_value N/A fake out fake err exit_code N/A exit_code N/A N/A N/A N/A self assertRaises N/A exception CloudbaseInitException N/A N/A self _config_manager _extract_files_from_iso fake_path N/A N/A N/A N/A N/A self _config_manager _extract_files_from_iso fake_path N/A N/A N/A N/A N/A self osutils execute_process assert_called_once_with args False N/A test_extract_files_from_iso N/A N/A self N/A N/A N/A N/A N/A self _test_extract_files_from_iso exit_code 0 N/A test_extract_files_from_iso_fail N/A N/A self N/A N/A N/A N/A N/A self _test_extract_files_from_iso exit_code 1 N/A _test_extract_iso_from_devices N/A N/A self mock_get_iso_file_size mock_write_iso_file mock_extract_files_from_iso found N/A True N/A N/A size N/A 100 512 N/A devices N/A N/A N/A mock MagicMock N/A _ N/A range 4 N/A N/A N/A N/A devices N/A 1 __enter__ side_effect N/A Exception N/A rest N/A found N/A size N/A None N/A N/A mock_get_iso_file_size side_effect N/A N/A None N/A rest 2 N/A file_path N/A N/A N/A os path join tempdir uuid.iso N/A N/A self snatcher N/A N/A response N/A N/A N/A self _config_manager _extract_iso_from_devices devices N/A N/A N/A N/A self mock_gettempdir assert_called_once_with N/A N/A N/A mock_get_iso_file_size assert_has_calls N/A N/A N/A mock call N/A devices N/A 0 N/A N/A mock call N/A devices N/A 2 N/A expected_log N/A N/A ISO extraction failed on %(device)s with %(error)r N/A device error N/A devices N/A 1 N/A Exception N/A found N/A N/A N/A N/A mock_write_iso_file assert_called_once_with N/A devices N/A 2 file_path size N/A N/A N/A mock_extract_files_from_iso assert_called_once_with file_path N/A N/A N/A expected_log append N/A ISO9660 disk found on %s N/A devices N/A 2 N/A N/A N/A self assertEqual expected_log N/A N/A self snatcher output N/A N/A N/A self assertEqual found response N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._extract_files_from_iso N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._write_iso_file N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_iso_file_size test_extract_iso_from_devices_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_extract_iso_from_devices found False N/A test_extract_iso_from_devices N/A N/A self N/A N/A N/A N/A N/A self _test_extract_iso_from_devices N/A _test_get_config_drive_from_cdrom_drive N/A N/A self mock_os_rmdir mock_copytree mock_check_for_config_drive found N/A True N/A N/A drives N/A C:\ M:\ I:\ N:\ N/A N/A N/A N/A self osutils get_cdrom_drives return_value drives N/A checks N/A False False True False N/A N/A found N/A N/A N/A checks N/A 2 False N/A N/A mock_check_for_config_drive side_effect checks N/A response N/A N/A N/A self _config_manager _get_config_drive_from_cdrom_drive N/A N/A N/A N/A N/A self osutils get_cdrom_drives assert_called_once_with N/A idx N/A found 3 4 N/A check_calls N/A N/A N/A mock call drive N/A drive N/A drives N/A idx N/A N/A N/A mock_check_for_config_drive assert_has_calls check_calls N/A found N/A N/A N/A N/A mock_os_rmdir assert_called_once_with N/A N/A self _config_manager target_path N/A N/A N/A mock_copytree assert_called_once_with N/A drives N/A 2 N/A N/A self _config_manager target_path N/A N/A N/A self assertEqual found response N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._check_for_config_drive N/A N/A mock patch shutil.copytree N/A N/A mock patch os.rmdir test_get_config_drive_from_cdrom_drive_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_cdrom_drive found False N/A test_get_config_drive_from_cdrom_drive N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_cdrom_drive N/A test_get_config_drive_from_raw_hdd N/A N/A self mock_map mock_extract_iso_from_devices N/A N/A N/A Disk N/A N/A N/A self conf_module disk Disk N/A paths N/A N/A N/A mock Mock N/A _ N/A range 3 N/A N/A N/A N/A self osutils get_physical_disks return_value paths N/A N/A mock_extract_iso_from_devices return_value True N/A response N/A N/A N/A self _config_manager _get_config_drive_from_raw_hdd N/A N/A N/A mock_map assert_called_once_with Disk paths N/A N/A N/A N/A N/A self osutils get_physical_disks assert_called_once_with N/A N/A N/A mock_extract_iso_from_devices assert_called_once_with N/A mock_map return_value N/A N/A N/A self assertTrue response N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._extract_iso_from_devices N/A N/A mock patch six.moves.builtins.map test_get_config_drive_from_vfat N/A N/A self mock_is_vfat_drive mock_copy_from_vfat_drive N/A N/A N/A N/A N/A N/A self osutils get_physical_disks return_value N/A N/A N/A mock sentinel drive1 N/A N/A mock sentinel drive2 N/A N/A mock_is_vfat_drive side_effect N/A None True N/A N/A N/A testutils LogSnatcher cloudbaseinit.metadata.services.osconfigdrive.windows snatcher N/A N/A response N/A N/A N/A self _config_manager _get_config_drive_from_vfat N/A N/A N/A self assertTrue response N/A N/A N/A N/A N/A self osutils get_physical_disks assert_called_once_with N/A expected_is_vfat_calls N/A N/A N/A mock call N/A self osutils N/A N/A mock sentinel drive1 N/A N/A mock call N/A self osutils N/A N/A mock sentinel drive2 N/A N/A N/A self assertEqual expected_is_vfat_calls N/A mock_is_vfat_drive mock_calls N/A N/A N/A mock_copy_from_vfat_drive assert_called_once_with N/A self osutils N/A N/A mock sentinel drive2 N/A N/A self _config_manager target_path N/A expected_logging N/A N/A Config Drive found on disk %r N/A N/A mock sentinel drive2 N/A N/A N/A self assertEqual expected_logging N/A snatcher output N/A N/A N/A mock patch cloudbaseinit.utils.windows.vfat.copy_from_vfat_drive N/A N/A mock patch cloudbaseinit.utils.windows.vfat.is_vfat_drive _test_get_config_drive_from_partition N/A N/A self mock_extract_iso_from_devices found N/A True N/A N/A paths N/A N/A N/A mock Mock N/A _ N/A range 3 N/A N/A N/A N/A self osutils get_physical_disks return_value paths N/A disks N/A list N/A map N/A N/A N/A self conf_module disk Disk paths N/A N/A mock_extract_iso_from_devices side_effect N/A False found found N/A idx N/A 3 N/A int found N/A extract_calls N/A N/A N/A mock call N/A N/A disk partitions N/A disk N/A disks N/A idx N/A response N/A N/A N/A self _config_manager _get_config_drive_from_partition N/A N/A N/A N/A N/A self osutils get_physical_disks assert_called_once_with N/A N/A N/A mock_extract_iso_from_devices assert_has_calls extract_calls N/A N/A N/A self assertEqual found response N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._extract_iso_from_devices test_get_config_drive_from_partition_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_partition found False N/A test_get_config_drive_from_partition N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_partition N/A _test_get_config_drive_from_volume N/A N/A self mock_check_for_config_drive mock_copytree mock_os_rmdir found N/A True N/A N/A volumes N/A N/A N/A mock Mock N/A _ N/A range 3 N/A N/A N/A N/A self osutils get_volumes return_value volumes N/A checks N/A False found found N/A N/A mock_check_for_config_drive side_effect checks N/A idx N/A 3 N/A int found N/A check_calls N/A N/A N/A mock call volume N/A volume N/A volumes N/A idx N/A response N/A N/A N/A self _config_manager _get_config_drive_from_volume N/A N/A N/A N/A N/A self osutils get_volumes assert_called_once_with N/A N/A N/A mock_check_for_config_drive assert_has_calls check_calls N/A found N/A N/A N/A N/A mock_os_rmdir assert_called_once_with N/A N/A self _config_manager target_path N/A N/A N/A mock_copytree assert_called_once_with N/A volumes N/A 1 N/A N/A self _config_manager target_path N/A N/A N/A self assertEqual found response N/A N/A N/A mock patch os.rmdir N/A N/A mock patch shutil.copytree N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._check_for_config_drive test_get_config_drive_from_volume_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_volume found False N/A test_get_config_drive_from_volume N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_from_volume N/A _test__get_config_drive_files N/A N/A self cd_type cd_location func found N/A True N/A N/A response N/A N/A N/A self _config_manager _get_config_drive_files cd_type cd_location N/A found N/A N/A func N/A N/A N/A N/A func assert_called_once_with N/A N/A N/A self assertEqual N/A func return_value response N/A N/A N/A N/A self assertFalse response N/A test__get_config_drive_files_not_found N/A N/A self N/A N/A N/A N/A N/A self _test__get_config_drive_files None None None found False N/A test__get_config_drive_files_cdrom_iso N/A N/A self func N/A N/A N/A N/A N/A self _test__get_config_drive_files iso cdrom func N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_from_cdrom_drive test__get_config_drive_files_cdrom_vfat N/A N/A self N/A N/A N/A N/A N/A self _test__get_config_drive_files vfat cdrom None N/A test__get_config_drive_files_hdd_iso N/A N/A self func N/A N/A N/A N/A N/A self _test__get_config_drive_files iso hdd func N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_from_raw_hdd test__get_config_drive_files_hdd_vfat N/A N/A self func N/A N/A N/A N/A N/A self _test__get_config_drive_files vfat hdd func N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_from_vfat test__get_config_drive_files_partition_iso N/A N/A self func N/A N/A N/A N/A N/A self _test__get_config_drive_files iso partition func N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_from_partition test__get_config_drive_files_partition_vfat N/A N/A self func N/A N/A N/A N/A N/A self _test__get_config_drive_files vfat partition func N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_from_volume _test_get_config_drive_files N/A N/A self mock_get_config_drive_files found N/A True N/A N/A check_types N/A found N/A iso vfat N/A N/A check_locations N/A cdrom hdd partition N/A product N/A list N/A N/A itertools product check_types check_locations N/A product_calls N/A N/A N/A mock call cd_type cd_location N/A N/A cd_type cd_location product N/A N/A mock_get_config_drive_files side_effect N/A N/A N/A False N/A N/A len product_calls 1 N/A True N/A expected_log N/A N/A Looking for Config Drive %(type)s in %(location)s N/A type location cd_type cd_location N/A N/A cd_type cd_location product N/A N/A self snatcher N/A N/A response N/A N/A N/A self _config_manager get_config_drive_files check_types check_locations N/A N/A N/A mock_get_config_drive_files assert_has_calls product_calls N/A N/A N/A self assertEqual expected_log N/A N/A self snatcher output N/A N/A N/A self assertEqual found response N/A N/A N/A mock patch cloudbaseinit.metadata.services.osconfigdrive.windows.WindowsConfigDriveManager._get_config_drive_files test_get_config_drive_files_not_found N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_files found False N/A test_get_config_drive_files N/A N/A self N/A N/A N/A N/A N/A self _test_get_config_drive_files N/A N/A