Versions Compared

Key

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

...

  1. Put a new file to a single pillar
      1. bash bin/bitmag.sh put-file -c integrationtest2 -f bin/massupload.sh -i file-ids-test-v1.4-410.1.txt
  2. Request listing of all files.
    1. Verify that the new file is present on all pillars and that they agree on its size.
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i file-ids-test-v1.4-410.1.txt
  3. Delete the file on one or more pillars.
      1. bash bin/bitmag.sh delete-file -c integrationtest2 -i file-ids-test-v1.4-4.110.txt -p kbpillar2 -C 598c634a8d589b44339cdbffcad1ad44
  4. Request listing of all files.
    1. Verify that the pillar count for the file reflects the number of deletions, and that the original set of files is still listed.
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i file-ids-test-v1.4-4.110.txt
  5. Delete the new file on the remaining pillars.
    1. Verify that the all the pillars only list the original files.
      1. bash bin/bitmag.sh delete-file -c integrationtest2 -i file-ids-test-v1.4-4.110.txt -p checksum2 -C 598c634a8d589b44339cdbffcad1ad44
      2. bash bin/bitmag.sh delete-file -c integrationtest2 -i file-ids-test-v1.4-4.110.txt -p reference2 -C 598c634a8d589b44339cdbffcad1ad44
      3. bash bin/bitmag.sh delete-file -c integrationtest2 -i file-ids-test-v1.4-410.1.txt -p sbtape2 -C 598c634a8d589b44339cdbffcad1ad44
      4. bash bin/bitmag.sh delete-file -c integrationtest2 -i file-ids-test-v1.4-410.1.txt -p sbdisk1 -C 598c634a8d589b44339cdbffcad1ad44
      5. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i file-ids-test-v1.4-4.110.txt
Bad arguments
  1. Try getting all file ids from a non-existing collection
    1. Should fail with an error telling the existing collections.
      1. bash bin/bitmag.sh get-file-ids -c integrationtest3
  2. Try getting the file ids from a non-existing pillar
    1. Should fail with an appropriate error containing the existing pillars
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -p I_Am_Not_A_Pillar
  3. Try getting a file from a pillar in a different collection
    1. Should fail with an appropriate error containing the existing pillars for the collection
      1. bash bin/bitmag.sh get-file-ids -c netarkiv -p reference2

...