Merge lp:~cjohnston/ubuntu-ci-services-itself/tenant-issues into lp:ubuntu-ci-services-itself

Proposed by Chris Johnston
Status: Merged
Approved by: Francis Ginther
Approved revision: 235
Merged at revision: 235
Proposed branch: lp:~cjohnston/ubuntu-ci-services-itself/tenant-issues
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 69 lines (+6/-5)
5 files modified
ci-utils/ci_utils/data_store/__init__.py (+1/-1)
ci-utils/ci_utils/tests/test_data_store.py (+1/-1)
cli/ci_libs/utils.py (+1/-1)
cli/tests/__init__.py (+1/-1)
cli/tests/test_utils.py (+2/-1)
To merge this branch: bzr merge lp:~cjohnston/ubuntu-ci-services-itself/tenant-issues
Reviewer Review Type Date Requested Status
Ursula Junque (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+206046@code.launchpad.net

Commit message

Fix auth_tenant/auth_tenant_name issues

Description of the change

Previously our code had been using auth_tenant_name. In a recent MP auth_tenant was mistakenly introduced. This clearly caused issues.

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

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

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

review: Approve (continuous-integration)
Revision history for this message
Ursula Junque (ursinha) wrote :

Looks good to me, tests pass (locally) and so on.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ci-utils/ci_utils/data_store/__init__.py'
2--- ci-utils/ci_utils/data_store/__init__.py 2014-02-11 16:26:02 +0000
3+++ ci-utils/ci_utils/data_store/__init__.py 2014-02-12 20:43:20 +0000
4@@ -38,7 +38,7 @@
5
6 @staticmethod
7 def validate_auth_config(auth_config):
8- required_fields = ['auth_user', 'auth_password', 'auth_tenant',
9+ required_fields = ['auth_user', 'auth_password', 'auth_tenant_name',
10 'auth_url', 'auth_region']
11
12 missing_fields = []
13
14=== modified file 'ci-utils/ci_utils/tests/test_data_store.py'
15--- ci-utils/ci_utils/tests/test_data_store.py 2014-02-11 16:26:02 +0000
16+++ ci-utils/ci_utils/tests/test_data_store.py 2014-02-12 20:43:20 +0000
17@@ -21,7 +21,7 @@
18 'auth_url': 'http://example.com',
19 'auth_user': 'user',
20 'auth_password': 'pass',
21- 'auth_tenant': 'tenant',
22+ 'auth_tenant_name': 'tenant',
23 'auth_region': 'region',
24 }
25
26
27=== modified file 'cli/ci_libs/utils.py'
28--- cli/ci_libs/utils.py 2014-02-11 16:26:02 +0000
29+++ cli/ci_libs/utils.py 2014-02-12 20:43:20 +0000
30@@ -46,7 +46,7 @@
31 data_store.DataStore.validate_auth_config(AUTH_CONFIG)
32 except IOError:
33 r = ['ci_url', 'auth_url', 'auth_user', 'auth_password',
34- 'auth_region', 'auth_tenant']
35+ 'auth_region', 'auth_tenant_name']
36 error_msg = ("ERROR: Missing YAML config in {}:\n {}"
37 "\n\nThis can be created by running: {} auto_config")
38 sys.exit(error_msg.format(config_file, "\n ".join(r), sys.argv[0]))
39
40=== modified file 'cli/tests/__init__.py'
41--- cli/tests/__init__.py 2014-01-29 18:14:33 +0000
42+++ cli/tests/__init__.py 2014-02-12 20:43:20 +0000
43@@ -47,7 +47,7 @@
44 "auth_url": "test",
45 "auth_user": "test",
46 "auth_password": "test",
47- "auth_tenant": "test",
48+ "auth_tenant_name": "test",
49 }
50 utils.CI_URL = utils.AUTH_CONFIG['ci_url']
51
52
53=== modified file 'cli/tests/test_utils.py'
54--- cli/tests/test_utils.py 2014-02-11 16:26:02 +0000
55+++ cli/tests/test_utils.py 2014-02-12 20:43:20 +0000
56@@ -26,11 +26,12 @@
57 config_contents = """auth_url: http://example.com
58 auth_user: user
59 auth_password: pass
60-auth_tenant: user_project
61+auth_tenant_name: user_project
62 auth_region: region1
63 ci_url: http://example.com/ci
64 """
65
66+
67 class UtilsTestCase(CLITestCase):
68 def test_parse_id(self):
69 location = 'http://www.example.com/api/v1/ticket/5/'

Subscribers

People subscribed via source and target branches