tests: Added POP3 graceful authentication cancellation tests
This commit is contained in:
@@ -70,7 +70,8 @@ test827 test828 test829 test830 test831 test832 \
|
|||||||
\
|
\
|
||||||
test850 test851 test852 test853 test854 test855 test856 test857 test858 \
|
test850 test851 test852 test853 test854 test855 test856 test857 test858 \
|
||||||
test859 test860 test861 test862 test863 test864 test865 test866 test867 \
|
test859 test860 test861 test862 test863 test864 test865 test866 test867 \
|
||||||
test868 test869 test870 test871 test872 test873 test874 test875 \
|
test868 test869 test870 test871 test872 test873 test874 test875 test876 \
|
||||||
|
test877 test878 \
|
||||||
\
|
\
|
||||||
test900 test901 test902 test903 test904 test905 test906 test907 test908 \
|
test900 test901 test902 test903 test904 test905 test906 test907 test908 \
|
||||||
test909 test910 test911 test912 test913 test914 test915 test916 test917 \
|
test909 test910 test911 test912 test913 test914 test915 test916 test917 \
|
||||||
|
|||||||
53
tests/data/test876
Normal file
53
tests/data/test876
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
POP3
|
||||||
|
POP3 AUTH CRAM-MD5
|
||||||
|
RFC1734
|
||||||
|
RFC2195
|
||||||
|
RFC5034
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
<servercmd>
|
||||||
|
AUTH CRAM-MD5
|
||||||
|
REPLY AUTH + Rubbish
|
||||||
|
REPLY * -ERR AUTH exchange cancelled by client
|
||||||
|
</servercmd>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
pop3
|
||||||
|
</server>
|
||||||
|
<features>
|
||||||
|
crypto
|
||||||
|
</features>
|
||||||
|
<name>
|
||||||
|
POP3 CRAM-MD5 graceful cancellation
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
pop3://%HOSTIP:%POP3PORT/876 -u user:secret
|
||||||
|
</command>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
# 67 - CURLE_LOGIN_DENIED
|
||||||
|
<errorcode>
|
||||||
|
67
|
||||||
|
</errorcode>
|
||||||
|
<protocol>
|
||||||
|
CAPA
|
||||||
|
AUTH CRAM-MD5
|
||||||
|
*
|
||||||
|
QUIT
|
||||||
|
</protocol>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
||||||
63
tests/data/test877
Normal file
63
tests/data/test877
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
POP3
|
||||||
|
POP3 AUTH NTLM
|
||||||
|
RFC1734
|
||||||
|
RFC5034
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
<servercmd>
|
||||||
|
AUTH NTLM
|
||||||
|
REPLY AUTH +
|
||||||
|
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
|
||||||
|
REPLY * -ERR AUTH exchange cancelled by client
|
||||||
|
</servercmd>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
pop3
|
||||||
|
</server>
|
||||||
|
<features>
|
||||||
|
NTLM
|
||||||
|
</features>
|
||||||
|
<name>
|
||||||
|
POP3 NTLM graceful cancellation
|
||||||
|
</name>
|
||||||
|
<setenv>
|
||||||
|
# we force our own host name, in order to make the test machine independent
|
||||||
|
CURL_GETHOSTNAME=curlhost
|
||||||
|
# we try to use the LD_PRELOAD hack, if not a debug build
|
||||||
|
LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
|
||||||
|
</setenv>
|
||||||
|
<command>
|
||||||
|
pop3://%HOSTIP:%POP3PORT/877 -u testuser:testpass
|
||||||
|
</command>
|
||||||
|
<precheck>
|
||||||
|
chkhostname curlhost
|
||||||
|
</precheck>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
# 67 - CURLE_LOGIN_DENIED
|
||||||
|
<errorcode>
|
||||||
|
67
|
||||||
|
</errorcode>
|
||||||
|
<protocol>
|
||||||
|
CAPA
|
||||||
|
AUTH NTLM
|
||||||
|
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
||||||
|
*
|
||||||
|
QUIT
|
||||||
|
</protocol>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
||||||
54
tests/data/test878
Normal file
54
tests/data/test878
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
POP3
|
||||||
|
POP3 AUTH DIGEST-MD5
|
||||||
|
RFC1734
|
||||||
|
RFC2831
|
||||||
|
RFC5034
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
<servercmd>
|
||||||
|
AUTH DIGEST-MD5
|
||||||
|
REPLY AUTH + Rubbish
|
||||||
|
REPLY * -ERR AUTH exchange cancelled by client
|
||||||
|
</servercmd>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
pop3
|
||||||
|
</server>
|
||||||
|
<features>
|
||||||
|
debug
|
||||||
|
crypto
|
||||||
|
</features>
|
||||||
|
<name>
|
||||||
|
POP3 DIGEST-MD5 graceful cancellation
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
pop3://%HOSTIP:%POP3PORT/878 -u user:secret
|
||||||
|
</command>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
# 67 - CURLE_LOGIN_DENIED
|
||||||
|
<errorcode>
|
||||||
|
67
|
||||||
|
</errorcode>
|
||||||
|
<protocol>
|
||||||
|
CAPA
|
||||||
|
AUTH DIGEST-MD5
|
||||||
|
*
|
||||||
|
QUIT
|
||||||
|
</protocol>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
||||||
Reference in New Issue
Block a user