mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
ci: move tests than can be run in parallel now (#3038)
This commit is contained in:
parent
66f3bbc062
commit
e6dee0f2f1
22 changed files with 2 additions and 1 deletions
23
test/tests/parallel/set3/container_configuration/time.bats
Normal file
23
test/tests/parallel/set3/container_configuration/time.bats
Normal file
|
@ -0,0 +1,23 @@
|
|||
load "${REPOSITORY_ROOT}/test/helper/common"
|
||||
load "${REPOSITORY_ROOT}/test/helper/setup"
|
||||
|
||||
BATS_TEST_NAME_PREFIX='[Timezone] '
|
||||
CONTAINER_NAME='dms-test_timezone'
|
||||
|
||||
function setup_file() {
|
||||
_init_with_defaults
|
||||
local CUSTOM_SETUP_ARGUMENTS=(--env TZ='Asia/Jakarta')
|
||||
_common_container_setup 'CUSTOM_SETUP_ARGUMENTS'
|
||||
}
|
||||
|
||||
function teardown_file() { _default_teardown ; }
|
||||
|
||||
@test "setting the time with TZ works correctly" {
|
||||
_run_in_container cat /etc/timezone
|
||||
assert_success
|
||||
assert_output 'Asia/Jakarta'
|
||||
|
||||
_run_in_container date '+%Z'
|
||||
assert_success
|
||||
assert_output 'WIB'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue