-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Those are copied from the zfs tests. TODO: test them
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import pytest | ||
from tests.storage import cold_migration_then_come_back, live_storage_migration_then_come_back | ||
|
||
# Requirements: | ||
# From --hosts parameter: | ||
# - host(A1): first XCP-ng host >= 8.2 with an additional unused disk for the SR. | ||
# - hostB1: Master of a second pool. Any local SR. | ||
# From --vm parameter | ||
# - A VM to import to the ZFS-ng SR | ||
# And: | ||
# - access to XCP-ng RPM repository from hostA1 | ||
|
||
@pytest.mark.small_vm # run with a small VM to test the features | ||
@pytest.mark.big_vm # and ideally with a big VM to test it scales | ||
@pytest.mark.usefixtures("hostB1", "local_sr_on_hostB1") | ||
class Test: | ||
def test_cold_crosspool_migration(self, host, hostB1, vm_on_zfs_sr, zfs_sr, local_sr_on_hostB1): | ||
cold_migration_then_come_back(vm_on_zfs_sr, host, zfs_sr, hostB1, local_sr_on_hostB1) | ||
|
||
def test_live_crosspool_migration(self, host, hostB1, vm_on_zfs_sr, zfs_sr, local_sr_on_hostB1): | ||
live_storage_migration_then_come_back(vm_on_zfs_sr, host, zfs_sr, hostB1, local_sr_on_hostB1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import pytest | ||
from tests.storage import cold_migration_then_come_back, live_storage_migration_then_come_back | ||
|
||
# Requirements: | ||
# From --hosts parameter: | ||
# - host(A1): first XCP-ng host >= 8.2 with an additional unused disk for the SR. | ||
# - hostA2: Second member of the pool. Can have any local SR. No need to specify it on CLI. | ||
# From --vm parameter | ||
# - A VM to import to the ZFS-ng SR | ||
# And: | ||
# - access to XCP-ng RPM repository from hostA1 | ||
|
||
@pytest.mark.small_vm # run with a small VM to test the features | ||
@pytest.mark.big_vm # and ideally with a big VM to test it scales | ||
@pytest.mark.usefixtures("hostA2", "local_sr_on_hostA2") | ||
class Test: | ||
def test_cold_intrapool_migration(self, host, hostA2, vm_on_zfs_sr, zfs_sr, local_sr_on_hostA2): | ||
cold_migration_then_come_back(vm_on_zfs_sr, host, zfs_sr, hostA2, local_sr_on_hostA2) | ||
|
||
def test_live_intrapool_migration(self, host, hostA2, vm_on_zfs_sr, zfs_sr, local_sr_on_hostA2): | ||
live_storage_migration_then_come_back(vm_on_zfs_sr, host, zfs_sr, hostA2, local_sr_on_hostA2) |