artifacts: add test update payloads metadata
The AU tests require parsing the .json file. We add the log as well as
it's informational and present in the legacy version.
BUG=b:228332691
TEST=./run_tests.py
Change-Id: I33ea52f299893be2f2099ffb2791c8fafa7599c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3574278
Reviewed-by: Benjamin Shai <bshai@google.com>
Reviewed-by: Madeleine Hardt <hardtmad@google.com>
Tested-by: George Engelbrecht <engeg@google.com>
Reviewed-by: Jack Neus <jackneus@google.com>
Auto-Submit: George Engelbrecht <engeg@google.com>
Commit-Queue: George Engelbrecht <engeg@google.com>
diff --git a/api/controller/artifacts.py b/api/controller/artifacts.py
index cffea03..cfa3773 100644
--- a/api/controller/artifacts.py
+++ b/api/controller/artifacts.py
@@ -225,6 +225,10 @@
"""Add test payload files to a successful response."""
output_proto.artifacts.add().path = os.path.join(input_proto.output_dir,
'payload1.bin')
+ output_proto.artifacts.add().path = os.path.join(input_proto.output_dir,
+ 'payload1.json')
+ output_proto.artifacts.add().path = os.path.join(input_proto.output_dir,
+ 'payload1.log')
@faux.success(_BundleTestUpdatePayloadsResponse)