コード例 #1
0
ファイル: TestAll.py プロジェクト: piotrholubowicz/ro-manager
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
コード例 #2
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)
コード例 #3
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": 
            [ "testLoadConfig"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testOn"
            , "testRed"
            , "testGreen"
            , "testBlue"
            , "testCommand"
            , "testOff"
            , "testBadCommand"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestRgbLedLighting, testdict, select=select)
コード例 #4
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", "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)
コード例 #5
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"
            "testDirectoryListingHandlerResponse"
        ],
        "component": [  #"testComponents"
        ],
        "integration": [  #"testIntegration"
        ],
        "pending": [  #"testPending"
        ]
    }
    return TestUtils.getTestSuite(TestDirectoryListingHandler,
                                  testdict,
                                  select=select)
コード例 #6
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",
            "testUnWrap1",
            "testUnWrap2",
            "testUnWrap3",
            "testUnWrap4",
            "testUnWrap5",
            "testFlatten1",
            "testFlatten2",
        ],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": ["testPending"],
    }
    return TestUtils.getTestSuite(TestEventEnvelope, testdict, select=select)
コード例 #7
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"
            "testDatasetCreation", "testSingleFileSubmission",
            "testDirectorySubmission", "testSubsequentDatasetSubmission",
            "testEmptyDirectorySubmission", "testDatasetDeletion"
        ],
        "component": [  #"testComponents"
        ],
        "integration": [  #"testIntegration"
        ],
        "pending": [  #"testPending"
        ]
    }
    return TestUtils.getTestSuite(TestDatasetSubmission,
                                  testdict,
                                  select=select)
コード例 #8
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"
            , "testCreateRoMetadata"
            , "testReadRoAnnotationBody"
            , "testGetInitialRoAnnotations"
            , "testQueryAnnotations"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestROSRSMetadata, testdict, select=select)
コード例 #9
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":
            [ 
             "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)
コード例 #10
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"
            ],
        "integration":
            [ "testIntegration"
            , "testTestEventHTTPClientIntro"
            , "testSubscriptionForwarding1"
            , "testSubscriptionForwarding2"
            , "testSubscriptionForwarding3"
            , "testSubscriptionForwarding4"
            , "testTestEventHTTPClientDone"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestEventHTTPClient, testdict, select=select)
コード例 #11
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 testSimpleHttpGet_origrun
    """
    testdict = {
        "unit": [  #"testUnits"
            #"testSimpleHttpGet_orig",
            "testSimpleHttpGet",
            "testSimpleHttpPost",
            "testSimpleHttpDelete"
        ],
        "component": [  #"testComponents"
        ],
        "integration": [  #"testIntegration"
        ],
        "pending": [  #"testPending"
        ]
    }
    return TestUtils.getTestSuite(TestHttpSession, testdict, select=select)
コード例 #12
0
ファイル: SparqlQueryTestCase.py プロジェクト: junszhao/ProvQ
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)
コード例 #13
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"
            # 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)
コード例 #14
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"
            ],
        "component":
            [ "testComponents"
            , "testWebDAVFileRead"
            , "testWebDAVFileCreate"
            , "testWebDAVFileUpdate"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            , "testWebDAVFile"
            , "testWebDAVFileDelete"
            ]
        }
    return TestUtils.getTestSuite(TestWebDAVbyHTTP, testdict, select=select)
コード例 #15
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"
            , "testLink"
            , "testLinkType"
            , "testLinkCreated"
            , "testLinkRdfType"
            , "testLinkUnknownUri"
            , "testLinkWithGraph"
            , "testLinkWithNotExistentGraph"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestLinks, testdict, select=select)
コード例 #16
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"
            "testAdmiralModifyUserDetails"
        ],
        "component": [  #"testComponents"
        ],
        "integration": [  #"testIntegration"
        ],
        "pending": [  #"testPending"
        ]
    }
    return TestUtils.getTestSuite(TestAdminInterfaceRestfulAPIs,
                                  testdict,
                                  select=select)
コード例 #17
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"
            ,"testDatasetSubmission"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ 

            ]
        }
    return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
コード例 #18
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"
            ],
        "component":
            [ "testComponents"
            , "testReadMe"
            , "testCreateFile"
            , "testRewriteFile"
            , "testUpdateFile"
            , "testDeleteFile"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            , "testWebDAVFile"
            , "testWebDAVFileUrlLib"
            ]
        }
    return TestUtils.getTestSuite(TestWebDAVAccess, testdict, select=select)
コード例 #19
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"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(SparqlQueryTestCase, testdict, select=select)
コード例 #20
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": 
            [ "testEggNunciateSingle"
            , "testEggNunciateTwo"
            , "testEggNunciateGarage"
            , "testEggNunciateAlarm"
            , "testEggNunciateGarageAlarm"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testDummy"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestEggNunciate, testdict, select=select)
コード例 #21
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", "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)
コード例 #22
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 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)
コード例 #23
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": 
            [ "testEventFromString"
            , "testReadLogFile"
            , "testReadLogFile2"
            , "testLineReader"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testDummy"
            ],
        "pending":
            [ "testDummy"
            , "testReadLogFiles"
            , "ReadZipFileSendEvents"
            , "ReadZipFilesSendEvents"
            ]
        }
    return TestUtils.getTestSuite(TestReadEventLogs, testdict, select=select)
コード例 #24
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 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)
コード例 #25
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"
            , "testAnnotate"
            , "testAnnotateType"
            , "testAnnotateKeywords"
            , "testAnnotateDescription"
            , "testAnnotateCreated"
            , "testAnnotateTypeUri"
            , "testAnnotateMultiple"
            , "testAnnotationDisplay"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestAnnotations, testdict, select=select)
コード例 #26
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": 
            [ "testLoad"
            , "testRun"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testDummy"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestScheduleProcessor, testdict, select=select)
コード例 #27
0
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)
コード例 #28
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",
            "testCreateEventHandler1",
            "testMakeEventHandler1",
            "testMakeEventHandler2",
            "testMakeEventHandler3",
            "testMakeEventHandler4",
            "testMakeEventHandler5",
            "testEventHandlerEqual1",
            "testEventHandlerEqual2",
            "testEventHandlerEqual3",
            "testEventHandlerEqual4",
        ],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": ["testPending"],
    }
    return TestUtils.getTestSuite(TestEventHandler, testdict, select=select)
コード例 #29
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": 
            [ "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)
コード例 #30
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"
              "testGetDatasetMetadataResponse"
            ],
        "component":
            [ #"testComponents"
            ],
        "integration":
            [ #"testIntegration"
            ],
        "pending":
            [ #"testPending"
            ]
        }
    return TestUtils.getTestSuite(TestGetDatasetMetadataHandler, testdict, select=select)
コード例 #31
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 = {
        "zzunit": 
            [ "testDummy"
            ],
        "zzcomponent":
            [ "testDummy"
            ],
        "integration":
            [ "testSend"
            , "testListen"
            ],
        "zzpending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestCounters, testdict, select=select)
コード例 #32
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": [
            "testWriteEmptyDatabase",
            "testDatabaseWriteNew",
            "testDatabaseWrite4",
            "testDatabaseWriteLoop",
            "testDatabaseMultiValue",
            "testDatabaseSameSource",
            "testCompress",
        ],
        "component": ["testDummy"],
        "integration": ["testDummy"],
        "pending": ["testDummy"],
    }
    return TestUtils.getTestSuite(TestPersistDatabase, testdict, select=select)
コード例 #33
0
ファイル: TestEvent.py プロジェクト: AndyThirtover/wb_gateway
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)
コード例 #34
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": 
            [
              "GetEvents"            
            , "DecodeMessage"
            , "DecodeMultiple"
            , "DecodeDirtyMessage"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testDummy"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestSkyDrivers, testdict, select=select)
コード例 #35
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"
            ],
        "component":
            [ "testComponents"
            , "testUnauthUserHTTP"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            , "testReadMeSSH"
            , "testReadMeDAVfs"
            , "testCreateFileDAVfs"
            , "testUpdateFileDAVfs"
            , "testDeleteFileDAVfs"
            , "testDeleteFileCIFS"
            , "testDeleteFileHTTP"
            ]
        }
    return TestUtils.getTestSuite(TestFileDefaultArea, testdict, select=select)
コード例 #36
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":
            [ 
             "testGenerationPrecedesInvalidation",
             "testGenerationPrecedesUsage",
             "testUsagePrecedesInvalidation",
             "testGenerationOrdering",
             "testInvalidationOrdering",
             "testDerivationUsageGenerationOrdering",
             "testDerivationGenerationGenerationOrdering",
             "testWasStartedByOrdering",
             "testWasEndedByOrdering",
             "testSpecializationGenerationOrdering",
             "testSpecializationInvalidationOrdering"
            ],
        }
    return TestUtils.getTestSuite(TestEntityOrdering, testdict, select=select)
コード例 #37
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"],
        "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)
コード例 #38
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"
              "testAdmiralModifyUserDetails"
            ],
        "component":
            [ #"testComponents"
            ],
        "integration":
            [ #"testIntegration"
            ],
        "pending":
            [ #"testPending"
            ]
        }
    return TestUtils.getTestSuite(TestAdminInterfaceRestfulAPIs, testdict, select=select)
コード例 #39
0
ファイル: TestTimer.py プロジェクト: AndyThirtover/wb_gateway
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)
コード例 #40
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 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)
コード例 #41
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"
              "testDatasetCreation"
            , "testSingleFileSubmission"
            , "testDirectorySubmission"
            , "testSubsequentDatasetSubmission"
            , "testEmptyDirectorySubmission"
            , "testDatasetDeletion"
            ],
        "component":
            [ #"testComponents"
            ],
        "integration":
            [ #"testIntegration"
            ],
        "pending":
            [ #"testPending"
            ]
        }
    return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
コード例 #42
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": 
            [ "testDummy"
            ],
        "zzcomponent":
            [ "testDummy"
            ],
        "integration":
            [ "testLoad"
            , "testStartStop"
            , "testVolume"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(testITunes, testdict, select=select)
コード例 #43
0
def getTestSuite(select="unit"):
    testdict = {
        "unit": [],
        "component": ["testMe"],
        "integration": ["testIntegration"],
        "pending": ["testPending"]
    }
    return TestUtils.getTestSuite(OXDSDataset, testdict, select=select)
コード例 #44
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"
            , "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)
コード例 #45
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": ["testAskQueries"],
    }
    return TestUtils.getTestSuite(TestSimplePatterns, testdict, select=select)
コード例 #46
0
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)
コード例 #47
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": [
            "testWasAssociatedWithOrdering", "testWasAttributedToOrdering",
            "testActedOnBehalfOfOrdering"
        ],
    }
    return TestUtils.getTestSuite(TestAgentOrdering, testdict, select=select)
コード例 #48
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": [
            "testUniqueGeneration", "testUniqueInvalidation",
            "testUniqueStartedBy", "testUniqueEndedBy", "testUniqueStartTime",
            "testUniqueEndTime"
        ],
    }
    return TestUtils.getTestSuite(TestUniqueness, testdict, select=select)
コード例 #49
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", "testServiceDocumentAccess"],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": []
    }
    return TestUtils.getTestSuite(TestDatasetSubmission,
                                  testdict,
                                  select=select)
コード例 #50
0
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)
コード例 #51
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", "testUnWrap1", "testUnWrap2", "testUnWrap3",
            "testUnWrap4", "testUnWrap5", "testFlatten1", "testFlatten2"
        ],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": ["testPending"]
    }
    return TestUtils.getTestSuite(TestEventEnvelope, testdict, select=select)
コード例 #52
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": [
            "testStartPrecedesEnd", "testStartStartOrdering",
            "testEndEndOrdering", "testUsageWithinActivity",
            "testGenerationWithinActivity", "testWasInformedByOrdering"
        ],
    }
    return TestUtils.getTestSuite(TestActivityOrdering,
                                  testdict,
                                  select=select)
コード例 #53
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"
            , "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)
コード例 #54
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", "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)
コード例 #55
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", "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.
コード例 #56
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"],
        "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.
コード例 #57
0
ファイル: TestAll.py プロジェクト: gklyne/admiral-jiscmrd
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.
コード例 #58
0
    """
    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.