Merge lp:~1chb1n/charms/trusty/heat/next-amulet-mitaka-1601 into lp:~openstack-charmers-archive/charms/trusty/heat/next

Proposed by Ryan Beisner
Status: Needs review
Proposed branch: lp:~1chb1n/charms/trusty/heat/next-amulet-mitaka-1601
Merge into: lp:~openstack-charmers-archive/charms/trusty/heat/next
Diff against target: 75 lines (+17/-10)
1 file modified
tests/basic_deployment.py (+17/-10)
To merge this branch: bzr merge lp:~1chb1n/charms/trusty/heat/next-amulet-mitaka-1601
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+282499@code.launchpad.net

Description of the change

Enable Mitaka amulet tests. Wait for unit status instead of sleeping.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #16124 heat-next for 1chb1n mp282499
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/16124/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #17259 heat-next for 1chb1n mp282499
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/17259/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8767 heat-next for 1chb1n mp282499
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/14492599/
Build: http://10.245.162.77:8080/job/charm_amulet_test/8767/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8775 heat-next for 1chb1n mp282499
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/14495863/
Build: http://10.245.162.77:8080/job/charm_amulet_test/8775/

69. By Ryan Beisner

disable xenial test, not quite yet juju-deployable with current tools/streams

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #17332 heat-next for 1chb1n mp282499
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/17332/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #16193 heat-next for 1chb1n mp282499
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/16193/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8787 heat-next for 1chb1n mp282499
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/8787/

70. By Ryan Beisner

rebase

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #16615 heat-next for 1chb1n mp282499
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/16615/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #17780 heat-next for 1chb1n mp282499
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/17780/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8911 heat-next for 1chb1n mp282499
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/14584673/
Build: http://10.245.162.77:8080/job/charm_amulet_test/8911/

71. By Ryan Beisner

update amulet test for systemd-based combos

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #16775 heat-next for 1chb1n mp282499
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/16775/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #17954 heat-next for 1chb1n mp282499
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/17954/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8976 heat-next for 1chb1n mp282499
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/14600585/
Build: http://10.245.162.77:8080/job/charm_amulet_test/8976/

Unmerged revisions

71. By Ryan Beisner

update amulet test for systemd-based combos

70. By Ryan Beisner

rebase

69. By Ryan Beisner

disable xenial test, not quite yet juju-deployable with current tools/streams

68. By Ryan Beisner

flip all releases on for amulet tests

67. By Ryan Beisner

wait for unit status instead of sleeping before amulet tests

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/018-basic-trusty-liberty' (properties changed: -x to +x)
2=== modified file 'tests/019-basic-trusty-mitaka' (properties changed: -x to +x)
3=== modified file 'tests/020-basic-wily-liberty' (properties changed: -x to +x)
4=== modified file 'tests/basic_deployment.py'
5--- tests/basic_deployment.py 2015-06-12 13:50:03 +0000
6+++ tests/basic_deployment.py 2016-01-22 19:20:49 +0000
7@@ -4,7 +4,6 @@
8 Basic heat functional test.
9 """
10 import amulet
11-import time
12 from heatclient.common import template_utils
13
14 from charmhelpers.contrib.openstack.amulet.deployment import (
15@@ -41,6 +40,11 @@
16 self._add_relations()
17 self._configure_services()
18 self._deploy()
19+
20+ u.log.info('Waiting on extended status checks...')
21+ exclude_services = ['mysql']
22+ self._auto_wait_for_status(exclude_services=exclude_services)
23+
24 self._initialize_tests()
25
26 def _add_services(self):
27@@ -107,9 +111,6 @@
28 u.log.debug('openstack release str: {}'.format(
29 self._get_openstack_release_string()))
30
31- # Let things settle a bit before moving forward
32- time.sleep(30)
33-
34 # Authenticate admin with keystone
35 self.keystone = u.authenticate_keystone_admin(self.keystone_sentry,
36 user='admin',
37@@ -563,6 +564,7 @@
38 def test_410_heat_stack_create_delete(self):
39 """Create a heat stack from template, confirm that a corresponding
40 nova compute resource is spawned, delete stack."""
41+ u.log.debug('Creating, deleting heat stack (compute)...')
42 self._image_create()
43 self._keypair_create()
44 self._stack_create()
45@@ -585,19 +587,24 @@
46 conf_file = '/etc/heat/heat.conf'
47
48 # Services which are expected to restart upon config change
49- services = ['heat-api',
50- 'heat-api-cfn',
51- 'heat-engine']
52+ services = {
53+ 'heat-api': conf_file,
54+ 'heat-api-cfn': conf_file,
55+ 'heat-engine': conf_file
56+ }
57
58 # Make config change, check for service restarts
59 u.log.debug('Making config change on {}...'.format(juju_service))
60+ mtime = u.get_sentry_time(sentry)
61 self.d.configure(juju_service, set_alternate)
62
63 sleep_time = 30
64- for s in services:
65+ for s, conf_file in services.iteritems():
66 u.log.debug("Checking that service restarted: {}".format(s))
67- if not u.service_restarted(sentry, s,
68- conf_file, sleep_time=sleep_time):
69+ if not u.validate_service_config_changed(sentry, mtime, s,
70+ conf_file,
71+ sleep_time=sleep_time):
72+
73 self.d.configure(juju_service, set_default)
74 msg = "service {} didn't restart after config change".format(s)
75 amulet.raise_status(amulet.FAIL, msg=msg)

Subscribers

People subscribed via source and target branches