summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-02 00:03:35 +0000
committerGerrit Code Review <review@openstack.org>2016-02-02 00:03:35 +0000
commite9ff42eee73de147339c42bca90f777a8f40f5c1 (patch)
tree85e04be07c1ea12764b105d67f7a7b882ed3be99
parenta4b05b426eae4ad10cf795d488e29edd47dbcbe1 (diff)
parentbca1a930f49b731001c1a06f78b0ff516af9959a (diff)
downloadpython-openstackclient-e9ff42eee73de147339c42bca90f777a8f40f5c1.tar.gz
Merge "Revert "Skip identity v2 functional tests""
-rw-r--r--functional/tests/identity/v2/test_catalog.py3
-rw-r--r--functional/tests/identity/v2/test_ec2_credentials.py3
-rw-r--r--functional/tests/identity/v2/test_endpoint.py3
-rw-r--r--functional/tests/identity/v2/test_project.py3
-rw-r--r--functional/tests/identity/v2/test_role.py3
-rw-r--r--functional/tests/identity/v2/test_service.py3
-rw-r--r--functional/tests/identity/v2/test_token.py3
-rw-r--r--functional/tests/identity/v2/test_user.py3
-rw-r--r--functional/tests/identity/v3/test_identity.py9
9 files changed, 9 insertions, 24 deletions
diff --git a/functional/tests/identity/v2/test_catalog.py b/functional/tests/identity/v2/test_catalog.py
index 7b5c0f97..3a1f7e11 100644
--- a/functional/tests/identity/v2/test_catalog.py
+++ b/functional/tests/identity/v2/test_catalog.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class CatalogTests(test_identity.IdentityTests):
def test_catalog_list(self):
diff --git a/functional/tests/identity/v2/test_ec2_credentials.py b/functional/tests/identity/v2/test_ec2_credentials.py
index 910229db..86702c0c 100644
--- a/functional/tests/identity/v2/test_ec2_credentials.py
+++ b/functional/tests/identity/v2/test_ec2_credentials.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class EC2CredentialsTests(test_identity.IdentityTests):
def test_ec2_credentials_create(self):
diff --git a/functional/tests/identity/v2/test_endpoint.py b/functional/tests/identity/v2/test_endpoint.py
index aac61263..0aed3220 100644
--- a/functional/tests/identity/v2/test_endpoint.py
+++ b/functional/tests/identity/v2/test_endpoint.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class EndpointTests(test_identity.IdentityTests):
def test_endpoint_create(self):
diff --git a/functional/tests/identity/v2/test_project.py b/functional/tests/identity/v2/test_project.py
index 52c4639e..3a5e8e81 100644
--- a/functional/tests/identity/v2/test_project.py
+++ b/functional/tests/identity/v2/test_project.py
@@ -10,14 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from tempest_lib.common.utils import data_utils
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class ProjectTests(test_identity.IdentityTests):
def test_project_create(self):
diff --git a/functional/tests/identity/v2/test_role.py b/functional/tests/identity/v2/test_role.py
index c0eb5fc7..e542a5fb 100644
--- a/functional/tests/identity/v2/test_role.py
+++ b/functional/tests/identity/v2/test_role.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class RoleTests(test_identity.IdentityTests):
def test_role_create(self):
diff --git a/functional/tests/identity/v2/test_service.py b/functional/tests/identity/v2/test_service.py
index 716966fc..bd982be1 100644
--- a/functional/tests/identity/v2/test_service.py
+++ b/functional/tests/identity/v2/test_service.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class ServiceTests(test_identity.IdentityTests):
def test_service_create(self):
diff --git a/functional/tests/identity/v2/test_token.py b/functional/tests/identity/v2/test_token.py
index 1bd7baba..bac2b0ac 100644
--- a/functional/tests/identity/v2/test_token.py
+++ b/functional/tests/identity/v2/test_token.py
@@ -10,12 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class TokenTests(test_identity.IdentityTests):
def test_token_issue(self):
diff --git a/functional/tests/identity/v2/test_user.py b/functional/tests/identity/v2/test_user.py
index 5cd16dbe..41895e7e 100644
--- a/functional/tests/identity/v2/test_user.py
+++ b/functional/tests/identity/v2/test_user.py
@@ -10,15 +10,12 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from tempest_lib.common.utils import data_utils
from functional.common import exceptions
from functional.tests.identity.v2 import test_identity
-@testtools.skip('bug/1539780')
class UserTests(test_identity.IdentityTests):
def test_user_create(self):
diff --git a/functional/tests/identity/v3/test_identity.py b/functional/tests/identity/v3/test_identity.py
index 6aeddccc..3164e8fb 100644
--- a/functional/tests/identity/v3/test_identity.py
+++ b/functional/tests/identity/v3/test_identity.py
@@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import os
+
from tempest_lib.common.utils import data_utils
from functional.common import test
@@ -47,6 +49,13 @@ class IdentityTests(test.TestCase):
if hasattr(super(IdentityTests, cls), 'setUpClass'):
super(IdentityTests, cls).setUpClass()
+ # prepare v3 env
+ auth_url = os.environ.get('OS_AUTH_URL')
+ auth_url = auth_url.replace('v2.0', 'v3')
+ os.environ['OS_AUTH_URL'] = auth_url
+ os.environ['OS_IDENTITY_API_VERSION'] = '3'
+ os.environ['OS_AUTH_TYPE'] = 'v3password'
+
# create dummy domain
cls.domain_name = data_utils.rand_name('TestDomain')
cls.domain_description = data_utils.rand_name('description')