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", "testNull", "testSetupConfig", "testGridRead", "testGridMatch", "testMkMinim", "testChecklistEval", "testChecklistEvalExcel", ], "component": ["testComponents"], "integration": ["testIntegration"], "pending": ["testPending"], } return TestUtils.getTestSuite(TestMkMinim, 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" , "testPush" , "testPushZip" , "testPushZipSynchronous" , "testPushZipAsynchronous" , "testCheckout" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestSyncCommands, 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" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestROSupport, 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" , "testManifestContent" , "testAddAggregatedResources" , "testAddAggregatedResourcesCommand" , "testGetRoUri" , "testGetComponentUri" , "testGetComponentUriRel" , "testGetComponentUriRelUri" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestManifest, 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" , "testSimpleAskQuery" , "testSimpleSelectQuery" , "testDatatypeFilter" , "testIntegerStringFilter" , "testRegexFilter" , "testDefaultQuery" , "testGraphReadTerms" , "testLiteralCompare" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestSparqlQueries, 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": [ "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" , "testNull" , "testSetupConfig" , "testMinimRead" , "testGetConstraints" , "testGetConstraint" , "testGetModels" , "testGetModel" , "testGetRequirements" , "testGetListRequirements" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestMinimAccess2, 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": [ ], "component": [ "testSnapshot" , "testArchive" ], "integration": [ ], "pending": [ ] } return TestUtils.getTestSuite(TestEvo, 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" , "testCreateRo" , "testAddGetAggregatedResources" , "testClassifyAggregatedResources" , "testGetAsZip" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testQueryAnnotationsRemote" ] } return TestUtils.getTestSuite(TestRemoteROMetadata, 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" , "testHelpers" , "testListROs" , "testCreateRO" , "testDeleteRO" , "testGetROManifest" , "testGetROPage" , "testGetROZip" # Resource tests , "testAggregateResourceInt" , "testDeleteResourceInt" , "testAggregateResourceExt" , "testDeleteResourceExt" , "testGetROResource" , "testGetROResourceRDF" , "testGetROResourceProxy" # Annotation tests , "testCreateROAnnotationInt" , "testGetROAnnotationGraph" , "testCreateROAnnotationExt" , "testUpdateROAnnotationInt" , "testUpdateROAnnotationExt" , "testRemoveROAnnotation" # Evolution tests , "testCopyRO" , "testCancelCopyRO" , "testUpdateROStatus" , "testGetROEvolution" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestROSRS_Session, 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" , "testCreateGraphRoUri" , "testCreateReadRoAnnotationBody" , "testCreateReadFileAnnotationBody" , "testGetInitialRoAnnotations" , "testAddGetRoAnnotations" , "testAddRoAnnotationIsAggregated" , "testRemoveGetRoAnnotations" , "testReplaceGetRoAnnotations" , "testAddGetFileAnnotations" , "testRemoveGetFileAnnotations" , "testAddGetAllAnnotations" , "testAddGetAnnotationValues" , "testQueryAnnotations" , "testQueryAnnotationsWithMissingGraph" , "testGetRoUri" , "testGetComponentUri" , "testGetComponentUriRel" , "testGetComponentUriRelUri" , "testAddAggregatedResources" , "testAddAggregatedResourcesWithDirs" , "testGetAggregatedResources" ], "component": [ "testComponents" ], "integration": [ "testIntegration" , "testCreateGraphRoUri2" ], "pending": [ "testPending" , "testQueryAnnotationsRemote" ] } return TestUtils.getTestSuite(TestROMetadata, 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" , "testEscapeJSON" , "testHelloWorld" , "testSimpleQuery" , "testSimpleQuotedJson" , "testSimpleQuotedHtml" , "testQueryResultMerge" , "testQueryResultPreBinding" , "testSequence" , "testAlternative" , "testAlternativeMissing" , "testRepetition" , "testRepetitionMax" , "testRepetitionAlt" , "testQueryForNesting" , "testNesting" , "testReportEvalResultUri" , "testReportEvalResultLabel" , "testReportEvalResultClass" , "testReportEvalItemJSON" , "testTrafficlightJSON" , "testReportEvalItemHTML" , "testTrafficlightHTML" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestRdfReport, 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" , "testGetFileUri" , "testGetUriFile" , "testGetRoUri" , "testGetComponentUri" , "testGetComponentUriRel" , "testGetGraphRoUri" , "testGetAnnotationByName" , "testGetAnnotationByUri" , "testGetAnnotationNameByUri" , "testMakeAnnotationFilename" , "testCreateReadRoAnnotationBody" , "testCreateReadFileAnnotationBody" , "testGetInitialRoAnnotations" , "testAddGetRoAnnotations" , "testRemoveGetRoAnnotations" , "testReplaceGetRoAnnotations" , "testAddGetFileAnnotations" , "testRemoveGetFileAnnotations" , "testAddGetAllAnnotations" , "testAddGetAnnotationValues" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestAnnotationUtils, 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" #, "testHelpVersion" #, "testHelpOptions" , "testHelpCommands" , "testInvalidCommand" , "testConfig" , "testConfigVerbose" , "testCreate" , "testCreateDefaults" , "testCreateBadDir" , "testStatus" , "testStatusDefault" , "testList" , "testListDefault" , "testAddDirectory" , "testAddExternalResource" , "testRemove" , "testRemoveWildcard" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestBasicCommands, 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" , "testAnnotateTypeCurie" , "testAnnotateMultiple" , "testAnnotateFileWithEscapes" , "testAnnotationDisplayRo" , "testAnnotationDisplayFile" , "testAnnotationDisplayDefault" , "testAnnotateWithGraph" , "testAnnotateWithNotExistentGraph" , "testAnnotateWildcardPattern1" , "testAnnotateWildcardPattern2" ], "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": [ "testUnits" , "testNull" , "testSetupConfig" , "testEvalAllPresent" , "testEvalMustMissing" , "testEvalShouldMissing" , "testEvalMayMissing" , "testEvalFormatSummary" , "testEvalFormatDetail" , "testEvaluateChecklistCommand" , "testEvaluateWfInputs" , "testEvaluateWfInputsRDF" , "testEvaluateMissing" , "testEvaluateMissingRDF" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testEvaluateChecklistRemote" ] } return TestUtils.getTestSuite(TestEvalChecklist, 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" , "testCollectDirsShallow" , "testCollectDirsRecursive" , "testCollectDirsRecursiveBaseEndswithSep" , "testCollectDirsRecursiveEmptyBase" , "testCollectFilesShallow" , "testCollectFilesRecursive" , "testCollectFilesRecursiveBaseEndswithSep" , "testCollectFilesRecursiveEmptyBase" , "testCollectAllShallow" , "testCollectAllRecursive" , "testCollectAllRecursiveBaseEndswithSep" , "testCollectAllRecursiveEmptyBase" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestScanDirectories, 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" , "testEvalQueryTestModelMin" , "testEvalQueryTestModelExists" , "testEvalQueryTestModel" , "testEvalQueryTestReportList" , "testEvalQueryTestChembox" , "testEvalQueryTestChemboxFail" , "testEvalFormatSummary" , "testEvalFormatDetail" , "testEvaluateRDF" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestEvalQueryMatch, 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": [ ], "component": [ "testSnapshotAsynchronous" , "testSnapshotSynchronous" , "testSnapshotWithEscOption" , "testArchiveAsynchronous" , "testArchiveSynchronous" , "testFreeze" , "testRemoteStatusSnapshotRO" , "testRemoteStatusArchiveRO" , "testRemoteStatusUndefinedRO" , "testRemoteStatusLiveRO" , "testRemoteStatusWithWrongUriGiven" ], "integration": [ ], "pending": [ ] } return TestUtils.getTestSuite(TestEvoCommands, testdict, select=select)
, "testGetAnnotationByUri" , "testGetAnnotationNameByUri" , "testMakeAnnotationFilename" , "testCreateReadRoAnnotationBody" , "testCreateReadFileAnnotationBody" , "testGetInitialRoAnnotations" , "testAddGetRoAnnotations" , "testRemoveGetRoAnnotations" , "testReplaceGetRoAnnotations" , "testAddGetFileAnnotations" , "testRemoveGetFileAnnotations" , "testAddGetAllAnnotations" , "testAddGetAnnotationValues" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestAnnotationUtils, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestAnnotationUtils.log", getTestSuite, sys.argv) # End.
"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" , "testPush" , "testPushZip" , "testPushZipSynchronous" , "testPushZipAsynchronous" , "testCheckout" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestSyncCommands, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestSyncCommands.log", getTestSuite, sys.argv) # End.
, "testGetROResourceProxy" # Annotation tests , "testCreateROAnnotationInt" , "testGetROAnnotationGraph" , "testCreateROAnnotationExt" , "testUpdateROAnnotationInt" , "testUpdateROAnnotationExt" , "testRemoveROAnnotation" # Evolution tests , "testCopyRO" , "testCancelCopyRO" , "testUpdateROStatus" , "testGetROEvolution" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestROSRS_Session, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestROSRS_Session.log", getTestSuite, sys.argv) # End.
""" testdict = { "unit": [ "testUnits" , "testNull" , "testSetupConfig" , "testMinimRead" , "testGetConstraints" , "testGetConstraint" , "testGetModels" , "testGetModel" , "testGetRequirements" , "testGetListRequirements" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestMinimAccess2, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestMinimAccess2.log", getTestSuite, sys.argv) # End.
"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) if __name__ == "__main__": TestUtils.runTests("TestROSRSMetadata.log", getTestSuite, sys.argv) # End.
name a single named test to be run """ testdict = { "unit": [ "testUnits" , "testSimpleAskQuery" , "testSimpleSelectQuery" , "testDatatypeFilter" , "testIntegerStringFilter" , "testRegexFilter" , "testDefaultQuery" , "testGraphReadTerms" , "testLiteralCompare" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestSparqlQueries, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestSparqlQueries.log", getTestSuite, sys.argv) # End.
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" , "testPush" , "testPushZip" ], "integration": [ "testIntegration" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestRosrsSync, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestRosrsSync.log", getTestSuite, sys.argv)
""" 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" ], "pending": [ "testPending" ] } return TestUtils.getTestSuite(TestROSupport, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestROSupport.log", getTestSuite, sys.argv) # End.
, "testSetupConfig" , "testEvalAllPresent" , "testEvalMustMissing" , "testEvalShouldMissing" , "testEvalMayMissing" , "testEvalFormatSummary" , "testEvalFormatDetail" , "testEvaluateChecklistCommand" , "testEvaluateWfInputs" , "testEvaluateWfInputsRDF" , "testEvaluateMissing" , "testEvaluateMissingRDF" ], "component": [ "testComponents" ], "integration": [ "testIntegration" ], "pending": [ "testPending" , "testEvaluateChecklistRemote" ] } return TestUtils.getTestSuite(TestEvalChecklist, testdict, select=select) if __name__ == "__main__": TestUtils.runTests("TestEvalChecklist.log", getTestSuite, sys.argv) # End.