...
- Attempt to replace a file, providing the wrong checksum for the old file.
- The file shouldn't be replaced, and the user should be informed that the operation failed due to the invalid checksum for the old file.
bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_1_2022.xml -f conf/RepositorySettings.xml -C 3228f1d3684c39ed782af5f9e6aee1b1 -p reference2
- The file shouldn't be replaced, and the user should be informed that the operation failed due to the invalid checksum for the old file.
...
- Attempt to replace a file that does not exist in the collection.
- The user should be informed that the operation failed because the file did't exist.
bash bin/bitmag.sh replace-file -c integrationtest2 -i replace_test_NON_EXISTING_FILE.xml -f conf/RepositorySettings.xml -C 3228f1d3684c39ed782af5f9e6aee1b1 -p reference2
- The user should be informed that the operation failed because the file did't exist.
...