cloudstack/test/integration/plugins/linstor
dahn 4a99048af6 Add missing __init__.py to remaining plugins test subdirectories
Completes fix for #3679 by adding Python package init files to all
plugin test subdirectories: linstor, quota, scaleio, solidfire,
storpool, tf
2026-05-08 15:53:48 +02:00
..
README.md pre-commit auto add license for all Markdown files (#11870) 2025-10-24 16:04:22 +05:30
__init__.py Add missing __init__.py to remaining plugins test subdirectories 2026-05-08 15:53:48 +02:00
test_linstor_volumes.py linstor: Use template's uuid if pool's downloadPath is null as resource-name (#11053) 2025-07-25 07:51:11 -04:00

README.md

Linstor storage plugin

This directory contains the basic VM, Volume life cycle tests for Linstor storage pool (in KVM hypervisor).

Running tests

To run the basic volume tests, first update the below test data of the CloudStack environment

TestData.zoneId: <id of zone>
TestData.clusterId: <id of cluster>
TestData.domainId: <id of domain>
TestData.url: <management server IP>
TestData.primaryStorage "url": <Linstor storage pool url (see the format below) to use as primary storage>

and to enable and run volume migration tests, update the below test data

TestData.migrationTests: True
TestData.primaryStorageSameInstance "url": <Linstor url (see the format below) of the pool on same storage cluster as TestData.primaryStorage>
TestData.primaryStorageDistinctInstance "url": <Linstor url (see the format below) of the pool not on the same storage cluster as TestData.primaryStorage>

Then run the tests using python unittest runner: nosetests

nosetests --with-marvin --marvin-config=<marvin-cfg-file> <cloudstack-dir>/test/integration/plugins/linstor/test_linstor_volumes.py --zone=<zone> --hypervisor=kvm

You can also run these tests out of the box with PyDev or PyCharm or whatever.