mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-05 10:47:23 -05:00
support: Drop a few more support checks only used in tests/
This commit is contained in:
@@ -182,10 +182,6 @@ class TestStorage(unittest.TestCase):
|
||||
removePool(poolobj)
|
||||
|
||||
def testGlusterPool(self):
|
||||
if not self.conn.check_support(self.conn.SUPPORT_CONN_POOL_GLUSTERFS):
|
||||
raise unittest.SkipTest("Gluster pools not supported with this "
|
||||
"libvirt version.")
|
||||
|
||||
poolobj = createPool(self.conn,
|
||||
StoragePool.TYPE_GLUSTER, "pool-gluster")
|
||||
removePool(poolobj)
|
||||
|
||||
+1
-7
@@ -220,9 +220,7 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("nosharepages", False, True)
|
||||
check("locked", False, True)
|
||||
|
||||
self._alter_compare(guest.get_xml(), outfile,
|
||||
support_check=[self.conn.SUPPORT_CONN_VMPORT,
|
||||
self.conn.SUPPORT_CONN_VMCOREINFO])
|
||||
self._alter_compare(guest.get_xml(), outfile)
|
||||
|
||||
def testSeclabel(self):
|
||||
guest, outfile = self._get_test_content("change-seclabel")
|
||||
@@ -1220,10 +1218,6 @@ class XMLParseTest(unittest.TestCase):
|
||||
utils.test_create(self.conn, pool.get_xml(), "storagePoolDefineXML")
|
||||
|
||||
def testGlusterPool(self):
|
||||
if not self.conn.check_support(self.conn.SUPPORT_CONN_POOL_GLUSTERFS):
|
||||
raise unittest.SkipTest("Gluster pools not supported with this "
|
||||
"libvirt version.")
|
||||
|
||||
basename = "pool-gluster"
|
||||
infile = "tests/storage-xml/%s.xml" % basename
|
||||
outfile = "tests/xmlparse-xml/%s-out.xml" % basename
|
||||
|
||||
@@ -266,7 +266,6 @@ SUPPORT_CONN_USBREDIR = _make(
|
||||
version="0.9.5", hv_version={"qemu": "1.3.0", "test": 0})
|
||||
SUPPORT_CONN_DEVICE_BOOTORDER = _make(
|
||||
version="0.8.8", hv_version={"qemu": 0, "test": 0})
|
||||
SUPPORT_CONN_POOL_GLUSTERFS = _make(version="1.2.0")
|
||||
SUPPORT_CONN_CPU_MODEL_NAMES = _make(function="virConnect.getCPUModelNames",
|
||||
run_args=("x86_64", 0))
|
||||
SUPPORT_CONN_HYPERV_VAPIC = _make(
|
||||
@@ -275,7 +274,6 @@ SUPPORT_CONN_HYPERV_CLOCK = _make(
|
||||
version="1.2.2", hv_version={"qemu": "2.0.0", "test": 0})
|
||||
SUPPORT_CONN_HYPERV_CLOCK_RHEL = _make(
|
||||
version="1.2.2", hv_version={"qemu": "1.5.3", "test": 0})
|
||||
SUPPORT_CONN_LOADER_ROM = _make(version="1.2.9")
|
||||
SUPPORT_CONN_DOMAIN_CAPABILITIES = _make(
|
||||
function="virConnect.getDomainCapabilities",
|
||||
run_args=(None, None, None, None))
|
||||
|
||||
Reference in New Issue
Block a user