Split glanceclient functional tests
Prepare for the Image API v1 to be removed from glance during Rocky by splitting the functional tests that hit v1 from the tests that hit v2. Introduce a new job that runs the functional-v1 tests against a devstack running glance stable/queens, and configure this job for both check and gate for the glanceclient. The v2 functional tests continue to be run for both check and gate against a devstack running glance master. Change-Id: Ifa98ada26a84e4cca3ea8c98173f61a6174cca27
This commit is contained in:
@@ -48,9 +48,10 @@ class ClientTestBase(base.ClientTestBase):
|
||||
|
||||
def _get_clients(self):
|
||||
self.creds = credentials().get_auth_args()
|
||||
venv_name = os.environ.get('OS_TESTENV_NAME', 'functional')
|
||||
cli_dir = os.environ.get(
|
||||
'OS_GLANCECLIENT_EXEC_DIR',
|
||||
os.path.join(os.path.abspath('.'), '.tox/functional/bin'))
|
||||
os.path.join(os.path.abspath('.'), '.tox/%s/bin' % venv_name))
|
||||
|
||||
return base.CLIClient(
|
||||
username=self.creds['username'],
|
||||
|
||||
Reference in New Issue
Block a user