mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-26 16:08:36 +02:00
Add a test script to reproduce a recent bug
This commit is contained in:
parent
d67de77558
commit
a92b2120b2
1 changed files with 13 additions and 0 deletions
13
test-snippets/email-dns-bug.rsc
Normal file
13
test-snippets/email-dns-bug.rsc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# How to reproduce
|
||||||
|
# 1. Configure email sending.
|
||||||
|
# 2. Turn off DNS servers and/or DoH server
|
||||||
|
# 3. Clear DNS cache
|
||||||
|
# 4. Run this script
|
||||||
|
# 5. On ideal conditions, we'd get "A friendly message" in the log
|
||||||
|
# 6. Due to bug, we get nothing we email sending fails upon DNS failure.
|
||||||
|
|
||||||
|
:do {
|
||||||
|
/tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject"
|
||||||
|
} on-error={ :log error "A friendly message" }
|
||||||
|
|
||||||
|
:log warn "This message should not be shown"
|
Loading…
Add table
Add a link
Reference in a new issue