Child pages
  • PutFile tests

Versions Compared

Key

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

...

Put with returned checksums

  1. Put a file with including the a request of a salted checksum calculated on the pillar, which should be returned.
    1. Use the request-checksum-algorithm and request-checksum-salt arguments (-R and -S):
      1. bash bin/bitmag.sh put-file -c integrationtest2 -u http://sandkasse-01.kb.dk/dav/test.txt -i putFileTest_3_2015_02_20.txt -C 940a51b250e7aa82d8e8ea31217ff267 -S salt -R HMAC_SHA1
    2. Verify that the checksumpillar does not reply with a checksum.
    3. Verify that the checksumpillar and all the other pillars have the file
      1. bash bin/bitmag.sh get-file-ids -c integrationtest2 -i putFileTest_3_2015_02_20.txt
  2. Put a file with including the a request for checksum, but using both a salt and a non-salt algorithm.
    1. Use the request-checksum-algorithm and request-checksum-salt arguments (-R and -S):
      1. bash bin/bitmag.sh put-file -c integrationtest2 -u http://sandkasse-01.kb.dk/dav/test.txt -i putFileTest_4_2015_08_31.txt -C 940a51b250e7aa82d8e8ea31217ff267 -S salt -R SHA1
    2. Verify that the pillar all deliver the same checksum, and that it is identical to the previously test (where '-R HMAC_SHA1')
  3. Put a file with including the a request for checksum, but using a salt algorithm but not giving a salt.
    1. Use the request-checksum-algorithm and request-checksum-salt arguments (-R and no -S):
      1. bash bin/bitmag.sh put-file -c integrationtest2 -u http://sandkasse-01.kb.dk/dav/test.txt -i putFileTest_5_2015_08_31.txt -C 940a51b250e7aa82d8e8ea31217ff267 -R SHA1
    2. Verify that the pillar all deliver the same checksum, which must be different from the previously two tests.

...