Пример #1
0
 def _set_identity_clients(self):
     params = {
         'service': CONF.identity.catalog_type,
         'region': CONF.identity.region
     }
     params.update(self.default_params_with_timeout_values)
     params_v2_admin = params.copy()
     params_v2_admin['endpoint_type'] = CONF.identity.v2_admin_endpoint_type
     # Client uses admin endpoint type of Keystone API v2
     self.tenants_client = tenants_client.TenantsClient(self.auth_provider,
                                                        **params_v2_admin)
     # Client uses admin endpoint type of Keystone API v3
     self.projects_client = projects_client.ProjectsClient(
         self.auth_provider, **params_v2_admin)
Пример #2
0
 def setUp(self):
     super(TestProjectsClient, self).setUp()
     fake_auth = fake_auth_provider.FakeAuthProvider()
     self.client = projects_client.ProjectsClient(fake_auth, 'identity',
                                                  'regionOne')