Пример #1
0
    def testSetDataInput(self):
        """
        """
        edPluginXDSIndexingv1_0 = self.createPlugin()
        xsPluginItemGood01 = self.getPluginConfiguration(
            os.path.join(self.getPluginTestsDataHome(),
                         "EDPluginXDSIndexingv1_0_configuration_OK_01.xml"))
        edPluginXDSIndexingv1_0.setConfiguration(xsPluginItemGood01)
        edPluginXDSIndexingv1_0.setScriptExecutable("cat")
        edPluginXDSIndexingv1_0.configure()

        from XSDataXDSv1_0 import XSDataInputXDSIndexing
        xmlInput = self.readAndParseFile(self.strReferenceInputFile)
        xsDataXDSIndexingInputReference = XSDataInputXDSIndexing.parseString(
            xmlInput)
        xsDataXDSIndexingInputReference.exportToFile(
            "XSDataInputXDSIndexing_reference.xml")
        edPluginXDSIndexingv1_0.setDataInput(xmlInput)

        xsDataXDSIndexingInput = edPluginXDSIndexingv1_0.getDataInput()
        xsDataXDSIndexingInput.exportToFile("XSDataInputXDSIndexing.xml")
        EDAssert.equal(xsDataXDSIndexingInputReference.marshal(),
                       xsDataXDSIndexingInput.marshal())

        self.cleanUp(edPluginXDSIndexingv1_0)
 def testCreateImageLinks(self):
     from XSDataXDSv1_0 import XSDataInputXDSIndexing
     xsDataInputXDSIndexing = XSDataInputXDSIndexing.parseFile(self.m_strReferenceDataInputFile)
     edPluginXDSv1_0 = self.createPlugin()
     edPluginXDSv1_0.setXSDataInputClass(XSDataInputXDS)
     edPluginXDSv1_0.setScriptExecutable("cat")
     edPluginXDSv1_0.configure()
     edPluginXDSv1_0.setDataInput(xsDataInputXDSIndexing)
     edPluginXDSv1_0.createImageLinks()
     strScript = edPluginXDSv1_0.prepareScript()
     edPluginXDSv1_0.writeExecutableScript(strScript)
 def testGenerateXDSCommands(self):
     from XSDataXDSv1_0 import XSDataInputXDSIndexing
     xsDataInputXDSIndexing = XSDataInputXDSIndexing.parseFile(self.m_strReferenceDataInputFile)
     edPluginXDSv1_0 = self.createPlugin()
     edPluginXDSv1_0.setXSDataInputClass(XSDataInputXDS)
     edPluginXDSv1_0.setScriptExecutable("cat")
     edPluginXDSv1_0.configure()
     edPluginXDSv1_0.setDataInput(xsDataInputXDSIndexing)
     edPluginXDSv1_0.addJob("INIT")
     edPluginXDSv1_0.generateXDSCommands()
     edPluginXDSv1_0.writeInputXDSFile()
Пример #4
0
 def testCreateImageLinks(self):
     from XSDataXDSv1_0 import XSDataInputXDSIndexing
     xsDataInputXDSIndexing = XSDataInputXDSIndexing.parseFile(
         self.m_strReferenceDataInputFile)
     edPluginXDSv1_0 = self.createPlugin()
     edPluginXDSv1_0.setXSDataInputClass(XSDataInputXDS)
     edPluginXDSv1_0.setScriptExecutable("cat")
     edPluginXDSv1_0.configure()
     edPluginXDSv1_0.setDataInput(xsDataInputXDSIndexing)
     edPluginXDSv1_0.createImageLinks()
     strScript = edPluginXDSv1_0.prepareScript()
     edPluginXDSv1_0.writeExecutableScript(strScript)
Пример #5
0
 def testGenerateXDSCommands(self):
     from XSDataXDSv1_0 import XSDataInputXDSIndexing
     xsDataInputXDSIndexing = XSDataInputXDSIndexing.parseFile(
         self.m_strReferenceDataInputFile)
     edPluginXDSv1_0 = self.createPlugin()
     edPluginXDSv1_0.setXSDataInputClass(XSDataInputXDS)
     edPluginXDSv1_0.setScriptExecutable("cat")
     edPluginXDSv1_0.configure()
     edPluginXDSv1_0.setDataInput(xsDataInputXDSIndexing)
     edPluginXDSv1_0.addJob("INIT")
     edPluginXDSv1_0.generateXDSCommands()
     edPluginXDSv1_0.writeInputXDSFile()
    def testSetDataInput(self):
        edPluginXDSIndexingv1_0 = self.createPlugin()
        edPluginXDSIndexingv1_0.setConfigurationFile(os.path.join(self.getPluginTestsDataHome(), "EDPluginXDSIndexingv1_0_configuration_OK_01.xml"))
        edPluginXDSIndexingv1_0.setScriptExecutable("cat")
        edPluginXDSIndexingv1_0.configure()

        from XSDataXDSv1_0 import XSDataInputXDSIndexing
        xmlInput = self.readAndParseFile(self.strReferenceInputFile)
        xsDataXDSIndexingInputReference = XSDataInputXDSIndexing.parseString(xmlInput)
        xsDataXDSIndexingInputReference.exportToFile("XSDataInputXDSIndexing_reference.xml")
        edPluginXDSIndexingv1_0.setDataInput(xmlInput)

        xsDataXDSIndexingInput = edPluginXDSIndexingv1_0.getDataInput()
        xsDataXDSIndexingInput.exportToFile("XSDataInputXDSIndexing.xml")
        EDAssert.equal(xsDataXDSIndexingInputReference.marshal(), xsDataXDSIndexingInput.marshal())

        self.cleanUp(edPluginXDSIndexingv1_0)
    def testSetDataInput(self):
        """
        """
        edPluginXDSIndexingv1_0 = self.createPlugin()
        xsPluginItemGood01 = self.getPluginConfiguration(EDUtilsPath.mergePath(self.getPluginTestsDataHome(), "EDPluginXDSIndexingv1_0_configuration_OK_01.xml"))
        edPluginXDSIndexingv1_0.setConfiguration(xsPluginItemGood01)
        edPluginXDSIndexingv1_0.setScriptExecutable("cat")
        edPluginXDSIndexingv1_0.configure()

        from XSDataXDSv1_0 import XSDataInputXDSIndexing
        xmlInput = self.readAndParseFile(self.strReferenceInputFile)
        xsDataXDSIndexingInputReference = XSDataInputXDSIndexing.parseString(xmlInput)
        xsDataXDSIndexingInputReference.outputFile("XSDataInputXDSIndexing_reference.xml")
        edPluginXDSIndexingv1_0.setDataInput(xmlInput)

        xsDataXDSIndexingInput = edPluginXDSIndexingv1_0.getDataInput()
        xsDataXDSIndexingInput.outputFile("XSDataInputXDSIndexing.xml")
        EDAssert.equal(xsDataXDSIndexingInputReference.marshal(), xsDataXDSIndexingInput.marshal())

        self.cleanUp(edPluginXDSIndexingv1_0)
Пример #8
0
 def generateXSDataInputXDSIndexing(_xsDataIndexingInput):
     xsDataInputXDSIndexing = XSDataInputXDSIndexing()
     xsDataCollection = _xsDataIndexingInput.dataCollection
     xsDataInputXDSIndexing = EDHandlerXSDataXDSv1_0.generateXSDataInputXDS(xsDataInputXDSIndexing, xsDataCollection)
     return xsDataInputXDSIndexing