fix lxc file nas
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user