[1chb1n, r=gnuoy] auto normalize amulet test definitions and amulet make targets; charm-helper sync.
This commit is contained in:
commit
ee0a1067c4
5
Makefile
5
Makefile
@ -13,10 +13,7 @@ test:
|
||||
@echo Starting amulet deployment tests...
|
||||
#NOTE(beisner): can remove -v after bug 1320357 is fixed
|
||||
# https://bugs.launchpad.net/amulet/+bug/1320357
|
||||
@juju test -v -p AMULET_HTTP_PROXY --timeout 900 \
|
||||
00-setup 14-basic-precise-icehouse 15-basic-trusty-icehouse \
|
||||
16-basic-trusty-icehouse-git 17-basic-trusty-juno \
|
||||
18-basic-trusty-juno-git
|
||||
@juju test -v -p AMULET_HTTP_PROXY,AMULET_OS_VIP --timeout 2700
|
||||
|
||||
bin/charm_helpers_sync.py:
|
||||
@mkdir -p bin
|
||||
|
@ -101,7 +101,8 @@ class OpenStackAmuletDeployment(AmuletDeployment):
|
||||
"""
|
||||
(self.precise_essex, self.precise_folsom, self.precise_grizzly,
|
||||
self.precise_havana, self.precise_icehouse,
|
||||
self.trusty_icehouse, self.trusty_juno, self.trusty_kilo) = range(8)
|
||||
self.trusty_icehouse, self.trusty_juno, self.trusty_kilo,
|
||||
self.utopic_juno, self.vivid_kilo) = range(10)
|
||||
releases = {
|
||||
('precise', None): self.precise_essex,
|
||||
('precise', 'cloud:precise-folsom'): self.precise_folsom,
|
||||
@ -110,7 +111,9 @@ class OpenStackAmuletDeployment(AmuletDeployment):
|
||||
('precise', 'cloud:precise-icehouse'): self.precise_icehouse,
|
||||
('trusty', None): self.trusty_icehouse,
|
||||
('trusty', 'cloud:trusty-juno'): self.trusty_juno,
|
||||
('trusty', 'cloud:trusty-kilo'): self.trusty_kilo}
|
||||
('trusty', 'cloud:trusty-kilo'): self.trusty_kilo,
|
||||
('utopic', None): self.utopic_juno,
|
||||
('vivid', None): self.vivid_kilo}
|
||||
return releases[(self.series, self.openstack)]
|
||||
|
||||
def _get_openstack_release_string(self):
|
||||
|
@ -459,6 +459,11 @@ class AMQPContext(OSContextGenerator):
|
||||
|
||||
ctxt['rabbitmq_hosts'] = ','.join(sorted(rabbitmq_hosts))
|
||||
|
||||
oslo_messaging_flags = conf.get('oslo-messaging-flags', None)
|
||||
if oslo_messaging_flags:
|
||||
ctxt['oslo_messaging_flags'] = config_flags_parser(
|
||||
oslo_messaging_flags)
|
||||
|
||||
if not context_complete(ctxt):
|
||||
return {}
|
||||
|
||||
|
0
tests/19-basic-trusty-kilo → tests/017-basic-trusty-kilo
Executable file → Normal file
0
tests/19-basic-trusty-kilo → tests/017-basic-trusty-kilo
Executable file → Normal file
9
tests/018-basic-utopic-juno
Executable file
9
tests/018-basic-utopic-juno
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
"""Amulet tests on a basic Cinder deployment on utopic-juno."""
|
||||
|
||||
from basic_deployment import CinderBasicDeployment
|
||||
|
||||
if __name__ == '__main__':
|
||||
deployment = CinderBasicDeployment(series='utopic')
|
||||
deployment.run_tests()
|
0
tests/21-basic-vivid-kilo → tests/019-basic-vivid-kilo
Executable file → Normal file
0
tests/21-basic-vivid-kilo → tests/019-basic-vivid-kilo
Executable file → Normal file
0
tests/20-basic-trusty-kilo-git → tests/053-basic-trusty-kilo-git
Executable file → Normal file
0
tests/20-basic-trusty-kilo-git → tests/053-basic-trusty-kilo-git
Executable file → Normal file
0
tests/22-basic-vivid-kilo-git → tests/054-basic-vivid-kilo-git
Executable file → Normal file
0
tests/22-basic-vivid-kilo-git → tests/054-basic-vivid-kilo-git
Executable file → Normal file
0
tests/basic_deployment.py
Executable file → Normal file
0
tests/basic_deployment.py
Executable file → Normal file
@ -101,7 +101,8 @@ class OpenStackAmuletDeployment(AmuletDeployment):
|
||||
"""
|
||||
(self.precise_essex, self.precise_folsom, self.precise_grizzly,
|
||||
self.precise_havana, self.precise_icehouse,
|
||||
self.trusty_icehouse, self.trusty_juno, self.trusty_kilo) = range(8)
|
||||
self.trusty_icehouse, self.trusty_juno, self.trusty_kilo,
|
||||
self.utopic_juno, self.vivid_kilo) = range(10)
|
||||
releases = {
|
||||
('precise', None): self.precise_essex,
|
||||
('precise', 'cloud:precise-folsom'): self.precise_folsom,
|
||||
@ -110,7 +111,9 @@ class OpenStackAmuletDeployment(AmuletDeployment):
|
||||
('precise', 'cloud:precise-icehouse'): self.precise_icehouse,
|
||||
('trusty', None): self.trusty_icehouse,
|
||||
('trusty', 'cloud:trusty-juno'): self.trusty_juno,
|
||||
('trusty', 'cloud:trusty-kilo'): self.trusty_kilo}
|
||||
('trusty', 'cloud:trusty-kilo'): self.trusty_kilo,
|
||||
('utopic', None): self.utopic_juno,
|
||||
('vivid', None): self.vivid_kilo}
|
||||
return releases[(self.series, self.openstack)]
|
||||
|
||||
def _get_openstack_release_string(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user