67d4de0fd871c5c14bdb2e18034991bc6b9c7400 |
|
18-Mar-2014 |
Chris Sosa <sosa@chromium.org> |
Buffet: Initial commit of device test service. This initial commit supports all aspects of the registration process. Specifically it implements registrationTicket's: insert,post,patch,update, and get operations. Internally I represent tickets in a dictionary which I update with patch/update requests. I don't bother currently with anything complex in claim (technically this could be a full oauth2 method), and claim the device directly to a hard-coded email address. Finally, finalize doesn't do anything besides add some dummy robot info. BUG=None TEST=Tested with a combo of curl -X POST operations and web requests through the browser. Also ran unittests which covers all functionality. Change-Id: I50d675df6fd954db51209ad30bd8f4329b32ffa4 Reviewed-on: https://chromium-review.googlesource.com/190421 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Chris Sosa <sosa@chromium.org> Tested-by: Chris Sosa <sosa@chromium.org>
/external/autotest/client/common_lib/cros/fake_device_server/common.py
|