Merge lp:~cprov/uci-engine/ppa-creator-fix into lp:uci-engine

Proposed by Celso Providelo
Status: Merged
Approved by: Celso Providelo
Approved revision: 787
Merged at revision: 786
Proposed branch: lp:~cprov/uci-engine/ppa-creator-fix
Merge into: lp:uci-engine
Diff against target: 63 lines (+36/-1)
3 files modified
ppa-creator/ppacreator/run_worker.py (+3/-0)
ppa-creator/ppacreator/tests/test_worker.py (+1/-1)
tests/test_ppacreator.py (+32/-0)
To merge this branch: bzr merge lp:~cprov/uci-engine/ppa-creator-fix
Reviewer Review Type Date Requested Status
Joe Talbott (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Paul Larson Approve
Review via email: mp+235036@code.launchpad.net

Commit message

Fix ppacreator by restoring the implicit logger name setter removed in the previous rev.

Description of the change

Fix ppacreator by restoring the implicit logger name setter removed in the previous rev.

Adding a basic integration test to block similar problems in the future.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:786
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1409/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1409/rebuild

review: Needs Fixing (continuous-integration)
lp:~cprov/uci-engine/ppa-creator-fix updated
787. By Celso Providelo

Fixing broken test.

Revision history for this message
Paul Larson (pwlars) wrote :

That should do it, +1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:787
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1411/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1411/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:787
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1410/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1410/rebuild

review: Approve (continuous-integration)
Revision history for this message
Joe Talbott (joetalbott) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ppa-creator/ppacreator/run_worker.py'
2--- ppa-creator/ppacreator/run_worker.py 2014-09-16 13:09:07 +0000
3+++ ppa-creator/ppacreator/run_worker.py 2014-09-17 20:00:52 +0000
4@@ -26,6 +26,9 @@
5
6 class PPACreatorWorker(amqp_worker.AMQPWorker):
7
8+ def __init__(self):
9+ super(PPACreatorWorker, self).__init__('ppacreator')
10+
11 def handle_request(self, params, log):
12 name = params['name']
13 displayname = params['displayname']
14
15=== modified file 'ppa-creator/ppacreator/tests/test_worker.py'
16--- ppa-creator/ppacreator/tests/test_worker.py 2014-09-15 09:32:17 +0000
17+++ ppa-creator/ppacreator/tests/test_worker.py 2014-09-17 20:00:52 +0000
18@@ -23,7 +23,7 @@
19
20 def setUp(self):
21 super(TestPPACreatorWorker, self).setUp()
22- self.worker = run_worker.PPACreatorWorker('ppacreator')
23+ self.worker = run_worker.PPACreatorWorker()
24
25 @mock.patch('ppacreator.run_worker.create_ppa')
26 @mock.patch('ci_utils.amqp_utils.progress_completed')
27
28=== added file 'tests/test_ppacreator.py'
29--- tests/test_ppacreator.py 1970-01-01 00:00:00 +0000
30+++ tests/test_ppacreator.py 2014-09-17 20:00:52 +0000
31@@ -0,0 +1,32 @@
32+#!/usr/bin/env python
33+# Ubuntu Continuous Integration Engine
34+# Copyright 2014 Canonical Ltd.
35+
36+# This program is free software: you can redistribute it and/or modify it
37+# under the terms of the GNU Affero General Public License version 3, as
38+# published by the Free Software Foundation.
39+
40+# This program is distributed in the hope that it will be useful, but
41+# WITHOUT ANY WARRANTY; without even the implied warranties of
42+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
43+# PURPOSE. See the GNU Affero General Public License for more details.
44+
45+# You should have received a copy of the GNU Affero General Public License
46+# along with this program. If not, see <http://www.gnu.org/licenses/>.
47+
48+import subprocess
49+
50+import unittest
51+import deployers
52+
53+
54+class TestPPACreator(deployers.DeployerTest):
55+ """Integration tests for ppacreator service run on a juju deployment"""
56+
57+ def test_worker_running(self):
58+ """Ensure the ppacreator worker is deployed and running."""
59+ self.assert_job_running('ci-airline-ppa-creator-worker')
60+
61+
62+if __name__ == "__main__":
63+ unittest.main()

Subscribers

People subscribed via source and target branches