mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-23 15:37:01 +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.
19 lines
281 B
Plaintext
19 lines
281 B
Plaintext
|
|
c tls_connect localhost:1465
|
|
|
|
c <~ 220
|
|
c -> EHLO localhost
|
|
c <... 250 HELP
|
|
|
|
c -> AUTH PLAIN something
|
|
c <~ 535
|
|
c -> AUTH PLAIN something
|
|
c <~ 535
|
|
c -> AUTH PLAIN something
|
|
c <~ 535
|
|
c -> AUTH PLAIN something
|
|
c <~ 535
|
|
c -> AUTH PLAIN something
|
|
c <~ 503 Too many attempts - go away
|
|
|