debian-forge/test
Christian Kellner 99abc1373d inputs: support array of objects references
This extends the possible ways of passing references to inputs. The
current ways possible are:
 1) "plain references", an array of strings:
    ["ref1", "ref2", ...]
 2) "object references", a mapping of keys to objects:
    {"ref1": { <options> }, "ref2": { <options> }, ...}

This patch adds a new way:
  3) "array of object references":
    [{"id": "ref1", "options": { ... }}, {"id": ... }, ]

While osbuild promises to preserves the order for "object references"
not all JSON serialization libraries preserve the order since the
JSON specification does leave this up to the implementation.

The new "array of object references" thus allows for specifying the
references together with reference specific options and this in a
specific order.

Additionally this paves the way for specifying the same input twice,
e.g. in the case of the `org.osbuild.files` input where a pipeline
could then be specified twice with different files. This needs core
rework though, since internally we use dictionaries right now.
2022-04-21 16:39:58 +02:00
..
cases Add the option of compressing using lz4 2022-01-11 13:20:11 +01:00
data Stages: support vmdk subformat in the qemu stage 2022-04-05 15:01:34 +02:00
mod inputs: support array of objects references 2022-04-21 16:39:58 +02:00
pipelines test: move all test manifests to get fedora packages from kernel mirrors 2020-06-07 22:08:34 +02:00
run Add unit test for org.osbuild.qemu stage 2022-04-05 15:01:34 +02:00
src test: make TestBase inherit unittest.TestCase 2020-06-05 09:27:40 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
initrd.py test/initrd: remove unneeded f-string 2021-02-16 22:58:15 +00:00
test.py test: capture full log in compile 2021-12-09 00:44:21 +00:00