コード例 #1
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsStatusCmdTest"])
コード例 #2
0
ファイル: ngamsCClientTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsCClientTest"])
コード例 #3
0
def run():
    """
	Run the complete test.

	Returns:   Void.
	"""
    runTest(["ngamsContainerTest"])
コード例 #4
0
ファイル: ngamsAuthorizationTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsAuthorizationTest"])
コード例 #5
0
ファイル: ngams_test_tpl.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngams_test_tpl"])
コード例 #6
0
ファイル: ngamsOfflineCmdTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsOfflineCmdTest"])
コード例 #7
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsArchiveStressTest"])
コード例 #8
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsIdleSuspensionTest"])
コード例 #9
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsPClientTest.test_Archive_1"])
コード例 #10
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDataCheckingThreadTest"])
コード例 #11
0
ファイル: ngamsJanitorThreadTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsJanitorThreadTest"])
コード例 #12
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsConfigHandlingTest"])
コード例 #13
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDbSnapShotTest"])
コード例 #14
0
ファイル: ngamsRemFileCmdTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsRemFileCmdTest"])
コード例 #15
0
ファイル: ngamsMIMEMultipartTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    ngamsTestLib.runTest(["ngamsMIMEMultipartTest"])
コード例 #16
0
ファイル: ngamsSubscriptionTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsSubscriptionTest"])
コード例 #17
0
ファイル: ngamsBBCPArchiveTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsBBCPArchiveTest"])
コード例 #18
0
ファイル: ngamsDiscardCmdTest.py プロジェクト: rtobar/ngas
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDiscardCmdTest"])
コード例 #19
0
ファイル: ngamsCacheDelTest.py プロジェクト: rtobar/ngas
def run():
    runTest(["ngamsCacheDelTest"])
コード例 #20
0
ファイル: ngamsAuthorizationTest.py プロジェクト: rtobar/ngas
        # Users 1 and 2 are allowed to STATUS, user 3 isn't
        self._assert_code(200, bauth=auth1)
        self._assert_code(200, bauth=auth2)
        self._assert_code(403, bauth=auth3)

        # Users 1 and 3 are allowed to send the DOESNT_EXIST command, user 3 isn't
        # We get 404s here because the command actually doesn't exist, which yields
        # that HTTP code, and also because HTTP authentication happens before
        # command processing
        self._assert_code(404, bauth=auth1, cmd='DOESNT_EXIST')
        self._assert_code(403, bauth=auth2, cmd='DOESNT_EXIST')
        self._assert_code(404, bauth=auth3, cmd='DOESNT_EXIST')


def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsAuthorizationTest"])


if __name__ == '__main__':
    """
    Main program executing the test cases of the module test.
    """
    runTest(sys.argv)

# EOF
コード例 #21
0
ファイル: ngamsQueryCmdTest.py プロジェクト: rtobar/ngas
def run():
    runTest(["ngamsQueryCmdTest"])
コード例 #22
0
ファイル: ngamsMIMEMultipartTest.py プロジェクト: rtobar/ngas
        finfo = ngamsMIMEMultipart.file_info('application/octet-stream', name,
                                             size, lambda: open(name, 'rb'))
        reader = ngamsMIMEMultipart.FileReader(finfo)
        rlen = len(reader)

        message = StringIO.StringIO()
        rfunc = functools.partial(reader.read, 65536)
        for buf in iter(rfunc, ''):
            message.write(buf)
        message = message.getvalue()
        mlen = len(message)

        self.assertEqual(mlen, rlen)


def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    ngamsTestLib.runTest(["ngamsMIMEMultipartTest"])


if __name__ == "__main__":
    """
    Main program executing the test cases of the module test.
    """
    ngamsTestLib.runTest(sys.argv)

# EOF
コード例 #23
0
ファイル: ngamsPawseyStageTest.py プロジェクト: rtobar/ngas
def run():
    ngamsTestLib.runTest(["ngamsPawseyStageTest"])