Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Describes the tests needed to validate the Replace functionality.

Basic replace

  1. Upload a new file with a unique name for this test.
      1. bash bin/bitmag.sh put-file -c integrationtest2 -f conf/logback.xml -i replace_test_1_2015_02_18.xml
  2.  Replace the file at a pillar. The file should exist in the collection, providing the correct checksum for the existing file.
    1. First retrieve the checksum with GetChecksum (or just use md5sum on the local file):
      1. bash bin/bitmag.sh get-checksums -c integrationtest2 -i replace_test_1_2015_02_18.xml
      2. Count:     Checksum:     Pillars:     FileID:

      3. 5     3228f1d3684c39ed782af5f9e6aee1b0     All     replace_test_1_2015_02_18.xml

    2. Use the checksum to replace the file:
      1. bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_1_2015_02_18.xml -f conf/RepositorySettings.xml -C 3228f1d3684c39ed782af5f9e6aee1b0 -p sbtape2
    3. Verify that the pillars does not agree upon the checksum any more:
      1. bash bin/bitmag.sh get-checksums -c integrationtest2 -i replace_test_1_2015_02_18.xml
      2. Count:     Checksum:     Pillars:     FileID:

      3. 4     3228f1d3684c39ed782af5f9e6aee1b0     [kbpillar2, reference2, checksum2, sbdisk1]     replace_test_1_2015_02_18.xml

      4. 1     001a83061e71a22a3ac08759fcc082c9     [sbtape2]     replace_test_1_2015_02_18.xml

Bad old file checksum

  1. Attempt to replace a file, providing the wrong checksum for the old file.
    1. The file shouldn't be replaced, and the user should be informed that the operation failed due to the invalid checksum for the old file.

Missing file replace

  1. Attempt to replace a file that does not exist in the collection.
    1. The user should be informed that the operation failed because the file did't exist.

Replace with returned checksums

  1. Replace a file with including the a request of a salted checksum calculated on the pillars, which should be returned.
    1. Check that the file is replaced correctly, and that the returned checksums are correct and consistent across the responses returned by the pillars).

Open issues

key priority summary type created
Loading...
Refresh

  • No labels