aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-configs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-24 07:45:34 -0600
committerCraig Jennings <c@cjennings.net>2026-02-24 07:45:34 -0600
commit58ec870dc06f226c24a94f47c363e784bafaee1e (patch)
treee4c3553cdb41409f5f0c90aea21dd5d99c3f34e8 /scripts/test-configs
parentc247536d403c09f74bc254e52f0a9edb2f819949 (diff)
downloadarchangel-58ec870dc06f226c24a94f47c363e784bafaee1e.tar.gz
archangel-58ec870dc06f226c24a94f47c363e784bafaee1e.zip
feat: add ZFS encrypted volume tests (single disk + mirror)
Add automated tests for ZFS native encryption, matching existing Btrfs LUKS test coverage. ZFS encrypted boot requires two passphrase entries (ZFSBootMenu + mkinitcpio zfs hook), both sent via QEMU monitor sendkey with timed delays since ZFSBootMenu renders to VGA, not serial.
Diffstat (limited to 'scripts/test-configs')
-rw-r--r--scripts/test-configs/zfs-encrypt.conf16
-rw-r--r--scripts/test-configs/zfs-mirror-encrypt.conf17
2 files changed, 33 insertions, 0 deletions
diff --git a/scripts/test-configs/zfs-encrypt.conf b/scripts/test-configs/zfs-encrypt.conf
new file mode 100644
index 0000000..0bc3237
--- /dev/null
+++ b/scripts/test-configs/zfs-encrypt.conf
@@ -0,0 +1,16 @@
+# Test config: ZFS single disk with native encryption
+
+# Enable testing mode for automated ZFS passphrase handling
+TESTING=yes
+
+HOSTNAME=test-zfs-encrypt
+TIMEZONE=UTC
+LOCALE=en_US.UTF-8
+KEYMAP=us
+
+DISKS=/dev/vda
+
+ZFS_PASSPHRASE=testpass
+ROOT_PASSWORD=testpass
+
+ENABLE_SSH=yes
diff --git a/scripts/test-configs/zfs-mirror-encrypt.conf b/scripts/test-configs/zfs-mirror-encrypt.conf
new file mode 100644
index 0000000..0f0efab
--- /dev/null
+++ b/scripts/test-configs/zfs-mirror-encrypt.conf
@@ -0,0 +1,17 @@
+# Test config: ZFS 2-disk mirror with native encryption
+
+# Enable testing mode for automated ZFS passphrase handling
+TESTING=yes
+
+HOSTNAME=test-zfs-mirror-encrypt
+TIMEZONE=UTC
+LOCALE=en_US.UTF-8
+KEYMAP=us
+
+DISKS=/dev/vda,/dev/vdb
+RAID_LEVEL=mirror
+
+ZFS_PASSPHRASE=testpass
+ROOT_PASSWORD=testpass
+
+ENABLE_SSH=yes