Module Import alias Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad orelse If BoolOpAnd NameLoad CompareIn Str Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareIs NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListLoad Assign NameStore Dict Str Str Str ListComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr comprehension NameStore AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr IfExp Call NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict Str Str Dict Str Str Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict keyword Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore AttributeLoad Call NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad 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 AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword 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 functools N/A posixpath 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.metadata.services base cloudbaseinit.metadata.services baseopenstackservice cloudbaseinit.tests.metadata fake_json_response cloudbaseinit.utils x509constants N/A CONF N/A cfg CONF N/A MODPATH cloudbaseinit.metadata.services.baseopenstackservice FinalBaseOpenStackService N/A N/A baseopenstackservice BaseOpenStackService N/A _get_data N/A N/A self N/A N/A N/A N/A N/A TestBaseOpenStackService N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A CONF set_override retry_count_interval 0 N/A N/A self _service N/A FinalBaseOpenStackService N/A date 2013-04-04 N/A fake_metadata N/A N/A fake_json_response get_fake_metadata_json date N/A N/A self _fake_network_config N/A fake_metadata N/A network_config N/A N/A self _fake_content N/A N/A self _fake_network_config N/A debian_config N/A N/A self _fake_public_keys N/A fake_metadata N/A public_keys N/A N/A self _fake_keys N/A fake_metadata N/A keys N/A N/A self _partial_test_get_network_details N/A N/A functools partial N/A self _test_get_network_details network_config N/A self _fake_network_config content N/A self _fake_content N/A test_get_content N/A N/A self mock_get_cache_data N/A N/A N/A response N/A N/A N/A self _service get_content fake name N/A path N/A N/A posixpath join openstack content fake name N/A N/A N/A mock_get_cache_data assert_called_once_with path N/A N/A N/A self assertEqual N/A mock_get_cache_data return_value response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_cache_data test_get_user_data N/A N/A self mock_get_cache_data N/A N/A N/A response N/A N/A N/A self _service get_user_data N/A path N/A N/A posixpath join openstack latest user_data N/A N/A N/A mock_get_cache_data assert_called_once_with path N/A N/A N/A self assertEqual N/A mock_get_cache_data return_value response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_cache_data test_get_meta_data N/A N/A self mock_get_cache_data N/A N/A N/A N/A mock_get_cache_data return_value {"fake": "data"} N/A response N/A N/A N/A self _service _get_meta_data version fake version N/A path N/A N/A posixpath join openstack fake version meta_data.json N/A N/A N/A mock_get_cache_data assert_called_with path decode True N/A N/A N/A self assertEqual N/A fake data response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_cache_data test_get_instance_id N/A N/A self mock_get_meta_data N/A N/A N/A response N/A N/A N/A self _service get_instance_id N/A N/A N/A mock_get_meta_data assert_called_once_with N/A N/A N/A N/A N/A mock_get_meta_data get assert_called_once_with uuid N/A N/A N/A self assertEqual N/A N/A N/A mock_get_meta_data return_value get return_value response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data test_get_host_name N/A N/A self mock_get_meta_data N/A N/A N/A response N/A N/A N/A self _service get_host_name N/A N/A N/A mock_get_meta_data assert_called_once_with N/A N/A N/A N/A N/A mock_get_meta_data get assert_called_once_with hostname N/A N/A N/A self assertEqual N/A N/A N/A mock_get_meta_data return_value get return_value response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data test_get_public_keys N/A N/A self mock_get_meta_data N/A N/A N/A N/A N/A N/A mock_get_meta_data return_value get side_effect N/A N/A self _fake_public_keys N/A self _fake_keys N/A response N/A N/A N/A self _service get_public_keys N/A N/A N/A mock_get_meta_data assert_called_once_with N/A N/A N/A N/A N/A mock_get_meta_data return_value get assert_any_call public_keys N/A N/A N/A N/A N/A mock_get_meta_data return_value get assert_any_call keys N/A public_keys N/A N/A list N/A N/A N/A self _fake_public_keys values N/A N/A key N/A data N/A key N/A self _fake_keys N/A N/A key N/A type ssh N/A public_keys N/A N/A N/A key strip N/A key public_keys N/A N/A N/A self assertEqual N/A sorted N/A list N/A set public_keys N/A sorted response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data _test_get_admin_password N/A N/A self mock_get_meta_data meta_data N/A N/A N/A N/A mock_get_meta_data return_value meta_data N/A response N/A N/A N/A self _service get_admin_password N/A N/A N/A mock_get_meta_data assert_called_once_with N/A N/A meta_data N/A admin_pass meta_data N/A N/A N/A N/A self assertEqual N/A meta_data N/A admin_pass response N/A N/A N/A meta_data N/A admin_pass N/A N/A meta_data get meta N/A N/A N/A N/A self assertEqual N/A N/A N/A meta_data get meta N/A admin_pass response N/A N/A N/A N/A self assertIsNone response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data test_get_admin_pass N/A N/A self N/A N/A N/A N/A N/A self _test_get_admin_password meta_data N/A admin_pass fake pass N/A test_get_admin_pass_in_meta N/A N/A self N/A N/A N/A N/A N/A self _test_get_admin_password meta_data N/A meta N/A admin_pass fake pass N/A test_get_admin_pass_no_pass N/A N/A self N/A N/A N/A N/A N/A self _test_get_admin_password meta_data N/A N/A _test_get_client_auth_certs N/A N/A self mock_get_user_data mock_get_meta_data meta_data ret_value N/A None N/A N/A N/A mock_get_meta_data return_value meta_data N/A N/A mock_get_user_data side_effect N/A ret_value N/A response N/A N/A N/A self _service get_client_auth_certs N/A N/A N/A mock_get_meta_data assert_called_once_with N/A N/A N/A isinstance ret_value bytes N/A N/A ret_value startswith N/A N/A N/A x509constants PEM_HEADER encode N/A N/A N/A N/A mock_get_user_data assert_called_once_with N/A N/A N/A self assertEqual N/A N/A N/A ret_value decode response N/A N/A N/A ret_value N/A base NotExistingMetadataException N/A N/A N/A N/A self assertFalse response N/A N/A expected N/A N/A expectation N/A meta keys fake cert N/A N/A N/A N/A key N/A data strip N/A key N/A self _fake_keys N/A N/A key N/A type x509 N/A N/A field value N/A N/A expectation items N/A N/A N/A field meta_data N/A N/A N/A N/A expected extend N/A N/A isinstance value list value N/A value N/A N/A N/A self assertEqual N/A sorted N/A list N/A set expected N/A sorted response N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data N/A N/A mock patch N/A MODPATH .BaseOpenStackService.get_user_data test_get_client_auth_certs N/A N/A self N/A N/A N/A N/A N/A self _test_get_client_auth_certs meta_data N/A meta keys N/A admin_cert0 admin_cert1 fake  cert N/A self _fake_keys N/A test_get_client_auth_certs_no_cert_data N/A N/A self N/A N/A N/A N/A N/A self _test_get_client_auth_certs meta_data N/A ret_value N/A N/A N/A x509constants PEM_HEADER encode N/A test_get_client_auth_certs_no_cert_data_exception N/A N/A self N/A N/A N/A N/A N/A self _test_get_client_auth_certs meta_data N/A ret_value N/A base NotExistingMetadataException N/A _test_get_network_details N/A N/A self mock_get_meta_data mock_get_content network_config content search_fail no_path N/A None None False False N/A N/A N/A N/A N/A mock_get_meta_data get return_value network_config N/A N/A mock_get_content return_value content N/A search_fail N/A N/A ret N/A N/A N/A self _service get_network_details N/A N/A N/A self assertFalse ret N/A N/A ret N/A N/A N/A self _service get_network_details N/A N/A N/A N/A N/A mock_get_meta_data get assert_called_once_with network_config N/A N/A network_config N/A no_path N/A N/A N/A N/A mock_get_content assert_called_once_with network N/A N/A network_config N/A N/A N/A N/A self assertIsNone ret N/A N/A no_path N/A N/A N/A N/A self assertIsNone ret N/A N/A nic0 N/A N/A base NetworkDetails N/A fake_json_response NAME0 N/A N/A N/A fake_json_response MAC0 upper N/A fake_json_response ADDRESS0 N/A fake_json_response ADDRESS60 N/A fake_json_response NETMASK0 N/A fake_json_response NETMASK60 N/A fake_json_response BROADCAST0 N/A fake_json_response GATEWAY0 N/A fake_json_response GATEWAY60 N/A N/A N/A fake_json_response DNSNS0 split N/A nic1 N/A N/A base NetworkDetails N/A fake_json_response NAME1 None N/A fake_json_response ADDRESS1 N/A fake_json_response ADDRESS61 N/A fake_json_response NETMASK1 N/A fake_json_response NETMASK61 N/A fake_json_response BROADCAST1 N/A fake_json_response GATEWAY1 N/A fake_json_response GATEWAY61 None N/A N/A N/A self assertEqual N/A nic0 nic1 ret N/A N/A N/A mock patch N/A MODPATH .BaseOpenStackService.get_content N/A N/A mock patch N/A MODPATH .BaseOpenStackService._get_meta_data test_get_network_details_no_config N/A N/A self N/A N/A N/A N/A N/A self _partial_test_get_network_details network_config None N/A test_get_network_details_no_path N/A N/A self N/A N/A N/A N/A N/A N/A self _fake_network_config pop content_path None N/A N/A N/A self _partial_test_get_network_details network_config N/A self _fake_network_config no_path True N/A test_get_network_details_search_fail N/A N/A self N/A N/A N/A N/A self _fake_content invalid format N/A N/A N/A self _partial_test_get_network_details content N/A self _fake_content search_fail True N/A test_get_network_details N/A N/A self N/A N/A N/A N/A N/A self _partial_test_get_network_details N/A N/A