Allow to run multiple kind of tempest tests

While I consider to add a scenario test to be executed on tempest,
base_path in tempest/plugin.py is fixed to api directory.
So api test should be put under tests/tempest.

Related Change-Id: Ieb710181c1e496742e1e019a6238e5e0bd922971

(cherry picked from commit f9725801d8)
Change-Id: I9923775806b095455ed3723e71410287bdf6cb1e
This commit is contained in:
fumihiko kakuma 2016-11-17 14:29:02 +09:00 committed by Armando Migliaccio
parent 2b27679fb6
commit 3160ade071
5 changed files with 2 additions and 6 deletions

View File

@ -26,8 +26,4 @@ then
# Make the workspace owned by the stack user
sudo chown -R $STACK_USER:$STACK_USER $BASE
else
echo "Unrecognized environment $VENV".
exit 1
fi

View File

@ -17,7 +17,7 @@ import netaddr
from tempest.lib import exceptions as lib_exc
from tempest import test
from neutron_dynamic_routing.tests.api import test_bgp_speaker_extensions as test_base # noqa
from neutron_dynamic_routing.tests.tempest.api import test_bgp_speaker_extensions as test_base # noqa
class BgpSpeakerTestJSONNegative(test_base.BgpSpeakerTestJSONBase):

View File

@ -23,7 +23,7 @@ class NeutronDynamicRoutingTempestPlugin(plugins.TempestPlugin):
def load_tests(self):
base_path = os.path.split(os.path.dirname(
os.path.abspath(neutron_dynamic_routing.__file__)))[0]
test_dir = "neutron_dynamic_routing/tests/api"
test_dir = "neutron_dynamic_routing/tests/tempest"
full_test_dir = os.path.join(base_path, test_dir)
return full_test_dir, base_path