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. Realated Change-Id: Ieb710181c1e496742e1e019a6238e5e0bd922971 Change-Id: I9923775806b095455ed3723e71410287bdf6cb1e
This commit is contained in:
parent
130861b86b
commit
f9725801d8
@ -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
|
||||
|
@ -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):
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user