Module ImportFrom alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad 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 NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad 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 NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list
N/A keystoneclient exceptions ksexception N/A mock ironic.common exception ironic.common keystone ironic.tests base FakeCatalog N/A object N/A url_for N/A N/A self N/A kwargs N/A N/A fake-url N/A N/A FakeAccessInfo N/A object N/A will_expire_soon N/A N/A self N/A N/A N/A N/A N/A FakeClient N/A object N/A __init__ N/A N/A self N/A kwargs N/A N/A N/A self service_catalog N/A FakeCatalog N/A N/A self auth_ref N/A FakeAccessInfo N/A has_service_catalog N/A N/A self N/A N/A N/A True N/A N/A KeystoneTestCase 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 KeystoneTestCase self setUp N/A N/A N/A self config group keystone_authtoken auth_uri http://127.0.0.1:9898/ admin_user fake admin_password fake admin_tenant_name fake N/A N/A N/A self config group keystone region_name fake N/A N/A keystone _KS_CLIENT None N/A test_failure_authorization N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception KeystoneFailure N/A keystone get_service_url N/A test_get_url N/A N/A self mock_ks mock_uf N/A N/A N/A fake_url http://127.0.0.1:6385 N/A N/A mock_uf return_value fake_url N/A N/A mock_ks return_value N/A FakeClient N/A res N/A N/A keystone get_service_url N/A N/A N/A self assertEqual fake_url res N/A N/A N/A N/A mock patch object FakeCatalog url_for autospec True N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_url_not_found N/A N/A self mock_ks mock_uf N/A N/A N/A N/A mock_uf side_effect N/A ksexception EndpointNotFound N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self assertRaises N/A exception CatalogNotFound N/A keystone get_service_url N/A N/A N/A N/A mock patch object FakeCatalog url_for autospec True N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_no_catalog N/A N/A self mock_ks mock_hsc N/A N/A N/A N/A mock_hsc return_value False N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self assertRaises N/A exception KeystoneFailure N/A keystone get_service_url N/A N/A N/A N/A mock patch object FakeClient has_service_catalog autospec True N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_unauthorized N/A N/A self mock_ks N/A N/A N/A N/A mock_ks side_effect N/A ksexception Unauthorized N/A N/A N/A self assertRaises N/A exception KeystoneUnauthorized N/A keystone get_service_url N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_get_service_url_fail_missing_auth_uri N/A N/A self N/A N/A N/A N/A N/A self config group keystone_authtoken auth_uri None N/A N/A N/A self assertRaises N/A exception KeystoneFailure N/A keystone get_service_url N/A test_get_service_url_versionless_v2 N/A N/A self mock_ks N/A N/A N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self config group keystone_authtoken auth_uri http://127.0.0.1 N/A expected_url http://127.0.0.1/v2.0 N/A N/A N/A keystone get_service_url N/A N/A N/A mock_ks assert_called_once_with username fake password fake tenant_name fake region_name fake auth_url expected_url N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_get_service_url_versionless_v3 N/A N/A self mock_ks N/A N/A N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self config group keystone_authtoken auth_version v3.0 auth_uri http://127.0.0.1 N/A expected_url http://127.0.0.1/v3 N/A N/A N/A keystone get_service_url N/A N/A N/A mock_ks assert_called_once_with username fake password fake tenant_name fake region_name fake auth_url expected_url N/A N/A N/A mock patch keystoneclient.v3.client.Client autospec True test_get_service_url_version_override N/A N/A self mock_ks N/A N/A N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self config group keystone_authtoken auth_uri http://127.0.0.1/v2.0/ N/A expected_url http://127.0.0.1/v2.0 N/A N/A N/A keystone get_service_url N/A N/A N/A mock_ks assert_called_once_with username fake password fake tenant_name fake region_name fake auth_url expected_url N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_get_admin_auth_token N/A N/A self mock_ks N/A N/A N/A fake_client N/A FakeClient N/A N/A fake_client auth_token 123456 N/A N/A mock_ks return_value fake_client N/A N/A N/A self assertEqual 123456 N/A N/A keystone get_admin_auth_token N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_get_region_name_v2 N/A N/A self mock_ks N/A N/A N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self config group keystone region_name fake_region N/A expected_url http://127.0.0.1:9898/v2.0 N/A expected_region fake_region N/A N/A N/A keystone get_service_url N/A N/A N/A mock_ks assert_called_once_with username fake password fake tenant_name fake region_name expected_region auth_url expected_url N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_get_region_name_v3 N/A N/A self mock_ks N/A N/A N/A N/A mock_ks return_value N/A FakeClient N/A N/A N/A self config group keystone region_name fake_region N/A N/A N/A self config group keystone_authtoken auth_version v3.0 N/A expected_url http://127.0.0.1:9898/v3 N/A expected_region fake_region N/A N/A N/A keystone get_service_url N/A N/A N/A mock_ks assert_called_once_with username fake password fake tenant_name fake region_name expected_region auth_url expected_url N/A N/A N/A mock patch keystoneclient.v3.client.Client autospec True test_cache_client_init N/A N/A self mock_ks N/A N/A N/A fake_client N/A FakeClient N/A N/A mock_ks return_value fake_client N/A N/A N/A self assertEqual fake_client N/A N/A keystone _get_ksclient N/A N/A N/A self assertEqual fake_client N/A keystone _KS_CLIENT N/A N/A N/A self assertEqual 1 N/A mock_ks call_count N/A N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_cache_client_cached N/A N/A self mock_ks mock_expire N/A N/A N/A N/A mock_expire return_value False N/A fake_client N/A FakeClient N/A N/A keystone _KS_CLIENT fake_client N/A N/A N/A self assertEqual fake_client N/A N/A keystone _get_ksclient N/A N/A N/A self assertEqual fake_client N/A keystone _KS_CLIENT N/A N/A N/A self assertFalse N/A mock_ks called N/A N/A N/A N/A mock patch object FakeAccessInfo will_expire_soon autospec True N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True test_cache_client_expired N/A N/A self mock_ks mock_expire N/A N/A N/A N/A mock_expire return_value True N/A fake_client N/A FakeClient N/A N/A keystone _KS_CLIENT fake_client N/A new_client N/A FakeClient N/A N/A mock_ks return_value new_client N/A N/A N/A self assertEqual new_client N/A N/A keystone _get_ksclient N/A N/A N/A self assertEqual new_client N/A keystone _KS_CLIENT N/A N/A N/A self assertEqual 1 N/A mock_ks call_count N/A N/A N/A N/A mock patch object FakeAccessInfo will_expire_soon autospec True N/A N/A mock patch keystoneclient.v2_0.client.Client autospec True N/A