From a1348aa23cc08d7992326842152cde9737912d34 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 10 Mar 2013 18:45:24 +0000 Subject: email-tests: Renamed the POP3 tests to be in the range 850-857 Started segregating the email protocol tests, into their own protocol based ranges, in preparation of adding more e-mail related tests to the test suite. --- tests/data/Makefile.am | 5 ++--- tests/data/test800 | 48 ---------------------------------------- tests/data/test808 | 43 ------------------------------------ tests/data/test809 | 46 --------------------------------------- tests/data/test810 | 51 ------------------------------------------- tests/data/test811 | 44 ------------------------------------- tests/data/test812 | 46 --------------------------------------- tests/data/test813 | 46 --------------------------------------- tests/data/test815 | 59 -------------------------------------------------- tests/data/test850 | 48 ++++++++++++++++++++++++++++++++++++++++ tests/data/test851 | 43 ++++++++++++++++++++++++++++++++++++ tests/data/test852 | 46 +++++++++++++++++++++++++++++++++++++++ tests/data/test853 | 51 +++++++++++++++++++++++++++++++++++++++++++ tests/data/test854 | 44 +++++++++++++++++++++++++++++++++++++ tests/data/test855 | 46 +++++++++++++++++++++++++++++++++++++++ tests/data/test856 | 46 +++++++++++++++++++++++++++++++++++++++ tests/data/test857 | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 17 files changed, 385 insertions(+), 386 deletions(-) delete mode 100644 tests/data/test800 delete mode 100644 tests/data/test808 delete mode 100644 tests/data/test809 delete mode 100644 tests/data/test810 delete mode 100644 tests/data/test811 delete mode 100644 tests/data/test812 delete mode 100644 tests/data/test813 delete mode 100644 tests/data/test815 create mode 100644 tests/data/test850 create mode 100644 tests/data/test851 create mode 100644 tests/data/test852 create mode 100644 tests/data/test853 create mode 100644 tests/data/test854 create mode 100644 tests/data/test855 create mode 100644 tests/data/test856 create mode 100644 tests/data/test857 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index a50bc6043..8a81dd09c 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -56,9 +56,8 @@ test623 test624 test625 test626 test627 test628 test629 test630 test631 \ test632 test633 test634 test635 test636 test637 test638 test639 \ test700 test701 test702 test703 test704 test705 test706 test707 test708 \ test709 test710 \ -test800 test801 test802 \ -test803 test804 test805 test806 test807 test808 test809 test810 test811 \ -test812 test813 test814 test815 \ +test801 test802 test803 test804 test805 test806 test807 test814 \ +test850 test851 test852 test853 test854 test855 test856 test857 \ test1000 test1001 test1002 test1003 test1004 test1005 \ test1006 test1007 test1008 test1009 test1010 test1011 test1012 test1013 \ test1014 test1015 test1016 test1017 test1018 test1019 test1020 test1021 \ diff --git a/tests/data/test800 b/tests/data/test800 deleted file mode 100644 index 2b7d057aa..000000000 --- a/tests/data/test800 +++ /dev/null @@ -1,48 +0,0 @@ - - - -POP3 -RETR - - - -# -# Server-side - - -From: me@somewhere -To: fake@nowhere - -body - --- - yours sincerely - - - -# -# Client-side - - -pop3 - - -POP3 RETR - - -pop3://%HOSTIP:%POP3PORT/800 -u user:secret - - - -# -# Verify data after the test has been "shot" - - -CAPA -USER user -PASS secret -RETR 800 -QUIT - - - diff --git a/tests/data/test808 b/tests/data/test808 deleted file mode 100644 index 9027a5ab9..000000000 --- a/tests/data/test808 +++ /dev/null @@ -1,43 +0,0 @@ - - - -POP3 -LIST - - - -# -# Server-side - - -# include the '.\r\n' 3-byte trailer to end the transfer poperly! -REPLY LIST +OK 808 100\r\n. - - - -# -# Client-side - - -pop3 - - -POP3 LIST one message - - -pop3://%HOSTIP:%POP3PORT/808 -l -u user:secret - - - -# -# Verify data after the test has been "shot" - - -CAPA -USER user -PASS secret -LIST 808 -QUIT - - - diff --git a/tests/data/test809 b/tests/data/test809 deleted file mode 100644 index ffa9b3331..000000000 --- a/tests/data/test809 +++ /dev/null @@ -1,46 +0,0 @@ - - - -POP3 -LIST -FAILURE - - - -# -# Server-side - - -REPLY LIST -ERR no such message - - - -# -# Client-side - - -pop3 - - -POP3 LIST invalid message - - -pop3://%HOSTIP:%POP3PORT/809 -l -u user:secret - - - -# -# Verify data after the test has been "shot" - - -56 - - -CAPA -USER user -PASS secret -LIST 809 -QUIT - - - diff --git a/tests/data/test810 b/tests/data/test810 deleted file mode 100644 index 934837f64..000000000 --- a/tests/data/test810 +++ /dev/null @@ -1,51 +0,0 @@ - - - -POP3 -LIST - - - -# -# Server-side - -# We use SLOWDOWN to really exercise the end-of-body parsing over multiple -# packets - -SLOWDOWN - -# When doing LIST, we get the default list output hard-coded in the test -# POP3 server - -1 100 -2 4294967400 -4 200 - - - -# -# Client-side - - -pop3 - - -POP3 LIST messages from *SLOW* server - - -pop3://%HOSTIP:%POP3PORT/ -u user:secret - - - -# -# Verify data after the test has been "shot" - - -CAPA -USER user -PASS secret -LIST -QUIT - - - diff --git a/tests/data/test811 b/tests/data/test811 deleted file mode 100644 index 074969a4f..000000000 --- a/tests/data/test811 +++ /dev/null @@ -1,44 +0,0 @@ - - - -POP3 -LIST - - - -# -# Server-side - - -REPLY LIST +OK but no messages\r\n. - - - - - -# -# Client-side - - -pop3 - - -POP3 LIST no messages available - - -pop3://%HOSTIP:%POP3PORT/ -u user:secret - - - -# -# Verify data after the test has been "shot" - - -CAPA -USER user -PASS secret -LIST -QUIT - - - diff --git a/tests/data/test812 b/tests/data/test812 deleted file mode 100644 index dbf40c491..000000000 --- a/tests/data/test812 +++ /dev/null @@ -1,46 +0,0 @@ - - - -POP3 -RETR -FAILURE - - - -# -# Server-side - - -REPLY RETR -ERR no such message - - - -# -# Client-side - - -pop3 - - -POP3 RETR invalid message - - -pop3://%HOSTIP:%POP3PORT/812 -u user:secret - - - -# -# Verify data after the test has been "shot" - - -56 - - -CAPA -USER user -PASS secret -RETR 812 -QUIT - - - diff --git a/tests/data/test813 b/tests/data/test813 deleted file mode 100644 index fac4aa0ef..000000000 --- a/tests/data/test813 +++ /dev/null @@ -1,46 +0,0 @@ - - - -POP3 -FAILURE - - - -# -# Server-side - - -REPLY PASS -ERR invalid login - - - -# -# Client-side - - -pop3 - - -POP3 invalid login - - -pop3://%HOSTIP:%POP3PORT/813 -u user:wrong - - - -# -# Verify data after the test has been "shot" - - -67 - -# -# The multi interface considers a broken "DO" request as a prematurely broken -# transfer and such a connection will not get a "QUIT" - -CAPA -USER user -PASS wrong - - - diff --git a/tests/data/test815 b/tests/data/test815 deleted file mode 100644 index 261887f9b..000000000 --- a/tests/data/test815 +++ /dev/null @@ -1,59 +0,0 @@ - - - -POP3 -RETR - - - -# -# Server-side - - -From: me@somewhere -To: fake@nowhere - -..body with a single dot first -...triple dots... - --- - yours sincerely - - -From: me@somewhere -To: fake@nowhere - -.body with a single dot first -..triple dots... - --- - yours sincerely - - - -# -# Client-side - - -pop3 - - -POP3 RETR with dot-prefixed line - - -pop3://%HOSTIP:%POP3PORT/815 -u user:secret - - - -# -# Verify data after the test has been "shot" - - -CAPA -USER user -PASS secret -RETR 815 -QUIT - - - diff --git a/tests/data/test850 b/tests/data/test850 new file mode 100644 index 000000000..2b7d057aa --- /dev/null +++ b/tests/data/test850 @@ -0,0 +1,48 @@ + + + +POP3 +RETR + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + +# +# Client-side + + +pop3 + + +POP3 RETR + + +pop3://%HOSTIP:%POP3PORT/800 -u user:secret + + + +# +# Verify data after the test has been "shot" + + +CAPA +USER user +PASS secret +RETR 800 +QUIT + + + diff --git a/tests/data/test851 b/tests/data/test851 new file mode 100644 index 000000000..9027a5ab9 --- /dev/null +++ b/tests/data/test851 @@ -0,0 +1,43 @@ + + + +POP3 +LIST + + + +# +# Server-side + + +# include the '.\r\n' 3-byte trailer to end the transfer poperly! +REPLY LIST +OK 808 100\r\n. + + + +# +# Client-side + + +pop3 + + +POP3 LIST one message + + +pop3://%HOSTIP:%POP3PORT/808 -l -u user:secret + + + +# +# Verify data after the test has been "shot" + + +CAPA +USER user +PASS secret +LIST 808 +QUIT + + + diff --git a/tests/data/test852 b/tests/data/test852 new file mode 100644 index 000000000..ffa9b3331 --- /dev/null +++ b/tests/data/test852 @@ -0,0 +1,46 @@ + + + +POP3 +LIST +FAILURE + + + +# +# Server-side + + +REPLY LIST -ERR no such message + + + +# +# Client-side + + +pop3 + + +POP3 LIST invalid message + + +pop3://%HOSTIP:%POP3PORT/809 -l -u user:secret + + + +# +# Verify data after the test has been "shot" + + +56 + + +CAPA +USER user +PASS secret +LIST 809 +QUIT + + + diff --git a/tests/data/test853 b/tests/data/test853 new file mode 100644 index 000000000..934837f64 --- /dev/null +++ b/tests/data/test853 @@ -0,0 +1,51 @@ + + + +POP3 +LIST + + + +# +# Server-side + +# We use SLOWDOWN to really exercise the end-of-body parsing over multiple +# packets + +SLOWDOWN + +# When doing LIST, we get the default list output hard-coded in the test +# POP3 server + +1 100 +2 4294967400 +4 200 + + + +# +# Client-side + + +pop3 + + +POP3 LIST messages from *SLOW* server + + +pop3://%HOSTIP:%POP3PORT/ -u user:secret + + + +# +# Verify data after the test has been "shot" + + +CAPA +USER user +PASS secret +LIST +QUIT + + + diff --git a/tests/data/test854 b/tests/data/test854 new file mode 100644 index 000000000..074969a4f --- /dev/null +++ b/tests/data/test854 @@ -0,0 +1,44 @@ + + + +POP3 +LIST + + + +# +# Server-side + + +REPLY LIST +OK but no messages\r\n. + + + + + +# +# Client-side + + +pop3 + + +POP3 LIST no messages available + + +pop3://%HOSTIP:%POP3PORT/ -u user:secret + + + +# +# Verify data after the test has been "shot" + + +CAPA +USER user +PASS secret +LIST +QUIT + + + diff --git a/tests/data/test855 b/tests/data/test855 new file mode 100644 index 000000000..dbf40c491 --- /dev/null +++ b/tests/data/test855 @@ -0,0 +1,46 @@ + + + +POP3 +RETR +FAILURE + + + +# +# Server-side + + +REPLY RETR -ERR no such message + + + +# +# Client-side + + +pop3 + + +POP3 RETR invalid message + + +pop3://%HOSTIP:%POP3PORT/812 -u user:secret + + + +# +# Verify data after the test has been "shot" + + +56 + + +CAPA +USER user +PASS secret +RETR 812 +QUIT + + + diff --git a/tests/data/test856 b/tests/data/test856 new file mode 100644 index 000000000..fac4aa0ef --- /dev/null +++ b/tests/data/test856 @@ -0,0 +1,46 @@ + + + +POP3 +FAILURE + + + +# +# Server-side + + +REPLY PASS -ERR invalid login + + + +# +# Client-side + + +pop3 + + +POP3 invalid login + + +pop3://%HOSTIP:%POP3PORT/813 -u user:wrong + + + +# +# Verify data after the test has been "shot" + + +67 + +# +# The multi interface considers a broken "DO" request as a prematurely broken +# transfer and such a connection will not get a "QUIT" + +CAPA +USER user +PASS wrong + + + diff --git a/tests/data/test857 b/tests/data/test857 new file mode 100644 index 000000000..261887f9b --- /dev/null +++ b/tests/data/test857 @@ -0,0 +1,59 @@ + + + +POP3 +RETR + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +..body with a single dot first +...triple dots... + +-- + yours sincerely + + +From: me@somewhere +To: fake@nowhere + +.body with a single dot first +..triple dots... + +-- + yours sincerely + + + +# +# Client-side + + +pop3 + + +POP3 RETR with dot-prefixed line + + +pop3://%HOSTIP:%POP3PORT/815 -u user:secret + + + +# +# Verify data after the test has been "shot" + + +CAPA +USER user +PASS secret +RETR 815 +QUIT + + + -- cgit v1.2.3