Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore Dict Str Str Str Str Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Str Call AttributeLoad NameLoad attr keyword Str Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A os N/A tempfile N/A mock N/A os_client_config openstack connection openstack profile openstack.tests.unit base N/A CONFIG_AUTH_URL http://127.0.0.1:5000/v2.0 N/A CONFIG_USERNAME BozoTheClown N/A CONFIG_PASSWORD TopSecret N/A CONFIG_PROJECT TheGrandPrizeGame N/A CONFIG_CACERT TrustMe N/A CLOUD_CONFIG N/A N/A 
clouds:
  sample:
    region_name: RegionOne
    auth:
      auth_url: {auth_url}
      username: {username}
      password: {password}
      project_name: {project}
  insecure:
    auth:
      auth_url: {auth_url}
      username: {username}
      password: {password}
      project_name: {project}
    cacert: {cacert}
    insecure: True
  cacert:
    auth:
      auth_url: {auth_url}
      username: {username}
      password: {password}
      project_name: {project}
    cacert: {cacert}
    insecure: False
 format auth_url CONFIG_AUTH_URL username CONFIG_USERNAME password CONFIG_PASSWORD project CONFIG_PROJECT cacert CONFIG_CACERT TestConnection N/A N/A base TestCase N/A test_other_parameters N/A N/A self mock_session_init N/A N/A N/A N/A mock_session_init return_value mock_session_init N/A mock_profile N/A N/A mock Mock N/A N/A mock_profile get_services N/A N/A mock Mock return_value N/A N/A conn N/A N/A connection Connection profile mock_profile authenticator 2 verify True cert cert user_agent 1 N/A args N/A auth user_agent verify cert 2 1 True cert N/A N/A N/A mock_session_init assert_called_with mock_profile args N/A N/A N/A self assertEqual mock_session_init N/A conn session N/A N/A N/A mock patch openstack.session.Session test_create_authenticator N/A N/A self mock_get_plugin N/A N/A N/A mock_plugin N/A N/A mock Mock N/A mock_loader N/A N/A mock Mock N/A mock_options N/A N/A N/A mock Mock dest auth_url N/A N/A mock Mock dest password N/A N/A mock Mock dest username N/A N/A mock_loader get_options N/A N/A mock Mock return_value mock_options N/A N/A mock_loader load_from_options N/A N/A mock Mock return_value mock_plugin N/A N/A mock_get_plugin return_value mock_loader N/A auth_args N/A auth_url username password 0 1 2 N/A conn N/A N/A connection Connection auth_plugin v2password auth_args N/A N/A N/A mock_get_plugin assert_called_with v2password N/A N/A N/A N/A mock_loader load_from_options assert_called_with auth_args N/A N/A N/A self assertEqual mock_plugin N/A conn authenticator N/A N/A N/A mock patch keystoneauth1.loading.base.get_plugin_loader test_default_plugin N/A N/A self mock_get_plugin N/A N/A N/A N/A N/A connection Connection N/A N/A N/A self assertTrue N/A mock_get_plugin called N/A N/A N/A self assertEqual N/A mock_get_plugin call_args N/A N/A mock call password N/A N/A N/A mock patch keystoneauth1.loading.base.get_plugin_loader test_pass_authenticator N/A N/A self mock_get_plugin N/A N/A N/A mock_plugin N/A N/A mock Mock N/A N/A mock_get_plugin return_value None N/A conn N/A N/A connection Connection authenticator mock_plugin N/A N/A N/A self assertFalse N/A mock_get_plugin called N/A N/A N/A self assertEqual mock_plugin N/A conn authenticator N/A N/A N/A mock patch keystoneauth1.loading.base.get_plugin_loader test_create_session N/A N/A self N/A N/A N/A auth N/A N/A mock Mock N/A prof N/A N/A profile Profile N/A conn N/A N/A connection Connection authenticator auth profile prof N/A N/A N/A self assertEqual auth N/A conn authenticator N/A N/A N/A self assertEqual prof N/A conn profile N/A N/A N/A self assertEqual openstack.cluster.v1._proxy N/A N/A N/A conn cluster __class__ __module__ N/A N/A N/A self assertEqual openstack.compute.v2._proxy N/A N/A N/A conn compute __class__ __module__ N/A N/A N/A self assertEqual openstack.database.v1._proxy N/A N/A N/A conn database __class__ __module__ N/A N/A N/A self assertEqual openstack.identity.v3._proxy N/A N/A N/A conn identity __class__ __module__ N/A N/A N/A self assertEqual openstack.image.v1._proxy N/A N/A N/A conn image __class__ __module__ N/A N/A N/A self assertEqual openstack.network.v2._proxy N/A N/A N/A conn network __class__ __module__ N/A N/A N/A self assertEqual openstack.object_store.v1._proxy N/A N/A N/A conn object_store __class__ __module__ N/A N/A N/A self assertEqual openstack.orchestration.v1._proxy N/A N/A N/A conn orchestration __class__ __module__ N/A N/A N/A self assertEqual openstack.telemetry.v2._proxy N/A N/A N/A conn telemetry __class__ __module__ N/A _prepare_test_config N/A N/A self N/A N/A N/A config_dir N/A N/A tempfile mkdtemp N/A config_path N/A N/A N/A os path join config_dir clouds.yaml N/A N/A open config_path w conf N/A N/A N/A N/A conf write CLOUD_CONFIG N/A N/A N/A os environ N/A OS_CLIENT_CONFIG_FILE config_path N/A test_from_config_given_data N/A N/A self N/A N/A N/A N/A N/A self _prepare_test_config N/A data N/A N/A N/A N/A os_client_config OpenStackConfig get_one_cloud sample N/A sot N/A N/A connection from_config cloud_config data N/A N/A N/A self assertEqual CONFIG_USERNAME N/A N/A sot authenticator _username N/A N/A N/A self assertEqual CONFIG_PASSWORD N/A N/A sot authenticator _password N/A N/A N/A self assertEqual CONFIG_AUTH_URL N/A N/A sot authenticator auth_url N/A N/A N/A self assertEqual CONFIG_PROJECT N/A N/A sot authenticator _project_name N/A test_from_config_given_name N/A N/A self N/A N/A N/A N/A N/A self _prepare_test_config N/A sot N/A N/A connection from_config cloud_name sample N/A N/A N/A self assertEqual CONFIG_USERNAME N/A N/A sot authenticator _username N/A N/A N/A self assertEqual CONFIG_PASSWORD N/A N/A sot authenticator _password N/A N/A N/A self assertEqual CONFIG_AUTH_URL N/A N/A sot authenticator auth_url N/A N/A N/A self assertEqual CONFIG_PROJECT N/A N/A sot authenticator _project_name N/A test_from_config_given_options N/A N/A self N/A N/A N/A N/A N/A self _prepare_test_config N/A version 100 Opts N/A object N/A N/A compute_api_version version N/A N/A sot N/A N/A connection from_config cloud_name sample options Opts N/A pref N/A N/A N/A N/A sot session profile get_filter compute N/A N/A N/A self assertEqual N/A v version N/A pref version N/A test_from_config_verify N/A N/A self N/A N/A N/A N/A N/A self _prepare_test_config N/A sot N/A N/A connection from_config cloud_name insecure N/A N/A N/A self assertFalse N/A N/A sot session verify N/A sot N/A N/A connection from_config cloud_name cacert N/A N/A N/A self assertEqual CONFIG_CACERT N/A N/A sot session verify N/A test_authorize_works N/A N/A self N/A N/A N/A fake_session N/A N/A mock Mock N/A fake_headers N/A X-Auth-Token FAKE_TOKEN N/A N/A N/A fake_session get_auth_headers return_value fake_headers N/A sot N/A N/A connection Connection session fake_session authenticator N/A N/A mock Mock N/A res N/A N/A sot authorize N/A N/A N/A self assertEqual FAKE_TOKEN res N/A test_authorize_silent_failure N/A N/A self N/A N/A N/A fake_session N/A N/A mock Mock N/A N/A N/A fake_session get_auth_headers return_value None N/A sot N/A N/A connection Connection session fake_session authenticator N/A N/A mock Mock N/A res N/A N/A sot authorize N/A N/A N/A self assertIsNone res N/A N/A