def runTestSuite(): """ Transfer function for setup.py script ro-manager-test """ base = os.path.dirname(__file__) #print "Run test suite assuming base path "+base sys.path.insert(0, os.path.normpath(base+"/..") ) sys.path.insert(0, os.path.normpath(base+"/../..") ) sys.path.insert(0, os.path.normpath(base+"/../../iaeval/test") ) sys.path.insert(0, os.path.normpath(base+"/../../sync/test") ) #print "Path: "+repr(sys.path) TestUtils.runTests("TestAll", getTestSuite, sys.argv) return 0
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testUnits"], "component": [ "testComponents", "testTestEventHTTPClientServerIntro", "testSubscriptionForwarding1", "testSubscriptionForwarding2", "testSubscriptionForwarding3", "testSubscriptionForwarding4", "testTestEventHTTPClientServerDone" ], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestEventHTTPClientServer, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testLoadConfig" ], "component": [ "testDummy" ], "integration": [ "testOn" , "testRed" , "testGreen" , "testBlue" , "testCommand" , "testOff" , "testBadCommand" ], "pending": [ "testDummy" ] } return TestUtils.getTestSuite(TestRgbLedLighting, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testStatusCreate1", "testStatusCreate2", "testStatusCreate3", "testStatusEqual1", "testStatusEqual2", "testStatusEqual3", "testStatusString1", "testStatusString2", "testStatusString3", "testStatusString4", "testStatusException1", "testStatusException2", "testStatusEvent1", "testStatusEvent2", "testStatusValues" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestStatusVals, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testDirectoryListingHandlerResponse" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestDirectoryListingHandler, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testUnWrap1", "testUnWrap2", "testUnWrap3", "testUnWrap4", "testUnWrap5", "testFlatten1", "testFlatten2", ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"], } return TestUtils.getTestSuite(TestEventEnvelope, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testDatasetCreation", "testSingleFileSubmission", "testDirectorySubmission", "testSubsequentDatasetSubmission", "testEmptyDirectorySubmission", "testDatasetDeletion" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" , "testCreateRoMetadata" , "testReadRoAnnotationBody" , "testGetInitialRoAnnotations" , "testQueryAnnotations" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestROSRSMetadata, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testRUNOfAWorkflow", "testRUNOfAWorkflow2", "testNumberOfWorkflowOutputsCOUNT", "testNumberOfWorkflowOutputsCOUNTProv", "testNumberOfWorkflowInputsCOUNT", "testNumberOfWorkflowInputsCOUNTProv", "testWorkflowInputPatternSELECT", "testNumberOfProcessRunsCount", "testStartTimeOfRunSelect", "testEndTimeOfRunSelect", "testSourceArtifactsOfWfOutputCount", "testSourceActivitiesOfWfOutputCount", "testOutputOfConcatenateCount", "testInputsOfConcatenateCount", "testStartTimeOfConcatenateSelect", "testEndTimeOfConcatenateSelect", "testIntermediateOutputsCount", "testIntermediateInputsCount" ], } return TestUtils.getTestSuite(TestHelloAnyoneWfprov, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" ], "component": [ "testComponents" ], "integration": [ "testIntegration" , "testTestEventHTTPClientIntro" , "testSubscriptionForwarding1" , "testSubscriptionForwarding2" , "testSubscriptionForwarding3" , "testSubscriptionForwarding4" , "testTestEventHTTPClientDone" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestEventHTTPClient, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be testSimpleHttpGet_origrun """ testdict = { "unit": [ #"testUnits" #"testSimpleHttpGet_orig", "testSimpleHttpGet", "testSimpleHttpPost", "testSimpleHttpDelete" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestHttpSession, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" , "testTripleExists" , "testSimpleJSONDecode" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(SparqlQueryTestCase, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testNull" # Test access to Private area CIFs , "testDeletedUserDReadUserDCIFSPrivateArea", "testUserAReadUserDCIFSPrivateArea", "testRGLeaderReadUserDCIFSPrivateArea", "testCollabReadUserDCIFSPrivateArea" # Test access to Shared area CIFS , "testDeletedUserDReadUserDCIFSSharedArea", "testUserAReadUserDCIFSSharedArea", "testRGLeaderReadUserDCIFSSharedArea", "testCollabReadUserDCIFSSharedArea" # Test access to Collab area CIFS , "testDeletedUserDReadUserDCIFSCollabArea", "testUserAReadUserDCIFSCollabArea", "testRGLeaderReadUserDCIFSCollabArea", "testCollabReadUserDCIFSCollabArea" # Test access to Private area HTTP , "testDeletedUserDReadUserDHTTPPrivateArea", "testUserAReadUserDHTTPPrivateArea", "testRGLeaderReadUserDHTTPPrivateArea", "testCollabReadUserDHTTPPrivateArea" # Test access to Shared area HTTP , "testDeletedUserDReadUserDHTTPSharedArea", "testUserAReadUserDHTTPSharedArea", "testRGLeaderReadUserDHTTPSharedArea", "testCollabReadUserDHTTPSharedArea" # Test access to Collab area HTTP , "testDeletedUserDReadUserDHTTPCollabArea", "testUserAReadUserDHTTPCollabArea", "testRGLeaderReadUserDHTTPCollabArea", "testCollabReadUserDHTTPCollabArea" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestDeletedUserCheckFileAccess, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" ], "component": [ "testComponents" , "testWebDAVFileRead" , "testWebDAVFileCreate" , "testWebDAVFileUpdate" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testWebDAVFile" , "testWebDAVFileDelete" ] } return TestUtils.getTestSuite(TestWebDAVbyHTTP, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" , "testLink" , "testLinkType" , "testLinkCreated" , "testLinkRdfType" , "testLinkUnknownUri" , "testLinkWithGraph" , "testLinkWithNotExistentGraph" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestLinks, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testAdmiralModifyUserDetails" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestAdminInterfaceRestfulAPIs, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" ,"testDatasetSubmission" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ ] } return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" ], "component": [ "testComponents" , "testReadMe" , "testCreateFile" , "testRewriteFile" , "testUpdateFile" , "testDeleteFile" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testWebDAVFile" , "testWebDAVFileUrlLib" ] } return TestUtils.getTestSuite(TestWebDAVAccess, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(SparqlQueryTestCase, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testEggNunciateSingle" , "testEggNunciateTwo" , "testEggNunciateGarage" , "testEggNunciateAlarm" , "testEggNunciateGarageAlarm" ], "component": [ "testDummy" ], "integration": [ "testDummy" ], "pending": [ "testDummy" ] } return TestUtils.getTestSuite(TestEggNunciate, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testShutdown", "testSubscriptionRouteTable", "testSubscriptionForwarding1", "testSubscriptionForwarding2", "testSubscriptionForwarding3", "testSubscriptionForwarding4", "testSubscriptionForwarding5", "testSubscriptionForwarding6", "testSubscriptionForwarding7", "testSubscriptionForwarding8", "testBlockingEventDelivery", "testInterleavedEventDelivery" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending", "testWatch"] } return TestUtils.getTestSuite(TestEventRouterThreaded, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of udirName, baseDir,nit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testSubmitDatasetHandlerHTMLResponse" ,"testSubmitDatasetHandlerDatasetCreation" ,"testSubmitDatasetHandlerDatasetDeletion" ,"testSubmitDatasetHandlerDirectorySubmission" ,"testSubmitDatasetHandlerEmptyDirectorySubmission" ,"testSubmitDatasetHandlerUpdateMetadataBeforeSubmission" ,"testUpdateLocalManifestAndDatasetSubmission" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestSubmitDatasetHandler, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testEventFromString" , "testReadLogFile" , "testReadLogFile2" , "testLineReader" ], "component": [ "testDummy" ], "integration": [ "testDummy" ], "pending": [ "testDummy" , "testReadLogFiles" , "ReadZipFileSendEvents" , "ReadZipFilesSendEvents" ] } return TestUtils.getTestSuite(TestReadEventLogs, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of component tests "integration" return suite of integration tests "all" return suite of unit and component tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" ], "component": [ "testComponents" ], "integration": [ "testIntegration" , "testGetHomepage" , "testGetStatus" , "testGetConfig" , "testCommand" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestWbAccess, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" , "testAnnotate" , "testAnnotateType" , "testAnnotateKeywords" , "testAnnotateDescription" , "testAnnotateCreated" , "testAnnotateTypeUri" , "testAnnotateMultiple" , "testAnnotationDisplay" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestAnnotations, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testLoad" , "testRun" ], "component": [ "testDummy" ], "integration": [ "testDummy" ], "pending": [ "testDummy" ] } return TestUtils.getTestSuite(TestScheduleProcessor, testdict, select=select)
def getTestSuite(select="unit", testargs=[("arg","val")]): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testCase" , "testArg" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } for (argname,argval) in testargs: if argval: setattr(TestExample, argname, argval) return TestUtils.getTestSuite(TestExample, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testCreateEventHandler1", "testMakeEventHandler1", "testMakeEventHandler2", "testMakeEventHandler3", "testMakeEventHandler4", "testMakeEventHandler5", "testEventHandlerEqual1", "testEventHandlerEqual2", "testEventHandlerEqual3", "testEventHandlerEqual4", ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"], } return TestUtils.getTestSuite(TestEventHandler, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testDummy" ], "component": [ "testSetTimeDirect" , "testSetTime" , "testTimeSignalReboot" , "testTimeSignalSetTime" ], "integration": [ "testDummy" ], "pending": [ "testDummy" # these two need rework to pick up UDP commands being sent out. , "testTimeSignalResetSiteplayer" , "testTimeOfDayResetSiteplayer" ] } return TestUtils.getTestSuite(TestWebbrickMonitor, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testGetDatasetMetadataResponse" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestGetDatasetMetadataHandler, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "zzunit": [ "testDummy" ], "zzcomponent": [ "testDummy" ], "integration": [ "testSend" , "testListen" ], "zzpending": [ "testDummy" ] } return TestUtils.getTestSuite(TestCounters, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testWriteEmptyDatabase", "testDatabaseWriteNew", "testDatabaseWrite4", "testDatabaseWriteLoop", "testDatabaseMultiValue", "testDatabaseSameSource", "testCompress", ], "component": ["testDummy"], "integration": ["testDummy"], "pending": ["testDummy"], } return TestUtils.getTestSuite(TestPersistDatabase, testdict, select=select)
def getTestSuite(select="unit"): testdict = { "unit": [ "testEventCreate1" , "testEventCreate2" , "testMakeEvent1" , "testMakeEvent2" , "testMakeEvent3" , "testMakeEvent4" , "testMakeEvent5" , "testEventEqual1" , "testEventEqual2" , "testEventEqual3" , "testEventEqual4" , "testEventEqual5" , "testEventEqual6" , "testEventEqual7" , "testEventEqual8" , "testEventString1" , "testUnits" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestEventVals, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "GetEvents" , "DecodeMessage" , "DecodeMultiple" , "DecodeDirtyMessage" ], "component": [ "testDummy" ], "integration": [ "testDummy" ], "pending": [ "testDummy" ] } return TestUtils.getTestSuite(TestSkyDrivers, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testNull" ], "component": [ "testComponents" , "testUnauthUserHTTP" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testReadMeSSH" , "testReadMeDAVfs" , "testCreateFileDAVfs" , "testUpdateFileDAVfs" , "testDeleteFileDAVfs" , "testDeleteFileCIFS" , "testDeleteFileHTTP" ] } return TestUtils.getTestSuite(TestFileDefaultArea, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testGenerationPrecedesInvalidation", "testGenerationPrecedesUsage", "testUsagePrecedesInvalidation", "testGenerationOrdering", "testInvalidationOrdering", "testDerivationUsageGenerationOrdering", "testDerivationGenerationGenerationOrdering", "testWasStartedByOrdering", "testWasEndedByOrdering", "testSpecializationGenerationOrdering", "testSpecializationInvalidationOrdering" ], } return TestUtils.getTestSuite(TestEntityOrdering, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testUnits", "testNull"], "component": [ "testComponents", "testReadMeCIFS", "testReadMeHTTP", "testCreateFileCIFS", "testCreateFileHTTP", "testUpdateFileCIFS", "testUpdateFileHTTP" ], "integration": ["testIntegration"], "pending": [ "testPending", "testReadMeSSH", "testReadMeDAVfs", "testCreateFileDAVfs", "testUpdateFileDAVfs", "testDeleteFileDAVfs", "testDeleteFileCIFS", "testDeleteFileHTTP" ] } return TestUtils.getTestSuite(TestFileUserASharedPublic, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testTimerEvent" , "testTimerDisable" , "testTimerHold" , "testTimerHoldPI" , "testTimerEventWithState" , "testTimerEventWithStateAndPresence" , "testTimerEventWithAnalogue" ], "zzcomponent": [ "testComponents" ], "zzintegration": [ "testIntegration" ], "zzpending": [ "testPending" ] } return TestUtils.getTestSuite(TestTimerAction, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of component tests "integration" return suite of integration tests "all" return suite of unit and component tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testOrigConfig" , "testMakeConfig" , "testCopyConfig" , "testSetConfig" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestWbConfigEdit, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ #"testUnits" "testDatasetCreation" , "testSingleFileSubmission" , "testDirectorySubmission" , "testSubsequentDatasetSubmission" , "testEmptyDirectorySubmission" , "testDatasetDeletion" ], "component": [ #"testComponents" ], "integration": [ #"testIntegration" ], "pending": [ #"testPending" ] } return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testDummy" ], "zzcomponent": [ "testDummy" ], "integration": [ "testLoad" , "testStartStop" , "testVolume" ], "pending": [ "testDummy" ] } return TestUtils.getTestSuite(testITunes, testdict, select=select)
def getTestSuite(select="unit"): testdict = { "unit": [], "component": ["testMe"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(OXDSDataset, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testWildDict1" , "testWildDict2" , "testWildDictIterate" , "testEventTypeSourceDict1" , "testEventTypeSourceDict2" , "testEventTypeSourceDictIterate" , "testPublishT1S1" , "testPublishT2S1" , "testPublishT1S2" , "testPublishT2S2" , "testPublishT1S3" , "testPublishT3S1" , "testPublishT3S3" , "testUnsubscribe1" , "testUnsubscribe2" , "testUnsubscribe3" , "testWatch1" , "testWatch2" , "testWatch3" , "testWatch4" , "testWatch5" , "testWatch6" , "testWatch7" , "testWatchPrior1" , "testWatchPrior2" , "testWatchPrior3" , "testWatchPrior4" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testWatch8" ] } return TestUtils.getTestSuite(TestEventPubSub, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testAskQueries"], } return TestUtils.getTestSuite(TestSimplePatterns, testdict, select=select)
def getTestSuite(select="unit"): testdict = { "unit": [ "testEventCreate1", "testEventCreate2", "testMakeEvent1", "testMakeEvent2", "testMakeEvent3", "testMakeEvent4", "testMakeEvent5", "testEventEqual1", "testEventEqual2", "testEventEqual3", "testEventEqual4", "testEventEqual5", "testEventEqual6", "testEventEqual7", "testEventEqual8", "testEventString1", "testUnits" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestEventVals, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testWasAssociatedWithOrdering", "testWasAttributedToOrdering", "testActedOnBehalfOfOrdering" ], } return TestUtils.getTestSuite(TestAgentOrdering, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUniqueGeneration", "testUniqueInvalidation", "testUniqueStartedBy", "testUniqueEndedBy", "testUniqueStartTime", "testUniqueEndTime" ], } return TestUtils.getTestSuite(TestUniqueness, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testUnits", "testNull", "testServiceDocumentAccess"], "component": ["testComponents"], "integration": ["testIntegration"], "pending": [] } return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
def getTestSuite(select="unit", testargs=[("arg", "val")]): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testUnits", "testCase", "testArg"], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } for (argname, argval) in testargs: if argval: setattr(TestExample, argname, argval) return TestUtils.getTestSuite(TestExample, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testUnWrap1", "testUnWrap2", "testUnWrap3", "testUnWrap4", "testUnWrap5", "testFlatten1", "testFlatten2" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestEventEnvelope, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testStartPrecedesEnd", "testStartStartOrdering", "testEndEndOrdering", "testUsageWithinActivity", "testGenerationWithinActivity", "testWasInformedByOrdering" ], } return TestUtils.getTestSuite(TestActivityOrdering, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testCreateEventAgent1" , "testCreateEventAgentError" , "testMakeEventAgent1" , "testMakeEventAgent2" , "testMakeEventAgent3" , "testEventAgentEqual1" , "testEventAgentEqual2" , "testEventAgentEqual3" , "testEventAgentEqual4" , "testEventAgentEqual5" , "testEventAgentEqual6" , "testEventAgentEqual7" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestEventAgent, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testEventEnvelope1", "testMakeEnvelopeData1", "testMakeEnvelopeData2", "testMakeEnvSubscribeData1", "testMakeEnvSubscribeData2", "testMakeEnvSubscribeData3", "testMakeEnvSubscribeData4", "testMakeEnvUnsubscribeData", "testMakeClosedownData", "testMakeIdleData", "testParseEnvelopeData1", "testParseEnvelopeData2", "testParseEnvelopeData3", "testParseEnvelopeData4", "testParseEnvSubscribeData1", "testParseEnvSubscribeData2", "testParseEnvSubscribeData3", "testParseEnvUnsubscribeData1", "testParseEnvUnsubscribeData2", "testParseEnvUnsubscribeData3", "testParseEnvUnsubscribeData4", "testParseEnvUnsubscribeData5", "testParseMessageData1", "testParseMessageData2", "testParseMessageData3", "testParseMessageData4", "testParseMessageData5", "testParseMessageData6", "testParseMessageData7", "testParseMessageData8", "testParseMessageData9", "testParseMessageData10", "testParseMessageData11", "testParseMessageData12", "testEventEnvelope2" ], "component": ["testComponents"], "integration": ["testIntegration"], "zzpending": ["testPending"] } return TestUtils.getTestSuite(TestEventSerializer, testdict, select=select)
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": [ "testUnits", "testDate1", "testTime1", "testDateTime1", "testDateTime2" ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestURI, testdict, select=select) # Run unit tests directly from command line if __name__ == "__main__": TestUtils.runTests("TestURI.log", getTestSuite, sys.argv) # End.
def getTestSuite(select="unit"): """ Get test suite select is one of the following: "unit" return suite of unit tests only "component" return suite of unit and component tests "all" return suite of unit, component and integration tests "pending" return suite of pending tests name a single named test to be run """ testdict = { "unit": ["testUnits", "testNull"], "component": [ "testComponents", "testReadMe", "testCreateFile", "testRewriteFile", "testUpdateFile", "testDeleteFile", "testWebDAVFile" ], "integration": ["testIntegration"], "pending": ["testPending"] } return TestUtils.getTestSuite(TestFileAccess, testdict, select=select) # Run unit tests directly from command line if __name__ == "__main__": TestUtils.runTests("TestFileAccess", getTestSuite, sys.argv) # End.
import TestTestUtils import TestFunctions import TestCombinators import TestDomHelpers import TestScanFiles import TestScanDirectories import TestNetUtils import TestSuperGlobal # Code to run unit tests from all library test modules def getTestSuite(select="unit"): suite = unittest.TestSuite() suite.addTest(TestTestUtils.getTestSuite(select=select)) suite.addTest(TestFunctions.getTestSuite()) suite.addTest(TestCombinators.getTestSuite()) suite.addTest(TestDomHelpers.getTestSuite()) suite.addTest(TestScanFiles.getTestSuite()) suite.addTest(TestScanDirectories.getTestSuite()) suite.addTest(TestNetUtils.getTestSuite()) suite.addTest(TestSuperGlobal.getTestSuite()) return suite from MiscLib import TestUtils if __name__ == "__main__": TestUtils.runTests("TestAll", getTestSuite, sys.argv) # End.
""" testdict = { "unit": [ "testRUNOfAWorkflow", "testRUNOfAWorkflow2", "testNumberOfWorkflowOutputsCOUNT", "testNumberOfWorkflowOutputsCOUNTProv", "testNumberOfWorkflowInputsCOUNT", "testNumberOfWorkflowInputsCOUNTProv", "testWorkflowInputPatternSELECT", "testNumberOfProcessRunsCount", "testStartTimeOfRunSelect", "testEndTimeOfRunSelect", "testSourceArtifactsOfWfOutputCount", "testSourceActivitiesOfWfOutputCount", "testOutputOfConcatenateCount", "testInputsOfConcatenateCount", "testStartTimeOfConcatenateSelect", "testEndTimeOfConcatenateSelect", "testIntermediateOutputsCount", "testIntermediateInputsCount" ], } return TestUtils.getTestSuite(TestHelloAnyoneWfprov, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestHelloAnyoneWfprov", getTestSuite, sys.argv) # End.