Esempio n. 1
0
 def unitTestInitialState(self):
     """
     check the status after a job creation
     """
     EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestInitialState")
     EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess()))
     EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning()))
     EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure()))
     EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running")
     EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished")
     EDAssert.equal(False, self.strPluginName in EDStatus.getFailure(), "Plugin not yet Finished")
Esempio n. 2
0
 def unitTestFailed(self):
     """
     check the failure of a plugin is registerd 
     """
     EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestFailed")
     EDStatus.tellFailure(self.strPluginName)
     EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess()))
     EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning()))
     EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure()))
     EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running")
     EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished")
     EDAssert.equal(True, self.strPluginName in EDStatus.getFailure(), "Plugin Failed as expected")
Esempio n. 3
0
 def getFailure(self):
     """
     retrieve the list of plugins finished with failure (with their plugin-Id)
     """
     return EDStatus.getFailure()