1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-10 01:17:19 +00:00

More systemctl reset attempts for travis

This commit is contained in:
downtownallday 2020-06-02 15:37:42 -04:00
parent c91012a338
commit 504de9874f
2 changed files with 5 additions and 2 deletions

View File

@ -81,7 +81,7 @@ mgmt_rest() {
} }
systemctl_reset() { systemctl_reset() {
local service="${1:-nsd.service}" local service="$1"
# for travis-ci: reset nsd to avoid "nsd.service: Start request # for travis-ci: reset nsd to avoid "nsd.service: Start request
# repeated too quickly", which occurs inside kick() of the # repeated too quickly", which occurs inside kick() of the
# management flask app when "system restart nsd" is called on # management flask app when "system restart nsd" is called on
@ -104,7 +104,7 @@ mgmt_create_user() {
mgmt_rest POST /admin/mail/users/add "email=$email" "password=$pass" mgmt_rest POST /admin/mail/users/add "email=$email" "password=$pass"
rc=$? rc=$?
if echo "$REST_OUTPUT" | grep "updated DNS:" >/dev/null; then if echo "$REST_OUTPUT" | grep "updated DNS:" >/dev/null; then
systemctl_reset systemctl_reset "nsd.service"
fi fi
return $rc return $rc
} }

View File

@ -202,6 +202,9 @@ test_intl_domains() {
suite_start "management-users" mgmt_start suite_start "management-users" mgmt_start
# for travis-ci
systemctl_reset "nsd.service"
test_mixed_case_users test_mixed_case_users
test_mixed_case_domains test_mixed_case_domains
test_intl_domains test_intl_domains