debian-forge/test/mod
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
..
__init__.py test: '{. -> ./mod}/test_util_selinux.py' 2020-04-24 15:50:44 +02:00
test_api.py api: remove host side arguments facility 2021-07-08 15:01:33 +01:00
test_buildroot.py buildroot: set container env variable 2021-12-09 13:14:27 +01:00
test_fmt_v1.py osbuild: on-demand building of pipelines 2021-12-02 12:51:30 +00:00
test_fmt_v2.py inputs: support array of objects references 2022-04-21 16:39:58 +02:00
test_host.py host: add support for emitting signals 2022-02-22 10:38:43 +01:00
test_loop.py loop: add new on_close callback to Loop 2021-12-09 00:44:21 +00:00
test_monitor.py formats/v1: remove implicit assembler export 2021-12-02 12:51:30 +00:00
test_objectstore.py objectstore: don't store objects by their treesum 2021-12-16 16:44:07 +00:00
test_osbuild.py v2: Add source-epoch key in pipeline declaration and pass to buildroot 2022-02-09 09:58:49 +01:00
test_util_checksum.py test/mod: add checks for util.test_util 2021-05-12 14:26:16 +02:00
test_util_ctx.py util/ctx: extract suppress_oserror() 2020-05-11 18:05:12 +02:00
test_util_jsoncomm.py util/jsoncomm: add send_and_recv helper 2021-06-09 18:37:47 +01:00
test_util_linux.py test: convert to shared helpers 2020-05-13 14:26:05 +02:00
test_util_lorax.py test/util_lorax: add basic checks 2021-02-19 14:42:32 +00:00
test_util_lvm2.py test/lvm2: separate stdout and stderr 2022-03-04 08:42:35 +01:00
test_util_osrelease.py test: make TestBase inherit unittest.TestCase 2020-06-05 09:27:40 +02:00
test_util_ostree.py stages: add org.osbuild.ostree.passwd 2021-08-17 13:53:00 +02:00
test_util_path.py test/util_path: add basic utility function test 2021-06-28 19:07:42 +02:00
test_util_rhsm.py sources/curl: Implement new way of getting RHSM secrets 2021-06-04 18:23:05 +01:00
test_util_rmrf.py test: convert to shared helpers 2020-05-13 14:26:05 +02:00
test_util_selinux.py util/selinux: add setfilecon method 2022-03-18 20:36:10 +01:00
test_util_udev.py devices: add custom udev rule inhibitor mechanism 2021-12-09 00:44:21 +00:00