Fixed ec2api_tempest_plugin test discovery issue

* On running tempest run -l, the ec2api-tempest-plugin is giving
  ImportError: Start directory is not importable: '/tmp/.venv/
  lib/python2.7/ec2api_tempest_plugin'. It is fixed by fixing
  the test discovery path.

* Added lxml and tempest as a Requires for the plugin.

Change-Id: Ie64d0e96565980201143c0547c8b63513c883ea4
This commit is contained in:
Chandan Kumar 2018-01-30 15:41:04 +05:30
parent 686e1cb309
commit 16c5d96269
2 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,8 @@ from ec2api_tempest_plugin import config_opts as aws_config
class AWSTempestPlugin(plugins.TempestPlugin):
def load_tests(self):
base_path = os.path.split(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))[0]
base_path = os.path.split(os.path.dirname(
os.path.abspath(__file__)))[0]
test_dir = "ec2api_tempest_plugin"
full_test_dir = os.path.join(base_path, test_dir)
return full_test_dir, base_path

View File

@ -10,3 +10,5 @@ six>=1.10.0 # MIT
testtools>=2.2.0 # MIT
paramiko>=2.0.0 # LGPLv2.1+
netaddr>=0.7.18 # BSD
lxml!=3.7.0,>=3.4.1 # BSD
tempest>=17.1.0 # Apache-2.0