예제 #1
0
    def testValidateNegative(self):
        self._setConfig(
            ('VDSM_CONF', 'vdsm_no_ssl'),
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertFalse(libvirt.validate())
예제 #2
0
파일: toolTests.py 프로젝트: Caez83/vdsm
    def testValidateNegative(self):
        self._setConfig(
            ('VDSM_CONF', 'vdsm_no_ssl'),
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertFalse(libvirt.validate())
예제 #3
0
    def testValidatePositive(self):
        self._setConfig(
            ('VDSM_CONF', 'vdsm_ssl'),
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertTrue(libvirt.validate())
예제 #4
0
파일: toolTests.py 프로젝트: Caez83/vdsm
    def testValidatePositive(self):
        self._setConfig(
            ('VDSM_CONF', 'vdsm_ssl'),
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertTrue(libvirt.validate())
예제 #5
0
    def testValidateNegative(self):
        self.vdsm_cfg.set('vars', 'ssl', 'false')
        self._setConfig(
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertFalse(libvirt.validate())
예제 #6
0
    def testValidatePositive(self):
        self.vdsm_cfg.set('vars', 'ssl', 'true')
        self._setConfig(
            ('LCONF', 'lconf_ssl'),
            ('QCONF', 'qemu_ssl'),
        )

        self.assertTrue(libvirt.validate())
예제 #7
0
파일: tool_test.py 프로젝트: minqf/vdsm
    def testValidateNegative(self):
        self.vdsm_cfg.set('vars', 'ssl', 'false')
        _setConfig(self,
                   ('LCONF', 'lconf_ssl'),
                   ('QCONF', 'qemu_ssl'),
                   )

        self.assertFalse(libvirt.validate())
예제 #8
0
파일: tool_test.py 프로젝트: minqf/vdsm
    def testValidatePositive(self):
        self.vdsm_cfg.set('vars', 'ssl', 'true')
        _setConfig(self,
                   ('LCONF', 'lconf_ssl'),
                   ('QCONF', 'qemu_ssl'),
                   )

        self.assertTrue(libvirt.validate())