fix lxc file nas

This commit is contained in:
David Schroeder
2026-07-26 20:05:08 -05:00
parent ebddd792b2
commit dcccb8d837
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -5,6 +5,11 @@ TEST_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${TEST_ROOT}/tests/testlib.sh"
source "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
assert_success "LXC creation uses the compatible cpuunits option" \
grep -q -- '--cpuunits 100' "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
assert_failure "misspelled cpunits option is absent" \
grep -q -- '--cpunits' "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
assert_success "valid storage ID" TAPM_ISO_NFS_VALID_ID PVE-Shared-Storage
assert_failure "storage ID cannot start with a number" TAPM_ISO_NFS_VALID_ID 1-storage
assert_failure "storage ID rejects spaces" TAPM_ISO_NFS_VALID_ID 'shared storage'