diff options
-rw-r--r-- | tests/data/Makefile.inc | 12 | ||||
-rw-r--r-- | tests/data/test895 | 50 | ||||
-rw-r--r-- | tests/data/test896 | 38 |
3 files changed, 94 insertions, 6 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 7a048f01a..4ce9e7420 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -99,12 +99,12 @@ test809 test810 test811 test812 test813 test814 test815 test816 test817 \ test818 test819 test820 test821 test822 test823 test824 test825 test826 \ test827 test828 test829 test830 test831 test832 test833 test834 test835 \ test836 test837 test838 test839 test840 test841 test842 test843 test844 \ -test845 test846 test847 test848 test849 \ -test850 test851 test852 test853 test854 test855 test856 test857 test858 \ -test859 test860 test861 test862 test863 test864 test865 test866 test867 \ -test868 test869 test870 test871 test872 test873 test874 test875 test876 \ -test877 test878 test879 test880 test881 test882 test883 test884 test885 \ -test886 test887 test888 test889 test890 test891 test892 test893 test894 \ +test845 test846 test847 test848 test849 test850 test851 test852 test853 \ +test854 test855 test856 test857 test858 test859 test860 test861 test862 \ +test863 test864 test865 test866 test867 test868 test869 test870 test871 \ +test872 test873 test874 test875 test876 test877 test878 test879 test880 \ +test881 test882 test883 test884 test885 test886 test887 test888 test889 \ +test890 test891 test892 test893 test894 test895 test896 \ \ test900 test901 test902 test903 test904 test905 test906 test907 test908 \ test909 test910 test911 test912 test913 test914 test915 test916 test917 \ diff --git a/tests/data/test895 b/tests/data/test895 new file mode 100644 index 000000000..78d48c475 --- /dev/null +++ b/tests/data/test895 @@ -0,0 +1,50 @@ +<testcase> +<info> +<keywords> +IMAP +Clear Text +FETCH +--login-options +</keywords> +</info> + +# +# Server-side +<reply> +<data> +From: me@somewhere
+To: fake@nowhere
+
+body
+
+--
+ yours sincerely
+</data> +</reply> + +# +# Client-side +<client> +<server> +imap +</server> + <name> +IMAP with --login-options 'AUTH=*' + </name> + <command> +'imap://%HOSTIP:%IMAPPORT/895/;MAILINDEX=1' -u '"user:sec"ret{' --login-options 'AUTH=*' +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +A001 CAPABILITY
+A002 LOGIN "\"user" "sec\"ret{"
+A003 SELECT 895
+A004 FETCH 1 BODY[]
+A005 LOGOUT
+</protocol> +</verify> +</testcase> diff --git a/tests/data/test896 b/tests/data/test896 new file mode 100644 index 000000000..c972906a4 --- /dev/null +++ b/tests/data/test896 @@ -0,0 +1,38 @@ +<testcase> +<info> +<keywords> +IMAP +Clear Text +FETCH +--login-options +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +imap +</server> + <name> +IMAP with --login-options 'AUTH=dummy' (failing) + </name> + <command> +'imap://%HOSTIP:%IMAPPORT/895/;MAILINDEX=1' -u '"user:sec"ret{' --login-options 'AUTH=dummy' +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +# 3 == CURLE_URL_MALFORMAT +<errorcode> +3 +</errorcode> +</verify> +</testcase> |