Child pages
  • PutFile tests

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Attached jupyter
Excerpt

Describes the tests needed to validate the PutFile functionality.

The commands presented are just examples of what the actual command to test with could look like.

Warning

Note that a jupyter notebook implementing these tests have been attached


Basic put

  1. Put a file to all pillars
    1. Run put command on a file which is not present in the collection. (Check this by running bash bin/bitmag.sh get-file-ids -c integrationtest2 -i logback.xml) The response should be

      Code Block
      Failure: 4b8d96cf: GET_FILE for file logback.xml: FAILED: , Unable to continue operation, contributors unavailable.

       

      1. bash bin/bitmag.sh put-file -c integrationtest2 -f conf/logback.xml
    2. Verify that it is now present at all pillars, and that it has the same checksum at all pillars
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i logback.xml
      2. bash bin/bitmag.sh get-checksums -c integrationtest2 -i logback.xml
  2. Put a file with a different file-id to all pillars
    1. Run put command on a file and use the file-id parameter (-i)
      1. bash bin/bitmag.sh put-file -c integrationtest2 -f conf/logback.xml -i putFileTest_2015_02_20
    2. Verify that it is now present at all pillars, and that it has the same checksum at all pillars
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i putFileTest_2015_02_20
      2. bash bin/bitmag.sh get-checksums -c integrationtest2 -i putFileTest_2015_02_20
  3. Put a file by using an URL
    1. Use the URL and Checksum to put a file, already on the webdav server.
      1. bash bin/bitmag.sh put-file -c integrationtest2 -u http://sandkasse-01.kb.dk/dav/test.txt -i putFileTest_2_2015_02_20.txt -C 940a51b250e7aa82d8e8ea31217ff267
    2. Verify that it is now present at al pillars, with the requested checksum
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i putFileTest_2_2015_02_20.txt
      2. bash bin/bitmag.sh get-checksums -c integrationtest2 -i putFileTest_2_2015_02_20.txt

...

Children Display
excerpttrue
excerptTypesimple

Open issues

JIRA
serverSBForge
columnskey,priority,summary,type,created
maximumIssues20
jqlQueryproject = BITMAG AND resolution = Unresolved AND component = "putfile" ORDER BY priority DESC
serverId327e372c-baf0-3de4-afa1-7694d9fcf12b