tests: remove legacy functions / tests (#2434)

This commit is contained in:
Casper 2022-03-02 14:55:17 +01:00 committed by GitHub
parent 4203afec3f
commit 6d1c740310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 0 additions and 466 deletions

View file

@ -1,13 +1,5 @@
load 'test_helper/common'
setup() {
run_setup_file_if_necessary
}
teardown() {
run_teardown_file_if_necessary
}
setup_file() {
local PRIVATE_CONFIG
PRIVATE_CONFIG="$(duplicate_config_for_container .)"
@ -29,11 +21,6 @@ teardown_file() {
docker rm -f mail_with_sdbox_format
}
@test "first" {
skip 'this test must come first to reliably identify when to run setup_file'
}
@test "checking dovecot mailbox format: sdbox file created" {
run docker exec mail_with_sdbox_format /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/existing-user1.txt"
assert_success
@ -41,8 +28,3 @@ teardown_file() {
# shellcheck disable=SC2016
repeat_until_success_or_timeout 30 docker exec mail_with_sdbox_format /bin/sh -c '[ $(ls /var/mail/localhost.localdomain/user1/mailboxes/INBOX/dbox-Mails/u.1 | wc -l) -eq 1 ]'
}
@test "last" {
skip 'this test is only there to reliably mark the end for the teardown_file'
}