Pubsub will be used more extensiviely in services other than gs_offloader. Wrap the current pubsub_util code into a reusable PubSubClient class.
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/56cbe94449f404f2be3e02f415901b931558e29f commit 56cbe94449f404f2be3e02f415901b931558e29f Author: Michael Tang <ntang@google.com> Date: Wed May 24 06:59:21 2017 Wrap pubsub code into a reusable class. BUG= chromium:724523 TEST=Unittest and manully. Change-Id: Icfa4fa9c1c515945f18a309ef0cc43ed623775be Reviewed-on: https://chromium-review.googlesource.com/510348 Commit-Ready: Michael Tang <ntang@chromium.org> Tested-by: Michael Tang <ntang@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Michael Tang <ntang@chromium.org> [modify] https://crrev.com/56cbe94449f404f2be3e02f415901b931558e29f/site_utils/pubsub_utils.py [modify] https://crrev.com/56cbe94449f404f2be3e02f415901b931558e29f/site_utils/gs_offloader.py [modify] https://crrev.com/56cbe94449f404f2be3e02f415901b931558e29f/site_utils/pubsub_utils_unittest.py
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/0f553bd773170c8ddb80d6061cdc0f133ba239b6 commit 0f553bd773170c8ddb80d6061cdc0f133ba239b6 Author: Michael Tang <ntang@google.com> Date: Wed Jun 28 00:56:16 2017 Wrap the pubsub into a cloud console client. BUG= chromium:724523 TEST=unit tests. Change-Id: I4338cce8c2c983b4cd50b71014d4f1ca5667cd78 Reviewed-on: https://chromium-review.googlesource.com/540137 Commit-Ready: Michael Tang <ntang@chromium.org> Tested-by: Michael Tang <ntang@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Michael Tang <ntang@chromium.org> [modify] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/gs_offloader.py [add] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/cloud_console_client_unittest.py [modify] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/gs_offloader_unittest.py [add] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/cloud_console.proto [modify] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/pubsub_utils.py [add] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/cloud_console_client.py [modify] https://crrev.com/0f553bd773170c8ddb80d6061cdc0f133ba239b6/site_utils/pubsub_utils_unittest.py
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/e8bc959e03680ed268d02f6979bf154691722d44 commit e8bc959e03680ed268d02f6979bf154691722d44 Author: Michael Tang <ntang@google.com> Date: Thu Jul 27 20:08:37 2017 Implements the cloud console client based on pubsub. Also makes sure the unittest will succeded when the cloud_console.proto is not compiled. BUG= chromium:724523 TEST=unit test. Change-Id: Ib605c1a2f5dbb2bd871aac272da7f9a4ab7ed35a Reviewed-on: https://chromium-review.googlesource.com/569453 Commit-Ready: Michael Tang <ntang@chromium.org> Tested-by: Michael Tang <ntang@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Michael Tang <ntang@chromium.org> [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/utils/unittest_suite.py [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/site_utils/gs_offloader.py [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/site_utils/cloud_console_client_unittest.py [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/site_utils/gs_offloader_unittest.py [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/site_utils/cloud_console.proto [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/site_utils/cloud_console_client.py [modify] https://crrev.com/e8bc959e03680ed268d02f6979bf154691722d44/moblab_config.ini
Comment 1 by ntang@google.com
, May 19 2017