Child pages
  • GetChecksums tests
Skip to end of metadata
Go to start of metadata
Describes the tests needed to validate the GetChecksums functionality.

A jupyter notebook implementation of the tests is attached here https://sbforge.org/download/attachments/7996024/GetChecksums%20Tests.ipynb?api=v2

Basic getChecksum
  1. Request the checksum of a file in the collection.
    1. The correct checksum should be returned by all the pillars.
getChecksum (salted)
  1. Request the salted checksum of a file in the collection
    1. The correct salted checksum should be returned by all the pillars (except the ChecksumPillar).
Missing file
  1. Request the checksum of a file that does not exist in the collection.
    1. No results should be returned.

Open issues

Key P Summary T Created
Loading...
Refresh

  • No labels

1 Comment

  1. I started by uploading the file 'bin/massupload.sh':

    ./bin/bitmag.sh put-file -c integrationtest1 -f bin/massupload.sh

    Then tested the basic getchecksum:

    ./bin/bitmag.sh get-checksums -c integrationtest1 -i massupload.sh

    Count:     Checksum:     Pillars:     FileID:

    4     598c634a8d589b44339cdbffcad1ad44     All     massupload.sh

    Then tested the getchecksum (salted):

    ./bin/bitmag.sh get-checksums -c integrationtest1 -i massupload.sh -R HMAC_MD5 -S 1000

    Count:     Checksum:     Pillars:     FileID:

    3     1f5996d5a3105ded96a0bac06f2dd316     All     massupload.sh

    Then finally tested missing file test (testing on the wrong file massupload.hs)

    ./bin/bitmag.sh get-checksums -c integrationtest1 -i massupload.hs

    Count:     Checksum:     Pillars:     FileID:

    Conclusion: all tests passed