builder: attach koji init/import logs
De-serialize the koji init and import logs, required fields in the ComposeLogs, and if non-empty, attach them to the task. Update the tests to check for the presence of these logs.
This commit is contained in:
parent
68309e4b5a
commit
c2b5bd7060
2 changed files with 17 additions and 3 deletions
|
|
@ -117,9 +117,11 @@ class MockComposer:
|
|||
|
||||
ireqs = compose["request"]["image_requests"]
|
||||
result = {
|
||||
"koji_init_logs": {"log": "yes, please!"},
|
||||
"image_logs": [
|
||||
{"osbuild": "log log log"} for _ in ireqs
|
||||
]
|
||||
],
|
||||
"koji_import_logs": {"log": "yes, indeed!"},
|
||||
}
|
||||
return [200, response_headers, json.dumps(result)]
|
||||
|
||||
|
|
@ -481,6 +483,8 @@ class TestBuilderPlugin(PluginTest):
|
|||
self.uploads.assert_upload(f"{arch}-image_type.log.json")
|
||||
self.uploads.assert_upload("compose-request.json")
|
||||
self.uploads.assert_upload("compose-status.json")
|
||||
self.uploads.assert_upload("koji-init.log.json")
|
||||
self.uploads.assert_upload("koji-import.log.json")
|
||||
|
||||
build_id = res["koji"]["build"]
|
||||
# build should have been tagged
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue