test: use new mpp-embed in tests

This is to showcase it as much as to test its functionality. For this
the tar and xz stage tests have been converted. NB: only the mpp file
for each test is changed but the corresponding manifest is not.
The `sources/org.osbuild.inline` section has been kept otherwise the
ordering in the result manifest would change.
This commit is contained in:
Christian Kellner 2021-11-16 16:47:10 +00:00 committed by Alexander Larsson
parent 15759dd205
commit ac529563c3
2 changed files with 11 additions and 21 deletions

View file

@ -1,14 +1,7 @@
{
"version": "2",
"sources": {
"org.osbuild.inline": {
"items": {
"sha256:084c799cd551dd1d8d5c5f9a5d593b2e931f5e36122ee5c793c1d08a19839cc0": {
"encoding": "base64",
"data": "NDIK"
}
}
}
"org.osbuild.inline": {}
},
"pipelines": [
{
@ -28,15 +21,18 @@
"inlinefile": {
"type": "org.osbuild.files",
"origin": "org.osbuild.source",
"references": {
"sha256:084c799cd551dd1d8d5c5f9a5d593b2e931f5e36122ee5c793c1d08a19839cc0": {}
"mpp-embed": {
"id": "42",
"text": "42\n"
}
}
},
"options": {
"paths": [
{
"from": "input://inlinefile/sha256:084c799cd551dd1d8d5c5f9a5d593b2e931f5e36122ee5c793c1d08a19839cc0",
"from": {
"mpp-format-string": "input://inlinefile/{embedded['42']}"
},
"to": "tree:///testfile"
}
]

View file

@ -1,14 +1,7 @@
{
"version": "2",
"sources": {
"org.osbuild.inline": {
"items": {
"sha256:f950375066d74787f31cbd8f9f91c71819357cad243fb9d4a0d9ef4fa76709e0": {
"encoding": "base64",
"data": "SGFsbG8gV2VsdAo="
}
}
}
"org.osbuild.inline": {}
},
"pipelines": [
{
@ -28,8 +21,9 @@
"file": {
"type": "org.osbuild.files",
"origin": "org.osbuild.source",
"references": {
"sha256:f950375066d74787f31cbd8f9f91c71819357cad243fb9d4a0d9ef4fa76709e0": {}
"mpp-embed": {
"id": "hw",
"text": "Hallo Welt\n"
}
}
},