def testValidateNegative(self): self._setConfig( ('VDSM_CONF', 'vdsm_no_ssl'), ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertFalse(libvirt.validate())
def testValidatePositive(self): self._setConfig( ('VDSM_CONF', 'vdsm_ssl'), ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertTrue(libvirt.validate())
def testValidateNegative(self): self.vdsm_cfg.set('vars', 'ssl', 'false') self._setConfig( ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertFalse(libvirt.validate())
def testValidatePositive(self): self.vdsm_cfg.set('vars', 'ssl', 'true') self._setConfig( ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertTrue(libvirt.validate())
def testValidateNegative(self): self.vdsm_cfg.set('vars', 'ssl', 'false') _setConfig(self, ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertFalse(libvirt.validate())
def testValidatePositive(self): self.vdsm_cfg.set('vars', 'ssl', 'true') _setConfig(self, ('LCONF', 'lconf_ssl'), ('QCONF', 'qemu_ssl'), ) self.assertTrue(libvirt.validate())