mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
This patch adds a new integration test, which executes various small dialogs, to cover corner cases that are not well covered (according to our coverage report). For example, "EHLO" without domain, or invalid DATA. While we could do them via Go tests, this way is more realistic, and the tests are easier to write.
27 lines
728 B
Plaintext
27 lines
728 B
Plaintext
|
|
c tcp_connect localhost:1025
|
|
|
|
c <~ 220
|
|
c -> HELO localhost
|
|
c <~ 250
|
|
c -> MAIL FROM:<test@testy.com>
|
|
c <~ 250
|
|
|
|
c -> RCPT LALA: <>
|
|
c <- 500 unknown command
|
|
|
|
c -> RCPT TO:
|
|
c <~ 500
|
|
|
|
c -> RCPT TO:<pepe>
|
|
c <~ 501
|
|
|
|
c -> RCPT TO:<a@xn--->
|
|
c <- 501 malformed address (IDNA conversion failed)
|
|
|
|
c -> RCPT TO:<henryⅣ@testserver>
|
|
c <- 550 recipient invalid, please check the address for typos
|
|
|
|
c -> RCPT TO:<aaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaX@bbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbX>
|
|
c <- 501 address too long
|