NGAS logo small

The Next Generation Archive System


NG/AMS Functional Test Plan

Date: 2005-02-04T10:22:37.360
User: ngasmgr
Version: v2.3.3Beta3/2005-02-02T13:38:35


Test Suite: ngamsRetrieveCmdTest

Description:

    Synopsis:
    Exercise the RETRIEVE Command.

    Description:
    The purpose of the Test Suite is to exercise the RETRIEVE Command under
    normal and abnormal conditions.

    The nominal case, where a file is retrieved from a node where it is
    residing is tested, but also the proxy mode where a node is acting as
    proxy and retrieving the file from another node is tested. Also the
    HTTP re-direction mode for retrieving is tested.

    Missing Test Cases:
    - Review this entire Test Suite and add important, missing Test Cases.
    -IMPL:
        - Test RETRIEVE?internal=&host_id=
        - Test RETRIEVE?internal=
        - TEST RETRIEVAL OF T-FITS FILES VIA A PROXY!
        - Test HTTP redirection.
        - Test RETRIEVE + processing via DPPI.
        - Test RETRIEVE from MNU/HTTP redirection.
        - Test authorization.
        - Test that the scheme for determining the best suitable file is
          working (create dummy entries in ngas_files for files e.g. on
          other domains etc.).
    

Test Case: test_RetrieveCmd_7

Description:

        Synopsis:
        Rerieve file from cluster, Online/Suspended and Offline files
        contained in archive (DFS02115).
        
        Description:
        The purpose of the test is to verify that the problem described in
        DFS02115 cannot occur. The problem here was that there were Online
        and Offline files in the archive and thus the cross-checking of the
        number of files for which info was queried from the NGAS DB (in
        ngamsDb.dumpFileInfo()), detected erroneously a discrepancy.

        Expected Result:
        The RETRIEVE Command should execute successfully. The check of the
        possible files matching the query should not produce and error.

        Test Steps:
        - Prepare simulated cluster with three nodes. One node should
          suspend itself after few seconds.
        - Archive the same file onto the three nodes 3 times.
        - Make one node exit.
        - Wait till the node suspending itself has suspended itself.
        - Send RETRIEVE Command to retrieve a file given by its File ID.
        - Check that response from the server is OK.
        - Send RETRIEVE Command to retrieve a file given by its File ID
          and its File Version.
        - Check that the response from the server is OK.
        - Send RETRIEVE Command to retrieve a file given by the Disk ID,
          the File ID and the File Version.
        - Check that the response from the server is OK.

        Remarks:
        ...