Merge lp:~hopem/charms/trusty/keystone/fix-removed-peer-store-set-id-rels into lp:~openstack-charmers-archive/charms/trusty/keystone/next

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: 139
Proposed branch: lp:~hopem/charms/trusty/keystone/fix-removed-peer-store-set-id-rels
Merge into: lp:~openstack-charmers-archive/charms/trusty/keystone/next
Diff against target: 36 lines (+5/-5)
2 files modified
hooks/keystone_utils.py (+1/-2)
unit_tests/test_keystone_utils.py (+4/-3)
To merge this branch: bzr merge lp:~hopem/charms/trusty/keystone/fix-removed-peer-store-set-id-rels
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+255634@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #3182 keystone-next for hopem mp255634
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/3182/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2970 keystone-next for hopem mp255634
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2970/

Revision history for this message
James Page (james-page) :
review: Approve
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #2986 keystone-next for hopem mp255634
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10782032/
Build: http://10.245.162.77:8080/job/charm_amulet_test/2986/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/keystone_utils.py'
2--- hooks/keystone_utils.py 2015-03-30 20:42:39 +0000
3+++ hooks/keystone_utils.py 2015-04-09 10:34:15 +0000
4@@ -1471,12 +1471,11 @@
5 relation_data['ca_cert'] = b64encode(ca_bundle)
6 relation_data['https_keystone'] = 'True'
7
8+ peer_store_and_set(relation_id=relation_id, **relation_data)
9 # NOTE(dosaboy): '__null__' settings are for peer relation only so that
10 # settings can flushed so we filter them out for non-peer relation.
11 filtered = filter_null(relation_data)
12 relation_set(relation_id=relation_id, **filtered)
13- for rid in relation_ids('cluster'):
14- relation_set(relation_id=rid, **relation_data)
15
16
17 def ensure_valid_service(service):
18
19=== modified file 'unit_tests/test_keystone_utils.py'
20--- unit_tests/test_keystone_utils.py 2015-03-30 20:42:39 +0000
21+++ unit_tests/test_keystone_utils.py 2015-04-09 10:34:15 +0000
22@@ -253,10 +253,11 @@
23 else:
24 filtered[k] = v
25
26- call1 = call(relation_id=relation_id, **filtered)
27- call2 = call(relation_id='cluster/0', **relation_data)
28 self.assertTrue(self.relation_set.called)
29- self.relation_set.assert_has_calls([call1, call2])
30+ self.peer_store_and_set.assert_called_with(relation_id=relation_id,
31+ **relation_data)
32+ self.relation_set.assert_called_with(relation_id=relation_id,
33+ **filtered)
34
35 @patch.object(utils, 'ensure_valid_service')
36 @patch.object(utils, 'add_endpoint')

Subscribers

People subscribed via source and target branches