History log of /external/autotest/client/cros/tendo/n_faced_peerd/manager.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a54b420e231e36b64b6ac1f3947e90024445c9cb 27-Mar-2015 Christopher Wiley <wiley@chromium.org> autotest: Patches to NFacedPeerd

A number of small changes to NFacedPeerd:
- Add much more logging to help debugging.
- Use uuid4() rather than uuid1() because the generated strings are
easier to differentiate at a quick glance.
- rename Service._get_ipinfos to Service._get_ipinfo for consistency.
- Remove logging for emitting signals from the object manager
(superfluous).
- Don't use a lambda to bind individual manager on_service_changed
callbacks.

BUG=brillo:536
TEST=A dependent test, leaderd_Election passes with these changes.

Change-Id: I667c7a85450faaee7a8883859dd1d0227b02543e
Reviewed-on: https://chromium-review.googlesource.com/262867
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/tendo/n_faced_peerd/manager.py
9350c4efd2c6a97c92b064d4d5cc4a73f8919bd0 10-Mar-2015 Christopher Wiley <wiley@chromium.org> leaderd: Add NFacedPeerd

This fake version of peerd claims the same DBus service name, and
more or less implements the same interfaces. However, instead of
looking for remote peers, it just treats each process exposing a
service as a separate peer (it has N faces, one for each process
talking to NFacedPeerd).

We'll use this functionality to replace peerd and run N instances of
leaderd on the same system. Each leaderd instance will be told to
claim a slightly different DBus well known name, and expose handlers
on different ports. By faking out peerd, we'll be able to run a
bunch of scenarios with N peers negotiating leadership.

BUG=brillo:535
TEST=This code is used in follow on CLs successfully.

Change-Id: Ie838d8a83afaece5c5dffc29c29d5ca5961847cd
Reviewed-on: https://chromium-review.googlesource.com/260683
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/tendo/n_faced_peerd/manager.py