From 876e66412a9ebdde8336631c07a02dda6b837b60 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Jun 2020 10:46:32 +0200 Subject: tests: add two simple tests for --login-options Test 895 and 896 - as a follow-up to a3e972313b Closes #5539 --- tests/data/Makefile.inc | 12 ++++++------ tests/data/test895 | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test896 | 38 +++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 tests/data/test895 create mode 100644 tests/data/test896 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 @@ + + + +IMAP +Clear Text +FETCH +--login-options + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + +# +# Client-side + + +imap + + +IMAP with --login-options 'AUTH=*' + + +'imap://%HOSTIP:%IMAPPORT/895/;MAILINDEX=1' -u '"user:sec"ret{' --login-options 'AUTH=*' + + + +# +# Verify data after the test has been "shot" + + +A001 CAPABILITY +A002 LOGIN "\"user" "sec\"ret{" +A003 SELECT 895 +A004 FETCH 1 BODY[] +A005 LOGOUT + + + 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 @@ + + + +IMAP +Clear Text +FETCH +--login-options + + + +# +# Server-side + + + +# +# Client-side + + +imap + + +IMAP with --login-options 'AUTH=dummy' (failing) + + +'imap://%HOSTIP:%IMAPPORT/895/;MAILINDEX=1' -u '"user:sec"ret{' --login-options 'AUTH=dummy' + + + +# +# Verify data after the test has been "shot" + +# 3 == CURLE_URL_MALFORMAT + +3 + + + -- cgit v1.2.1