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

Subscribers

People subscribed via source and target branches