]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix tempest api testing
authorMaru Newby <marun@redhat.com>
Mon, 9 Mar 2015 18:56:59 +0000 (18:56 +0000)
committerMaru Newby <marun@redhat.com>
Mon, 9 Mar 2015 21:22:24 +0000 (21:22 +0000)
This change adds the identity v2 paths to the list of copied modules
and updates the identity client init.

Change-Id: Ic02ba41eabfb78c49b23c905f1c5cc1d033e2d72

neutron/tests/api/contrib/clients.py
tools/copy_api_tests_from_tempest.sh

index 3c1681d69ee09e56c081cac82fc79c15c664cc9a..6ecaf7b4fb3ebae9073bca3640c1639f22f7b89f 100644 (file)
@@ -97,9 +97,12 @@ class Manager(manager.Manager):
         self.region_client = RegionClientJSON(self.auth_provider, **params)
         self.credentials_client = CredentialsClientJSON(self.auth_provider,
                                                         **params)
-        self.token_client = TokenClientJSON()
+        # Token clients do not use the catalog. They only need default_params.
+        self.token_client = TokenClientJSON(CONF.identity.uri,
+                                            **self.default_params)
         if CONF.identity_feature_enabled.api_v3:
-            self.token_v3_client = V3TokenClientJSON()
+            self.token_v3_client = V3TokenClientJSON(CONF.identity.uri_v3,
+                                                     **self.default_params)
 
 
 class AdminManager(Manager):
index 85ba0d479e5619380752435c1ad6d5f3a1c86f10..88c53f25f43cd5be6613d52d4af7d43b724c4fef 100755 (executable)
@@ -32,6 +32,8 @@ function copy_files {
         'tempest/common/utils'
         'tempest/services'
         'tempest/services/identity'
+        'tempest/services/identity/v2'
+        'tempest/services/identity/v2/json'
         'tempest/services/identity/v3'
         'tempest/services/identity/v3/json'
         'tempest/services/network'