~hopem/charms/trusty/keystone/charm-helpers-sync-precise-ipv6-haproxy

« back to all changes in this revision

Viewing changes to unit_tests/test_keystone_hooks.py

  • Committer: Edward Hope-Morley
  • Date: 2014-12-17 17:54:26 UTC
  • mfrom: (89.1.21 keystone.notifications)
  • Revision ID: edward.hope-morley@canonical.com-20141217175426-li6c8kzkjrcyrwd6
[hopem,r=wolsen,jamespage]
 
Adds keystone identity-notifications interface
  
This allows related units to receive broadcasts when
resources e.g. endpoints, change.

Closes-Bug: 1401861

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
            relation_id='identity-service:0',
321
321
            remote_unit='unit/0')
322
322
 
323
 
    def test_identity_changed_leader(self):
 
323
    @patch.object(hooks, 'hashlib')
 
324
    @patch.object(hooks, 'send_notifications')
 
325
    def test_identity_changed_leader(self, mock_send_notifications,
 
326
                                     mock_hashlib):
324
327
        self.eligible_leader.return_value = True
325
328
        hooks.identity_changed(
326
329
            relation_id='identity-service:0',