Merge lp:~abentley/juju-ci-tools/industrial-test-hotfix into lp:juju-ci-tools

Proposed by Aaron Bentley
Status: Merged
Merged at revision: 1599
Proposed branch: lp:~abentley/juju-ci-tools/industrial-test-hotfix
Merge into: lp:juju-ci-tools
Diff against target: 29 lines (+9/-3)
1 file modified
industrial_test.py (+9/-3)
To merge this branch: bzr merge lp:~abentley/juju-ci-tools/industrial-test-hotfix
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+306155@code.launchpad.net

Commit message

Fix two industrial tests bugs.

Description of the change

Fix bugs 1624376 and 1624384.

This gives Joyent 2.5x as much time to start machines. It uses restore_backup correctly, instead of treating it as a context manager.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

Thank you

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'industrial_test.py'
2--- industrial_test.py 2016-09-15 15:00:11 +0000
3+++ industrial_test.py 2016-09-19 21:22:15 +0000
4@@ -731,7 +731,13 @@
5 application_names.append(application)
6 timeout_start = datetime.now()
7 yield results
8- status = client.wait_for_started(start=timeout_start)
9+ # Joyent needs longer to deploy so many containers (bug #1624384).
10+ if client.env.config['type'] == 'joyent':
11+ deploy_many_timeout = 3000
12+ else:
13+ deploy_many_timeout = 1200
14+ status = client.wait_for_started(deploy_many_timeout,
15+ start=timeout_start)
16 results['result'] = True
17 yield results
18 results = {'test_id': 'remove-machine-many-container'}
19@@ -789,8 +795,8 @@
20 wait_for_state_server_to_shutdown(
21 host, controller_client, instance_id)
22 yield results
23- with controller_client.restore_backup(backup_file):
24- yield results
25+ controller_client.restore_backup(backup_file)
26+ yield results
27 finally:
28 os.unlink(backup_file)
29 with wait_for_started(controller_client):

Subscribers

People subscribed via source and target branches