mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
tests: Update tests for Linstor limitation
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
test_incremental_copy() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
ensure_import_testimage
|
||||
ensure_has_localhost_remote "${INCUS_ADDR}"
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
test_migration() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
# setup a second Incus
|
||||
# shellcheck disable=2039,3043
|
||||
local INCUS2_DIR INCUS2_ADDR incus_backend
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
test_snapshots() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
snapshots
|
||||
|
||||
if [ "$(storage_backend "$INCUS_DIR")" = "lvm" ]; then
|
||||
@@ -97,6 +100,7 @@ snapshots() {
|
||||
}
|
||||
|
||||
test_snap_restore() {
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
snap_restore
|
||||
|
||||
if [ "$(storage_backend "$INCUS_DIR")" = "lvm" ]; then
|
||||
@@ -315,6 +319,9 @@ restore_and_compare_fs() {
|
||||
}
|
||||
|
||||
test_snap_expiry() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
# shellcheck disable=2039,3043
|
||||
local incus_backend
|
||||
incus_backend=$(storage_backend "$INCUS_DIR")
|
||||
@@ -341,6 +348,9 @@ test_snap_expiry() {
|
||||
}
|
||||
|
||||
test_snap_schedule() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
# shellcheck disable=2039,3043
|
||||
local incus_backend
|
||||
incus_backend=$(storage_backend "$INCUS_DIR")
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
test_storage_local_volume_handling() {
|
||||
# shellcheck disable=2153
|
||||
[ "${INCUS_BACKEND}" = "linstor" ] && echo "==> SKIP: Linstor can't currently handle copies with snapshots" && return
|
||||
|
||||
ensure_import_testimage
|
||||
|
||||
# shellcheck disable=2039,3043
|
||||
|
||||
Reference in New Issue
Block a user