Martin Schulze
6a9e5c0b62
Fix parallel development error: Use correct filename
2020-10-28 14:39:42 +01:00
Martin Schulze
7bdac2a910
Add tests for remaining test_helper functions
2020-10-20 00:50:19 +02:00
Martin Schulze
7ae4a73d3b
Fix tests failing when emails are not yet delivered
2020-10-19 23:33:54 +02:00
Georg Lauterbach
b948e01d39
re-trigger
...
wget through exception in the last test
2020-10-19 15:23:42 +02:00
Georg Lauterbach
ab1da1e3f3
small changes in common.bash
2020-10-19 14:10:32 +02:00
Georg Lauterbach
3f5c518950
mostly pwd
replacements and introduction of local keywords
2020-10-19 13:13:42 +02:00
Georg Lauterbach
a3acedaf19
fixing NAME
2020-10-19 12:12:13 +02:00
Georg Lauterbach
0da7ee0c1d
{} and uppercase
2020-10-18 15:44:01 +02:00
Martin Schulze
5030e8278c
Add tests for test/common.bash
2020-10-18 03:11:10 +02:00
Martin Schulze
e2bca5f850
Always use ${}
2020-10-18 02:08:11 +02:00
Martin Schulze
13963747b8
Fix missing newline at the end of file
2020-10-17 23:24:23 +02:00
Martin Schulze
96b3fd726a
Fix wait_for_service not working/hanging
2020-10-17 02:04:33 +02:00
Martin Schulze
c6c6fb708c
Avoid running tests while the services restart due to changes
2020-10-17 02:04:33 +02:00
Martin Schulze
05deaa3196
Move common functions into common.bash
2020-10-17 02:03:11 +02:00
Martin Schulze
53b930448d
Fix shellcheck issues
2020-10-17 02:03:11 +02:00
Martin Schulze
ca3ebc6c40
Improve error messages on problems
2020-10-17 02:03:11 +02:00
Martin Schulze
40dd3ae985
Implement and use run_until_success_or_timeout
2020-10-17 02:03:11 +02:00
Martin Schulze
a477040abb
Allow for seamless switching between old and new bats versions
2020-10-17 02:03:11 +02:00
Martin Schulze
0eb5bd0db9
Add --fatal-tests for early out in container waits
2020-10-17 02:02:46 +02:00
Martin Schulze
97806859b6
Fix private_config_path creating the wrong folder
2020-10-17 02:02:46 +02:00
Martin Schulze
5fef8a5b78
Give each container their own private config folder
2020-10-17 02:02:46 +02:00
Martin Schulze
06b137e5a8
Extract container mail_smtponly_without_config into test
2020-10-17 02:02:46 +02:00
Martin Schulze
d38ff4c122
Extrract disabled clamav tests into own file
2020-10-17 02:02:46 +02:00
Martin Schulze
604a65024e
Tests: extract mail_privacy into own .bats file
2019-10-08 23:11:27 +02:00
Martin Schulze
d9a48878c9
Print last 10 log lines on container setup timeout
2019-09-12 00:43:44 +02:00
Martin Schulze
3f9dd4180a
Fix setup_file marker logic
2019-09-12 00:42:04 +02:00
Erik Wramner
ca821fa51a
Merge pull request #1259 from martin-schulze-vireso/bugfix/no_error_printed_on_timeout
...
Fix missing error output from timeout
2019-09-11 14:04:04 +02:00
Martin Schulze
3513944d0a
Skip all tests of file after failed setup_file
2019-09-11 01:01:51 +02:00
Martin Schulze
8e6152ff2f
Fix missing error output from timeout
...
The exits would prevent the printing code from running
2019-09-11 00:02:16 +02:00
Erik Wramner
8f23cb7b35
Adjust wait for tests as they often fail
2019-09-05 21:35:23 +02:00
Martin Schulze
9d90df7064
Fix integer check
2019-08-17 20:58:33 +02:00
Martin Schulze
85fa5d242f
Fix setup/teardown_file to work in full suite run
...
The previous mechanism would only run them once for the whole suite
2019-08-17 20:58:33 +02:00
Martin Schulze
db160bd977
Extract default relay host test
...
centralize common test variables and functions
2019-08-17 20:58:33 +02:00
Thomas VIAL
69d3bac45e
Add bats asserts ( #463 )
...
* Added `bats-assert` for more detailed error, very useful locally and on Travis
* Moved `bats` to git submodule
Example:
```
not ok 52 checking opendkim: generator creates keys, tables and TrustedHosts
# (from function `assert_output' in file test/test_helper/bats-assert/src/assert.bash, line 239,
# in test file test/tests.bats, line 368)
# `assert_output 2' failed
#
# -- output differs --
# expected : 2
# actual : 4
# --
#
```
2017-01-10 14:15:41 +01:00