]> granicus.if.org Git - curl/commitdiff
tests: Added tests for IMAP CREATE, DELETE and RENAME commands
authorSteve Holme <steve_holme@hotmail.com>
Fri, 30 Aug 2013 17:56:56 +0000 (18:56 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 30 Aug 2013 17:56:56 +0000 (18:56 +0100)
tests/data/Makefile.am
tests/data/test811 [new file with mode: 0644]
tests/data/test812 [new file with mode: 0644]
tests/data/test813 [new file with mode: 0644]

index 862b22e04f6cdc52a9b18e56d609ab99f2b07c34..38ac1670f76fd8e58989e4564deb2e57c025f669 100644 (file)
@@ -64,7 +64,7 @@ test700 test701 test702 test703 test704 test705 test706 test707 test708 \
 test709 test710 test711 test712 \
 \
 test800 test801 test802 test803 test804 test805 test806 test807 test808 \
-test809 test810 \
+test809 test810 test811 test812 test813 \
 \
 test850 test851 test852 test853 test854 test855 test856 test857 \
 \
diff --git a/tests/data/test811 b/tests/data/test811
new file mode 100644 (file)
index 0000000..9d94694
--- /dev/null
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+IMAP
+CREATE
+CUSTOMREQUEST
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+imap
+</server>
+ <name>
+IMAP CREATE Mailbox (CUSTOMREQUEST)
+ </name>
+ <command>
+imap://%HOSTIP:%IMAPPORT -u user:secret -X 'CREATE 811'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+A001 CAPABILITY\r
+A002 LOGIN user secret\r
+A003 CREATE 811\r
+A004 LOGOUT\r
+</protocol>
+</verify>
+</testcase>
diff --git a/tests/data/test812 b/tests/data/test812
new file mode 100644 (file)
index 0000000..586ed75
--- /dev/null
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+IMAP
+DELETE
+CUSTOMREQUEST
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+imap
+</server>
+ <name>
+IMAP DELETE Mailbox (CUSTOMREQUEST)
+ </name>
+ <command>
+imap://%HOSTIP:%IMAPPORT -u user:secret -X 'DELETE 812'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+A001 CAPABILITY\r
+A002 LOGIN user secret\r
+A003 DELETE 812\r
+A004 LOGOUT\r
+</protocol>
+</verify>
+</testcase>
diff --git a/tests/data/test813 b/tests/data/test813
new file mode 100644 (file)
index 0000000..f157919
--- /dev/null
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+IMAP
+RENAME
+CUSTOMREQUEST
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+imap
+</server>
+ <name>
+IMAP RENAME Mailbox (CUSTOMREQUEST)
+ </name>
+ <command>
+imap://%HOSTIP:%IMAPPORT -u user:secret -X 'RENAME 666 813'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+A001 CAPABILITY\r
+A002 LOGIN user secret\r
+A003 RENAME 666 813\r
+A004 LOGOUT\r
+</protocol>
+</verify>
+</testcase>