aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test922
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-10-25 19:48:48 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-10-25 19:44:03 +0100
commitd24b7953c2132a72f50024dac962364390d96c1a (patch)
treede8335bd5eb0615e00f014fe10e1e009b91b2646 /tests/data/test922
parent13db74ffc3543467bd7adf8d6870d5221f343e00 (diff)
tests: Added SMTP OAUTH2 authentication with initial response test
Diffstat (limited to 'tests/data/test922')
-rw-r--r--tests/data/test92253
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/data/test922 b/tests/data/test922
new file mode 100644
index 000000000..b8dba1bf6
--- /dev/null
+++ b/tests/data/test922
@@ -0,0 +1,53 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+SMTP AUTH OAUTH2 SASL-IR
+RFC4954
+RFC6749
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<servercmd>
+AUTH XOAUTH2
+REPLY AUTH 235 Authenticated
+</servercmd>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+SMTP OAUTH2 authentication with initial response
+ </name>
+<stdin>
+mail body
+</stdin>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/922 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO 922
+AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+QUIT
+</protocol>
+<upload>
+mail body
+.
+</upload>
+</verify>
+</testcase>