예제 #1
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsStatusCmdTest"])
예제 #2
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsCClientTest"])
예제 #3
0
def run():
    """
	Run the complete test.

	Returns:   Void.
	"""
    runTest(["ngamsContainerTest"])
예제 #4
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsAuthorizationTest"])
예제 #5
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngams_test_tpl"])
예제 #6
0
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
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
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsRemFileCmdTest"])
예제 #15
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    ngamsTestLib.runTest(["ngamsMIMEMultipartTest"])
예제 #16
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsSubscriptionTest"])
예제 #17
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsBBCPArchiveTest"])
예제 #18
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDiscardCmdTest"])
예제 #19
0
def run():
    runTest(["ngamsCacheDelTest"])
예제 #20
0
        # 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
def run():
    runTest(["ngamsQueryCmdTest"])
예제 #22
0
        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
def run():
    ngamsTestLib.runTest(["ngamsPawseyStageTest"])