History log of /external/autotest/site_utils/lxc/container_pool/service_unittest.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f960853ef610ce11111f40bb06eab03da3f59155 20-Dec-2017 Ben Kwa <kenobi@google.com> [autotest] Fix container_bucket_unittest.py

Don't use a hard-coded static container ID for testing - it makes the
test non-hermetic.

BUG=chromium:796686
TEST=container_bucket_unittest.py
TEST=service_unittest.py
TEST=container_unittest.py
TEST=lxc_functional_test.py

Change-Id: I45ae6378d990c561a80dff941908053210eaa6ab
/external/autotest/site_utils/lxc/container_pool/service_unittest.py
b052a3908a1722437cfb145b52dc30303f16d082 16-Nov-2017 Ben Kwa <kenobi@google.com> [autotest] Implement get container.

Add functionality for clients to actually retrieve containers from the
container pool.

BUG=chromium:720219
TEST=service_unittest.py

Change-Id: I9dfd27af90f343620daade641e2cdcda25e2fac3
Reviewed-on: https://chromium-review.googlesource.com/777774
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Ben Kwa <kenobi@chromium.org>
/external/autotest/site_utils/lxc/container_pool/service_unittest.py
3c0f36a1050e7b94e08b655b8de67667929f803c 15-Nov-2017 Ben Kwa <kenobi@google.com> [autotest] Clean up message handling.

This will make it cleaner to add more types of messages and handlers in
the future.

BUG=chromium:720219
TEST=service_unittest.py

Change-Id: Iddb6a18bff641c17d09141d1f0ce7fe2c7da255c
Reviewed-on: https://chromium-review.googlesource.com/772798
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_pool/service_unittest.py
181814d9d79908c6fc54483645ce823aee2f5e8b 03-Nov-2017 Ben Kwa <kenobi@google.com> [autotest] Clean up service and test code.

- Pull the default pool size and socket address into the constants
module.
- Add an injectable Pool to the Service so that the Service unittest can
be decoupled from LXC.
- Add arguments to the service control script to control verbosity and
pool size.

BUG=chromium:720219
TEST=pool_unittest.py
TEST=service_unittest.py
TEST=client_unittest.py

Change-Id: Id0b664c9f65a131d0e4559011c1de9b2ef9137e8
Reviewed-on: https://chromium-review.googlesource.com/753982
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_pool/service_unittest.py
5e2bb5c269805d7dd13a8fd83f9b6d70c4b1ea53 02-Nov-2017 Ben Kwa <kenobi@google.com> [autotest] Implement main service script.

- Add a Client class for making socket connections and communicating
with the service.
- Add service code to implement simple status reporting.
- Add a top-level script for users to interact with the service from the
command line.

BUG=chromium:720219
TEST=pool_unittest.py
TEST=service_unittest.py
TEST=client_unittest.py

Change-Id: Iaf9f201e599246c3f3b8c5902f750cd860d6cd8d
Reviewed-on: https://chromium-review.googlesource.com/751287
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_pool/service_unittest.py
764c6d7451342e00768b9724badcc9514d31f626 14-Sep-2017 Ben Kwa <kenobi@google.com> [autotest] Implement container pool service.

This initial implementation is basically just a client listener. It
listens for incoming connections and responds to simple test messages.

BUG=chromium:720219
TEST=async_listener_unittest.py
TEST=service_unittest.py

Change-Id: I6fa0de5f4d7761643a1d0c21d551af88f026324c
Reviewed-on: https://chromium-review.googlesource.com/667965
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/site_utils/lxc/container_pool/service_unittest.py