[corey.bryant,trivial] Add icehouse git amulet tests back with new branches.

This commit is contained in:
Corey Bryant 2015-07-09 18:16:49 +00:00
parent d7a823e693
commit 4f9204bb69
2 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/python
"""Amulet tests on a basic openstack-dashboard git deployment on trusty-icehouse."""
from basic_deployment import OpenstackDashboardBasicDeployment
if __name__ == '__main__':
deployment = OpenstackDashboardBasicDeployment(series='trusty', git=True)
deployment.run_tests()

View File

@ -59,16 +59,21 @@ class OpenstackDashboardBasicDeployment(OpenStackAmuletDeployment):
"""Configure all of the services."""
horizon_config = {}
if self.git:
branch = 'stable/' + self._get_openstack_release_string()
release = self._get_openstack_release_string()
reqs_branch = 'stable/' + release
if self._get_openstack_release() == self.trusty_icehouse:
horizon_branch = release + '-eol'
else:
horizon_branch = 'stable/' + release
amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY')
openstack_origin_git = {
'repositories': [
{'name': 'requirements',
'repository': 'git://github.com/openstack/requirements',
'branch': branch},
'branch': reqs_branch},
{'name': 'horizon',
'repository': 'git://github.com/openstack/horizon',
'branch': branch},
'branch': horizon_branch},
],
'directory': '/mnt/openstack-git',
'http_proxy': amulet_http_proxy,