Merge lp:~james-w/bzr-pqm/fix-service-roots into lp:bzr-pqm

Proposed by James Westby
Status: Merged
Merged at revision: not available
Proposed branch: lp:~james-w/bzr-pqm/fix-service-roots
Merge into: lp:bzr-pqm
Diff against target: 65 lines (+9/-14)
2 files modified
lpland.py (+4/-9)
test_lpland.py (+5/-5)
To merge this branch: bzr merge lp:~james-w/bzr-pqm/fix-service-roots
Reviewer Review Type Date Requested Status
Martin Pool (community) Approve
Review via email: mp+22540@code.launchpad.net

Description of the change

Hi,

This removes an XXX from jml and fixes a bug at the same time.

Since the multi-version change the hardcoded values for service
roots were incorrect.

The ones in launchpad.uris should be old enough that everyone has
that version.

Thanks,

James

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lpland.py'
--- lpland.py 2010-01-20 06:29:44 +0000
+++ lpland.py 2010-03-31 14:45:33 +0000
@@ -18,8 +18,10 @@
1818
19import os19import os
2020
21from launchpadlib.launchpad import (21from launchpadlib.launchpad import Launchpad
22 Launchpad, EDGE_SERVICE_ROOT, STAGING_SERVICE_ROOT)22from launchpadlib.uris import (
23 DEV_SERVICE_ROOT, EDGE_SERVICE_ROOT,
24 LPNET_SERVICE_ROOT, STAGING_SERVICE_ROOT)
23from lazr.uri import URI25from lazr.uri import URI
24from bzrlib import msgeditor26from bzrlib import msgeditor
25from bzrlib.errors import BzrCommandError27from bzrlib.errors import BzrCommandError
@@ -27,13 +29,6 @@
27from bzrlib import smtp_connection29from bzrlib import smtp_connection
2830
2931
30# XXX: JonathanLange 2009-09-24: Both of these are available in more recent
31# versions of launchpadlib. When we start using such versions, we should
32# instead import these from launchpadlib.
33DEV_SERVICE_ROOT = 'https://api.launchpad.dev/beta/'
34LPNET_SERVICE_ROOT = 'https://api.launchpad.net/beta/'
35
36
37class MissingReviewError(Exception):32class MissingReviewError(Exception):
38 """Raised when we try to get a review message without enough reviewers."""33 """Raised when we try to get a review message without enough reviewers."""
3934
4035
=== modified file 'test_lpland.py'
--- test_lpland.py 2010-01-21 23:06:56 +0000
+++ test_lpland.py 2010-03-31 14:45:33 +0000
@@ -7,7 +7,9 @@
77
8import unittest8import unittest
99
10from launchpadlib.launchpad import EDGE_SERVICE_ROOT, STAGING_SERVICE_ROOT10from launchpadlib.uris import (
11 DEV_SERVICE_ROOT, EDGE_SERVICE_ROOT, LPNET_SERVICE_ROOT,
12 STAGING_SERVICE_ROOT)
1113
12from bzrlib.plugins.pqm.lpland import (14from bzrlib.plugins.pqm.lpland import (
13 get_bazaar_host, get_bugs_clause, get_reviewer_clause,15 get_bazaar_host, get_bugs_clause, get_reviewer_clause,
@@ -169,8 +171,7 @@
169 def test_dev_service(self):171 def test_dev_service(self):
170 # The Bazaar host for the dev service is bazaar.launchpad.dev.172 # The Bazaar host for the dev service is bazaar.launchpad.dev.
171 self.assertEqual(173 self.assertEqual(
172 'bazaar.launchpad.dev',174 'bazaar.launchpad.dev', get_bazaar_host(DEV_SERVICE_ROOT))
173 get_bazaar_host('https://api.launchpad.dev/beta/'))
174175
175 def test_edge_service(self):176 def test_edge_service(self):
176 # The Bazaar host for the edge service is bazaar.launchpad.net, since177 # The Bazaar host for the edge service is bazaar.launchpad.net, since
@@ -181,8 +182,7 @@
181 def test_production_service(self):182 def test_production_service(self):
182 # The Bazaar host for the production service is bazaar.launchpad.net.183 # The Bazaar host for the production service is bazaar.launchpad.net.
183 self.assertEqual(184 self.assertEqual(
184 'bazaar.launchpad.net',185 'bazaar.launchpad.net', get_bazaar_host(LPNET_SERVICE_ROOT))
185 get_bazaar_host('https://api.launchpad.net/beta/'))
186186
187 def test_staging_service(self):187 def test_staging_service(self):
188 # The Bazaar host for the staging service is188 # The Bazaar host for the staging service is

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: