summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2015-09-11 10:05:47 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2015-09-11 15:01:30 +0100
commit7293f39f4f93720e792c37937461e99758f870bd (patch)
treec5ebd062b127a0bbee71908f8922ce4c72ef892f
parent120e05f78915f29c559b1b5caf3cab2dd022dc87 (diff)
downloadciat-tester-7293f39f4f93720e792c37937461e99758f870bd.tar.gz
Remove hardcoded baserock build test support from generic code.
-rwxr-xr-xopenstack/tester34
1 files changed, 4 insertions, 30 deletions
diff --git a/openstack/tester b/openstack/tester
index f26ee59..c65e19c 100755
--- a/openstack/tester
+++ b/openstack/tester
@@ -392,27 +392,12 @@ class ReleaseApp(cliapp.Application):
'ARCH:HOST:PATH that VMs can be deployed to',
default=None,
group=group_main)
- self.settings.string(['trove-host'],
- 'Address of Trove for test systems to build from',
- default=None,
- group=group_main)
- self.settings.string(['trove-id'],
- 'ID of Trove for test systems to build from',
- default=None,
- group=group_main)
- self.settings.string(['build-ref-prefix'],
- 'Prefix of build branches for test systems',
- default=None,
- group=group_main)
self.settings.string(['net-id'],
'Openstack network ID',
default=None,
group=group_main)
- @staticmethod
- def _run_tests(instance, system_path, system_morph,
- (trove_host, trove_id, build_ref_prefix),
- morph_helper, systems):
+ def run_tests(self, instance):
instance.wait_until_online()
tests = []
@@ -434,8 +419,7 @@ class ReleaseApp(cliapp.Application):
test(instance)
def deploy_and_test_systems(self, cluster_path,
- deployment_hosts, build_test_config,
- net_id):
+ deployment_hosts, net_id):
"""Run the deployments and tests"""
version = 'release-test'
@@ -462,18 +446,13 @@ class ReleaseApp(cliapp.Application):
instance = deployment.deploy()
try:
- self._run_tests(instance, system_path, system_morph,
- build_test_config, morph_helper, systems)
+ self.run_tests(instance)
finally:
instance.delete()
def process_args(self, args):
"""Process the command line args and kick off the builds/tests"""
- if self.settings['build-ref-prefix'] is None:
- self.settings['build-ref-prefix'] = (
- os.path.join(self.settings['trove-id'], 'builds'))
- for setting in ('deployment-host', 'trove-host',
- 'trove-id', 'build-ref-prefix', 'net-id'):
+ for setting in ('deployment-host', 'net-id'):
self.settings.require(setting)
deployment_hosts = {}
@@ -486,15 +465,10 @@ class ReleaseApp(cliapp.Application):
# TODO: Don't assume root is the user with deploy access
deployment_hosts[arch] = VMHost(user, address, disk_path)
- build_test_config = (self.settings['trove-host'],
- self.settings['trove-id'],
- self.settings['build-ref-prefix'])
-
if len(args) != 1:
raise cliapp.AppException('Usage: release-test CLUSTER')
cluster_path = morphlib.util.sanitise_morphology_path(args[0])
self.deploy_and_test_systems(cluster_path, deployment_hosts,
- build_test_config,
self.settings['net-id'])