Optionally include file attachments when generating server data with make dev
#5451
Labels
Hacktoberfest
Issues suitable for the annual Hacktoberfest organized by Digital Ocean
help wanted
Issues we would definitely appreciate volunteer help with
Description
To support freedomofpress/securedrop-client#1140 and make setting up dev servers more configurable in a scriptable way, I propose that we support adding document attachments when we run
make dev
in a predictable way that can be used in our functional tests.For our first iteration, the simplest thing to do would be to add a
hello.txt
attachment with the contents ofhello
, or something similar to this, across all sources in the data generated by thecreate_dev_data.py
script. If we add a new argument calledNUM_DOCS
then we could default to 0 or 1 for each source, and eventually add support to randomize configuration data if we don't want all sources to have files and we want contents to vary (for uses outside of functional tests). For now, it would be a huge improvement just to be able to add a doc atmake dev
time.The text was updated successfully, but these errors were encountered: