Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Upload a new file with a unique id for this test, and get the checksum for the file
      •  bash bin/bitmag.sh put-file -c integrationtest2 -f bin/massupload.sh -i replace_test_3_2015_02_182022.xml
      •  

        md5sum bin/massupload.sh

      1. 598c634a8d589b44339cdbffcad1ad44  bin/massupload.sh

  2. Upload a file to the dav-server (or find a file on the dav-server), and retrieve its checksum
      1. 940a51b250e7aa82d8e8ea31217ff267  test.txt

  3. Replace the file with the URL:
      •  bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_3_2015_02_182022.xml -u http://sandkasse-01.kb.dk/dav/test.txt -r 940a51b250e7aa82d8e8ea31217ff267 -C 598c634a8d589b44339cdbffcad1ad44 -p sbtape2
  4. Validate that it has been changed:
      •  

        bash bin/bitmag.sh get-checksums -c integrationtest2 -i replace_test_3_2015_02_182022.xml

      1. Count:     Checksum:     Pillars:     FileID:

      2. 1     940a51b250e7aa82d8e8ea31217ff267     [sbtape2]     replace    replace_test_3_2015_02_182022.xml

      3. 4     598c634a8d589b44339cdbffcad1ad44     [kbpillar2, reference2, checksum2, sbdisk1]     replace    replace_test_3_2015_02_182022.xml

Failure scenarios

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.
      •  bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_1_2015_02_182022.xml -f conf/RepositorySettings.xml -C 3228f1d3684c39ed782af5f9e6aee1b1 -p reference2

...