test/cases: include the full rpmmd structs

This includes the packgase and build-packages used by each pipeline.
For now, this information is not used anywhere, but when we move
from dnf to rpm-based pipelines, this is what will be used instead
of the repo metadata checksum.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-14 15:54:49 +01:00
parent fe2c111ec5
commit 4dda272d8b
17 changed files with 82082 additions and 4 deletions

View file

@ -57,10 +57,7 @@ def main(compose_request, store):
test_case["manifest"] = json.loads(subprocess.check_output(pipeline_command, input=blueprint, encoding="utf-8"))
pipeline_command = ["go", "run", "./cmd/osbuild-pipeline", "-distro", compose_request["distro"], "-arch", compose_request["arch"], "-image-type", compose_request["output-format"], "-rpmmd", "-"]
rpmmd = json.loads(subprocess.check_output(pipeline_command, input=blueprint, encoding="utf-8"))
test_case["rpmmd"] = {
"checksums": rpmmd["checksums"]
}
test_case["rpmmd"] = json.loads(subprocess.check_output(pipeline_command, input=blueprint, encoding="utf-8"))
if boot != "nspawn-extract":
output_id = run_osbuild(test_case["manifest"], store)