From 3965291895c43a684ebb060cd5009488e75e0be7 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 20 Jul 2021 17:01:38 +0000 Subject: [PATCH] test/fmt_v2: include devices and mount Include devices and mounts in the basic pipeline to check that parsing and describing them works as expected. --- test/mod/test_fmt_v2.py | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/test/mod/test_fmt_v2.py b/test/mod/test_fmt_v2.py index 6e5c8aaf..5bacf180 100644 --- a/test/mod/test_fmt_v2.py +++ b/test/mod/test_fmt_v2.py @@ -65,7 +65,35 @@ BASIC_PIPELINE = { "name:tree": {} } } - } + }, + "devices": { + "root": { + "type": "org.osbuild.loopback", + "options": { + "filename": "empty.img" + } + }, + "boot": { + "type": "org.osbuild.loopback", + "options": { + "filename": "empty.img" + } + }, + }, + "mounts": [ + { + "name": "root", + "type": "org.osbuild.noop", + "source": "root", + "target": "/", + }, + { + "name": "boot", + "type": "org.osbuild.noop", + "source": "boot", + "target": "/boot", + } + ] } ] }