From 9b53ee7b11b1bf28483c0c5a73f11a3e73a561cd Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 8 Jul 2022 12:49:58 +0100 Subject: feat: noop partitions Some deployments just need a raw block device because the app works better when handling those. Examples: Ceph, Longhorn, OpenEBS. The new `noop` type supports that. It just does nothing with the partitions created, whenever applied. @moduon MT-904 --- tests/test.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test.nix b/tests/test.nix index 0f875e6..2ab28bf 100644 --- a/tests/test.nix +++ b/tests/test.nix @@ -56,13 +56,20 @@ import ({ pkgs, ... }: let }; home = { type = "lv"; - size = "100M"; + size = "10M"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/home"; }; }; + raw = { + type = "lv"; + size = "10M"; + content = { + type = "noop"; + }; + }; }; }; }; @@ -92,6 +99,7 @@ in { $machine->succeed("echo 'secret' > /tmp/secret.key"); $machine->succeed("${pkgs.writeScript "create" ((import ../lib).create disko-config)}"); $machine->succeed("${pkgs.writeScript "mount" ((import ../lib).mount disko-config)}"); + $machine->succeed("test -b /dev/mapper/pool-raw"); ''; }) -- cgit v1.2.3