diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-03-30 14:55:27 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-03-30 15:13:31 +0100 |
commit | afbcfc4f46b9dfed2a62b765b48455d7b7d631a2 (patch) | |
tree | e639cb888bf530c4c9bffc3b13bd9eab5c24ff63 /tests/data/test938 | |
parent | b3e55bf98918158dacef5722fe85238a3c79db38 (diff) | |
download | curl-afbcfc4f46b9dfed2a62b765b48455d7b7d631a2.tar.gz |
tests: Added email unit tests to verify login credential connection re-use
Diffstat (limited to 'tests/data/test938')
-rw-r--r-- | tests/data/test938 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/tests/data/test938 b/tests/data/test938 new file mode 100644 index 000000000..5f7a715c8 --- /dev/null +++ b/tests/data/test938 @@ -0,0 +1,63 @@ +<testcase> +<info> +<keywords> +SMTP +SASL +SASL AUTH PLAIN +connection re-use +RFC4616 +RFC4954 +</keywords> +</info> + +# +# Server-side +<reply> +<servercmd> +AUTH PLAIN +REPLY AUTH 334 PLAIN supported +REPLY dXNlci5vbmUAdXNlci5vbmUAc2VjcmV0 235 Authenticated +REPLY dXNlci50d28AdXNlci50d28Ac2VjcmV0 235 Authenticated
+</servercmd> +</reply> + +# +# Client-side +<client> +<server> +smtp +</server> + <name> +SMTP multiple connection authentication + </name> +<stdin> +mail body
+</stdin> + <command> +smtp://%HOSTIP:%SMTPPORT/938001 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user.one:secret -T - -: smtp://%HOSTIP:%SMTPPORT/938002 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user.two:secret -T - +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +EHLO 938001
+AUTH PLAIN
+dXNlci5vbmUAdXNlci5vbmUAc2VjcmV0
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+QUIT
+EHLO 938002
+AUTH PLAIN
+dXNlci50d28AdXNlci50d28Ac2VjcmV0
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+QUIT
+</protocol> +<upload> +mail body
+.
+</upload> |