Skip to content

Commit e9ff42e

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Revert "Skip identity v2 functional tests""
2 parents a4b05b4 + bca1a93 commit e9ff42e

9 files changed

Lines changed: 9 additions & 24 deletions

File tree

functional/tests/identity/v2/test_catalog.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class CatalogTests(test_identity.IdentityTests):
2017

2118
def test_catalog_list(self):

functional/tests/identity/v2/test_ec2_credentials.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class EC2CredentialsTests(test_identity.IdentityTests):
2017

2118
def test_ec2_credentials_create(self):

functional/tests/identity/v2/test_endpoint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class EndpointTests(test_identity.IdentityTests):
2017

2118
def test_endpoint_create(self):

functional/tests/identity/v2/test_project.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from tempest_lib.common.utils import data_utils
1614

1715
from functional.tests.identity.v2 import test_identity
1816

1917

20-
@testtools.skip('bug/1539780')
2118
class ProjectTests(test_identity.IdentityTests):
2219

2320
def test_project_create(self):

functional/tests/identity/v2/test_role.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class RoleTests(test_identity.IdentityTests):
2017

2118
def test_role_create(self):

functional/tests/identity/v2/test_service.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class ServiceTests(test_identity.IdentityTests):
2017

2118
def test_service_create(self):

functional/tests/identity/v2/test_token.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from functional.tests.identity.v2 import test_identity
1614

1715

18-
@testtools.skip('bug/1539780')
1916
class TokenTests(test_identity.IdentityTests):
2017

2118
def test_token_issue(self):

functional/tests/identity/v2/test_user.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
import testtools
14-
1513
from tempest_lib.common.utils import data_utils
1614

1715
from functional.common import exceptions
1816
from functional.tests.identity.v2 import test_identity
1917

2018

21-
@testtools.skip('bug/1539780')
2219
class UserTests(test_identity.IdentityTests):
2320

2421
def test_user_create(self):

functional/tests/identity/v3/test_identity.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13+
import os
14+
1315
from tempest_lib.common.utils import data_utils
1416

1517
from functional.common import test
@@ -47,6 +49,13 @@ def setUpClass(cls):
4749
if hasattr(super(IdentityTests, cls), 'setUpClass'):
4850
super(IdentityTests, cls).setUpClass()
4951

52+
# prepare v3 env
53+
auth_url = os.environ.get('OS_AUTH_URL')
54+
auth_url = auth_url.replace('v2.0', 'v3')
55+
os.environ['OS_AUTH_URL'] = auth_url
56+
os.environ['OS_IDENTITY_API_VERSION'] = '3'
57+
os.environ['OS_AUTH_TYPE'] = 'v3password'
58+
5059
# create dummy domain
5160
cls.domain_name = data_utils.rand_name('TestDomain')
5261
cls.domain_description = data_utils.rand_name('description')

0 commit comments

Comments
 (0)