Exemplo n.º 1
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsStatusCmdTest"])
Exemplo n.º 2
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsCClientTest"])
Exemplo n.º 3
0
def run():
    """
	Run the complete test.

	Returns:   Void.
	"""
    runTest(["ngamsContainerTest"])
Exemplo n.º 4
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsAuthorizationTest"])
Exemplo n.º 5
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngams_test_tpl"])
Exemplo n.º 6
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsOfflineCmdTest"])
Exemplo n.º 7
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsArchiveStressTest"])
Exemplo n.º 8
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsIdleSuspensionTest"])
Exemplo n.º 9
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsPClientTest.test_Archive_1"])
Exemplo n.º 10
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDataCheckingThreadTest"])
Exemplo n.º 11
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsJanitorThreadTest"])
Exemplo n.º 12
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsConfigHandlingTest"])
Exemplo n.º 13
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDbSnapShotTest"])
Exemplo n.º 14
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsRemFileCmdTest"])
Exemplo n.º 15
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    ngamsTestLib.runTest(["ngamsMIMEMultipartTest"])
Exemplo n.º 16
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsSubscriptionTest"])
Exemplo n.º 17
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsBBCPArchiveTest"])
Exemplo n.º 18
0
def run():
    """
    Run the complete test.

    Returns:   Void.
    """
    runTest(["ngamsDiscardCmdTest"])
Exemplo n.º 19
0
def run():
    runTest(["ngamsCacheDelTest"])
Exemplo n.º 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
Exemplo n.º 21
0
def run():
    runTest(["ngamsQueryCmdTest"])
Exemplo n.º 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
Exemplo n.º 23
0
def run():
    ngamsTestLib.runTest(["ngamsPawseyStageTest"])