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_unittest.py b/api/controller/artifacts_unittest.py
index 6d425a5..33d989a 100644
--- a/api/controller/artifacts_unittest.py
+++ b/api/controller/artifacts_unittest.py
@@ -590,9 +590,13 @@
artifacts.BundleTestUpdatePayloads(self.input_proto, self.output_proto,
self.mock_call_config)
patch.assert_not_called()
- self.assertEqual(len(self.output_proto.artifacts), 1)
+ self.assertEqual(len(self.output_proto.artifacts), 3)
self.assertEqual(self.output_proto.artifacts[0].path,
os.path.join(self.archive_root, 'payload1.bin'))
+ self.assertEqual(self.output_proto.artifacts[1].path,
+ os.path.join(self.archive_root, 'payload1.json'))
+ self.assertEqual(self.output_proto.artifacts[2].path,
+ os.path.join(self.archive_root, 'payload1.log'))
def testBundleTestUpdatePayloads(self):
"""BundleTestUpdatePayloads calls cbuildbot/commands with correct args."""