...
- 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_2022.xml
-
md5sum bin/massupload.sh
598c634a8d589b44339cdbffcad1ad44 bin/massupload.sh
-
- Upload a file to the dav-server (or find a file on the dav-server), and retrieve its checksum
-
wget sandkasse-01.kb.dk/dav/test.txt
md5sum test.txt
d41d8cd98f00b204e9800998ecf8427e test.txt
-
- Replace the file with the URL:
-
bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_3_2022.xml -u http://sandkasse-01.kb.dk/dav/test.txt -r 940a51b250e7aa82d8e8ea31217ff267 -C d41d8cd98f00b204e9800998ecf8427e -p sbtape2
-
- Validate that it has been changed:
-
bash bin/bitmag.sh get-checksums -c integrationtest2 -i replace_test_3_2022.xml
Count: Checksum: Pillars: FileID:
1 940a51b250e7aa82d8e8ea31217ff267 [sbtape2] replace_test_3_2022.xml
4 d41d8cd98f00b204e9800998ecf8427e [kbpillar2, reference2, checksum2, sbdisk1] replace_test_3_2022.xml
-
...