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.
28 lines
499 B
Plaintext
28 lines
499 B
Plaintext
|
|
c tls_connect localhost:1465
|
|
|
|
c <~ 220
|
|
c -> EHLO localhost
|
|
c <... 250 HELP
|
|
|
|
c -> AUTH SOMETHINGELSE
|
|
c <~ 534
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHlalala==
|
|
c <~ 535 error decoding AUTH response
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHVzZXJAdGVzdHNlcnZlcgB3cm9uZ3Bhc3N3b3Jk
|
|
c <~ 535 Incorrect user or password
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHVzZXJAdGVzdHNlcnZlcgBzZWNyZXRwYXNzd29yZA==
|
|
c <~ 235
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 503 You are already wearing that!
|