Change in vdsm[master]: storageTests: Extract storage types and versions to an envir...

vvolansk at redhat.com vvolansk at redhat.com
Tue Jan 14 17:31:53 UTC 2014


Vered Volansky has uploaded a new change for review.

Change subject: storageTests: Extract storage types and versions to an environment variable
......................................................................

storageTests: Extract storage types and versions to an environment variable

These are used as permutations for the test. We want to automate the
test and call it with whatever storage type(s) and metadata
version(s).

Change-Id: I84f1ee57e43d921ae38afaabddecca9f38dd2687
Signed-off-by: Vered Volansky <vvolansk at redhat.com>
---
M tests/functional/storageTests.py
1 file changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/59/23259/1

diff --git a/tests/functional/storageTests.py b/tests/functional/storageTests.py
index 39102e5..4618ef9 100644
--- a/tests/functional/storageTests.py
+++ b/tests/functional/storageTests.py
@@ -58,6 +58,11 @@
                         )
 _exportfs = CommandPath("exportfs", "/usr/sbin/exportfs")
 
+defaultStorageTypes = ('localfs', 'iscsi', 'glusterfs', 'nfs')
+storageTypes = tuple(os.environ.get('VDSM_STORAGE_TEST_TYPES', '').split()) or defaultStorageTypes
+
+defaultVersions = (0, 3)
+versions = tuple(os.environ.get('VDSM_METADATA_VERSION', '').split()) or defaultVersions
 
 @expandPermutations
 class StorageTest(TestCaseBase):
@@ -81,8 +86,8 @@
 
     @permutations(
         [[backend, ver]
-         for backend in ['localfs', 'iscsi', 'glusterfs', 'nfs']
-         for ver in [0, 3]])
+         for backend in storageTypes
+         for ver in versions]) 
     def testStorage(self, backendType, domVersion):
         conf = storageLayouts[backendType]
         with RollbackContext() as rollback:


-- 
To view, visit http://gerrit.ovirt.org/23259
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I84f1ee57e43d921ae38afaabddecca9f38dd2687
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <vvolansk at redhat.com>


More information about the vdsm-patches mailing list