Tempest Fix for Gate

Note that the change under utils.py results in a failure
when trying to run the tempests via regular methods e.g. nosetests
If this change will hold in gate, more changes to the tempest_tests
dir will be needed. For now, run tempests using testr:
From within  /opt/stack/tempest: 'testr run vitrage_tempest_tests'

Change-Id: I7825514493ae0e8461a1a02fb5a20e1b5fe0d8ac
This commit is contained in:
Noam Bloom 2016-05-16 16:15:02 +03:00
parent 788d07ef36
commit 55839ca8db
2 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@ admin_role = admin
# API key to use when authenticating. (string value) # API key to use when authenticating. (string value)
# This option is deprecated for removal. # This option is deprecated for removal.
# Its value may be silently ignored in the future. # Its value may be silently ignored in the future.
password = password password = secretadmin
# The identity region name to use. Also used as the other services' # The identity region name to use. Also used as the other services'
@ -80,4 +80,4 @@ admin_project_name = admin
# authenticating requests made by project isolation to create users # authenticating requests made by project isolation to create users
# and projects (string value) # and projects (string value)
# Deprecated group/name - [identity]/admin_password # Deprecated group/name - [identity]/admin_password
admin_password = password admin_password = secretadmin

View File

@ -28,7 +28,9 @@ sudo cp $BASE/new/tempest/etc/logging.conf.sample $BASE/new/tempest/etc/logging.
(cd $BASE/new/vitrage/; sudo pip install -r requirements.txt -r test-requirements.txt) (cd $BASE/new/vitrage/; sudo pip install -r requirements.txt -r test-requirements.txt)
(cd $BASE/new/vitrage/; sudo python setup.py install) (cd $BASE/new/vitrage/; sudo python setup.py install)
(cd $BASE/new/tempest/; sudo rm -rf .testrepository)
(cd $BASE/new/tempest/; sudo testr init) (cd $BASE/new/tempest/; sudo testr init)
(cd $BASE/new/tempest/; sudo sh -c 'testr list-tests vitrage_tempest_tests')
(cd $BASE/new/tempest/; sudo sh -c 'testr list-tests vitrage_tempest_tests | grep -E "topology" > vitrage_tempest_tests.list') (cd $BASE/new/tempest/; sudo sh -c 'testr list-tests vitrage_tempest_tests | grep -E "topology" > vitrage_tempest_tests.list')
(cd $BASE/new/tempest/; sudo sh -c 'testr run --subunit --load-list=vitrage_tempest_tests.list | subunit-trace --fails') (cd $BASE/new/tempest/; sudo sh -c 'testr run --subunit --load-list=vitrage_tempest_tests.list | subunit-trace --fails')