lp:~free.ekanayaka/landscape-client/amp-cleanup-7

Created by Free Ekanayaka and last modified
Get this branch:
bzr branch lp:~free.ekanayaka/landscape-client/amp-cleanup-7
Only Free Ekanayaka can upload to this branch. If you are Free Ekanayaka please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Free Ekanayaka
Project:
Landscape Client
Status:
Merged

Recent revisions

669. By Free Ekanayaka

Merge from amp-cleanup-6

668. By Free Ekanayaka

Merge from amp-cleanup-6

667. By Free Ekanayaka

Synchronous test helpers

666. By Free Ekanayaka

Don't use real listenUNIX and connectUNIX within FakeReactor

665. By Free Ekanayaka

Drop unused protocol classes

664. By Free Ekanayaka

Use ComponentPublisher in the usermonitor and usermanager plugins

663. By Free Ekanayaka

Add ComponentPublisher and dropped ComponentProtocolFactory

662. By Free Ekanayaka

Move features from RemoteBrokerConnector to MethodCallClientFactory

661. By Free Ekanayaka

Expose MethodCallSender _protocol and _clock attributes

660. By Free Ekanayaka

Merge testable-amp [f=1169102] [r=ack,tealeg] [a=Free Ekanayaka]
This is a first step towards having synchronous tests for AMP-related code:

- Use composition vs inheritance, so MethodCallServerProtocol has now become
  MethodCallReceiver and MethodCallClientProtocol has become MethodCallSender.
  They don't inherit from the base AMP protocol anymore, this will let us mock
  the AMP protocol itself later on.

- Put in place temporary workarounds (marked with "XXX") for the few breakages
  that such refactoring causes. These will be cleaned up in a follow-up branch.

- Changed most of the tests in l/lib/tests/test_amp.py to be synchronous and not
  use the real Twisted reactor. This is done by faking the transport, so we can
  simulate a connection rather than use real Unix sockets. These methods don't
  need to return deferreds anymore in order to perform their assertions, as
  they can trust that everything happens synchronously.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~landscape/landscape-client/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers