buffet: Add support for 'default' properties in CDD
The internals of supporting optional command parameters/state
properties was built into buffet earlier, but this was not exposed
in JSON reading/writing routines, so it was impossible to use this
feature.
Added JSON serialization/deserialization code and unit tests
to verify the operation.
BUG=brillo:357
TEST=`FEATURES=test emerge-link buffet`
Change-Id: I29c8d3d7c0894a9c837e73d0fdb16bafdfadfeca
Reviewed-on: https://chromium-review.googlesource.com/253070
Trybot-Ready: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
6 files changed
tree: a1855948b125b183f7131bfb62bfb1a262d4ce73
- buffet/