Adds option to create large random files as test submissions #7161
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Adds
--random-file-size
option toloaddata.py
. If set to 0, default file creation behaviour is followed. If set to N > 0, files containing random data NKB will be created instead.Adds safety ignores as per freedomofpress/fpf-misc-resources#43
Testing
make dev
and confirm it completes successfully, creating the usual test journalists and sourcesdocker exec -it securedrop-dev-0 bash
./loaddata.py --random-file-size 100
completes successfully/var/lib/securedrop/store
Deployment
N/A dev only.