docker-mailserver/test/test_helper
Brennan Kinney 4b37cb5383
tests: Extract setup.sh cases to their own test file (#2629)
* chore: Create bare new test file `setup-cli.bats`

Bare minimum to setup a new test.

* chore: Transfer over relevant tests

* chore: `mail` container name to dynamic `${TEST_NAME}`

Only applied where it's relevant. Next commit will handle the config path correction.

* chore: Use `TEST_TMP_CONFIG` for referencing local config directory

Could technically use the existing function call. Some paths were using a hard-coded config location.

Both have been converted to `TEST_TMP_CONFIG` and related `grep` calls normalizing the quote mark usage, escaping doesn't seem necessary.

* tests(fix): Create container without providing extra args reference var

If a variable name (of an array) was not provided to reference, this would fail trying to reference `'`.
2022-06-07 22:07:09 +00:00
..
bats-assert@9f88b4207d Add bats asserts (#463) 2017-01-10 14:15:41 +01:00
bats-support@004e707638 Add bats asserts (#463) 2017-01-10 14:15:41 +01:00
common.bash tests: Extract setup.sh cases to their own test file (#2629) 2022-06-07 22:07:09 +00:00
tls.bash refactor: letsencrypt implicit location discovery (#2525) 2022-04-18 22:52:50 +12:00