1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00:00
mailinabox/tests/system-setup/populate
downtownallday 00fc94d3c1 Merge remote-tracking branch 'fspoettel/admin-panel-2fa' into totp
# Conflicts:
#	management/auth.py
#	management/daemon.py
#	management/mailconfig.py
#	setup/mail-users.sh
2020-09-28 23:25:16 -04:00
..
basic-data.sh 1. Better code organization & simplify 2020-06-19 12:12:49 -04:00
basic-populate.sh 1. Better code organization & simplify 2020-06-19 12:12:49 -04:00
basic-verify.sh 1. Better code organization & simplify 2020-06-19 12:12:49 -04:00
README.txt 1. Better code organization & simplify 2020-06-19 12:12:49 -04:00
totpuser-data.sh Merge remote-tracking branch 'fspoettel/admin-panel-2fa' into totp 2020-09-28 23:25:16 -04:00
totpuser-populate.sh Merge remote-tracking branch 'fspoettel/admin-panel-2fa' into totp 2020-09-28 23:25:16 -04:00
totpuser-verify.sh Merge remote-tracking branch 'fspoettel/admin-panel-2fa' into totp 2020-09-28 23:25:16 -04:00

This directory contains scripts used to populate a MiaB installation
with known values, and then subsequently verify that MiaB continues to
operate poperly after an upgrade or setup mod change.

Each "named" populate set of scripts should contain at least two
shell scripts:

   1. <name>-populate.sh  : populates the installation
   2. <name>-verify.sh    : verifies operation after upgrade

The system-setup/* scripts run the populate script, and the test
runner's 'upgrade' test suite runs the verify script.

These scripts are run, not sourced.


Expected script output and return value:

   1. All debug output must go to stderr
   2. Result messages must be sent to stdout (a single line, preferrably)
   3. Return 0 if successfully passed verification
   4. Return non-zero if failed verification

The working directory for <name>-populate.sh is the Mail-in-a-Box root
directory.

The working directory for <name>-verify.sh is 'tests' (because the
test runner always changes the working directory there to limit
contamination of the source tree). Use MIAB_DIR and ASSETS_DIR, if
needed.