Merge lp:~jcsackett/launchpadlib/add-qastaging-to-uris into lp:launchpadlib

Proposed by j.c.sackett
Status: Merged
Merged at revision: 99
Proposed branch: lp:~jcsackett/launchpadlib/add-qastaging-to-uris
Merge into: lp:launchpadlib
Diff against target: 48 lines (+5/-1)
2 files modified
src/launchpadlib/tests/test_launchpad.py (+1/-1)
src/launchpadlib/uris.py (+4/-0)
To merge this branch: bzr merge lp:~jcsackett/launchpadlib/add-qastaging-to-uris
Reviewer Review Type Date Requested Status
Leonard Richardson (community) Approve
Review via email: mp+39483@code.launchpad.net

Commit message

Adds the qastaging information to the launchpadlib uris.

Description of the change

Summary
=======

Adds qastaging as root for launchapdlib

Implementation
==============

Adds the qastaging api data to launchpadlib.uris and updates the tests for aliases to include "qastaging" as an alias.

Demo/QA
========
>>> from launchpadlib.launchpad import Launchpad
>>> lp = Launchpad.login_with('testing', 'qastaging', <yourcachedir>)

To post a comment you must log in.
Revision history for this message
Leonard Richardson (leonardr) wrote :

Add a mention in the NEWS.txt and you can land this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/launchpadlib/tests/test_launchpad.py'
--- src/launchpadlib/tests/test_launchpad.py 2010-08-23 19:51:55 +0000
+++ src/launchpadlib/tests/test_launchpad.py 2010-10-27 22:08:44 +0000
@@ -75,7 +75,7 @@
7575
76 def setUp(self):76 def setUp(self):
77 self.aliases = sorted(77 self.aliases = sorted(
78 ['production', 'edge', 'staging', 'dogfood', 'dev', 'test_dev'])78 ['production', 'edge', 'qastaging', 'staging', 'dogfood', 'dev', 'test_dev'])
7979
80 def test_short_names(self):80 def test_short_names(self):
81 # Ensure the short service names are all supported.81 # Ensure the short service names are all supported.
8282
=== modified file 'src/launchpadlib/uris.py'
--- src/launchpadlib/uris.py 2010-02-15 16:34:26 +0000
+++ src/launchpadlib/uris.py 2010-10-27 22:08:44 +0000
@@ -30,6 +30,7 @@
3030
31LPNET_SERVICE_ROOT = 'https://api.launchpad.net/'31LPNET_SERVICE_ROOT = 'https://api.launchpad.net/'
32EDGE_SERVICE_ROOT = 'https://api.edge.launchpad.net/'32EDGE_SERVICE_ROOT = 'https://api.edge.launchpad.net/'
33QASTAGING_SERVICE_ROOT = 'https://api.qastaging.launchpad.net/'
33STAGING_SERVICE_ROOT = 'https://api.staging.launchpad.net/'34STAGING_SERVICE_ROOT = 'https://api.staging.launchpad.net/'
34DEV_SERVICE_ROOT = 'https://api.launchpad.dev/'35DEV_SERVICE_ROOT = 'https://api.launchpad.dev/'
35DOGFOOD_SERVICE_ROOT = 'https://api.dogfood.launchpad.net/'36DOGFOOD_SERVICE_ROOT = 'https://api.dogfood.launchpad.net/'
@@ -37,6 +38,7 @@
3738
38LPNET_WEB_ROOT = 'https://launchpad.net/'39LPNET_WEB_ROOT = 'https://launchpad.net/'
39EDGE_WEB_ROOT = 'https://edge.launchpad.net/'40EDGE_WEB_ROOT = 'https://edge.launchpad.net/'
41QASTAGING_WEB_ROOT = 'https://qastaging.launchpad.net/'
40STAGING_WEB_ROOT = 'https://staging.launchpad.net/'42STAGING_WEB_ROOT = 'https://staging.launchpad.net/'
41DEV_WEB_ROOT = 'https://launchpad.dev/'43DEV_WEB_ROOT = 'https://launchpad.dev/'
42DOGFOOD_WEB_ROOT = 'https://dogfood.launchpad.net/'44DOGFOOD_WEB_ROOT = 'https://dogfood.launchpad.net/'
@@ -46,6 +48,7 @@
46service_roots = dict(48service_roots = dict(
47 production=LPNET_SERVICE_ROOT,49 production=LPNET_SERVICE_ROOT,
48 edge=EDGE_SERVICE_ROOT,50 edge=EDGE_SERVICE_ROOT,
51 qastaging=QASTAGING_SERVICE_ROOT,
49 staging=STAGING_SERVICE_ROOT,52 staging=STAGING_SERVICE_ROOT,
50 dogfood=DOGFOOD_SERVICE_ROOT,53 dogfood=DOGFOOD_SERVICE_ROOT,
51 dev=DEV_SERVICE_ROOT,54 dev=DEV_SERVICE_ROOT,
@@ -56,6 +59,7 @@
56web_roots = dict(59web_roots = dict(
57 production=LPNET_WEB_ROOT,60 production=LPNET_WEB_ROOT,
58 edge=EDGE_WEB_ROOT,61 edge=EDGE_WEB_ROOT,
62 qastaging=QASTAGING_WEB_ROOT,
59 staging=STAGING_WEB_ROOT,63 staging=STAGING_WEB_ROOT,
60 dogfood=DOGFOOD_WEB_ROOT,64 dogfood=DOGFOOD_WEB_ROOT,
61 dev=DEV_WEB_ROOT,65 dev=DEV_WEB_ROOT,

Subscribers

People subscribed via source and target branches