]> granicus.if.org Git - curl/commitdiff
Added test case 1007 to test permission problem when uploading with TFTP
authorDan Fandrich <dan@coneharvesters.com>
Fri, 7 Sep 2007 20:05:20 +0000 (20:05 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 7 Sep 2007 20:05:20 +0000 (20:05 +0000)
(to validate bug #1790403).

CHANGES
tests/data/Makefile.am
tests/data/test1007 [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 08db9ad5dd3246a5bd1155a02c2a6ce212100480..7f9831b7555e7894063e381e8a24b3481a59c656 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Dan F (5 September 2007)
+- Added test case 1007 to test permission problem when uploading with TFTP
+  (to validate bug #1790403).
+
 Daniel S (5 September 2007)
 - Continued the work on a fix for #1779054
   (http://curl.haxx.se/bug/view.cgi?id=1779054). My previous fix from August
index a8c7691e524d87c4842ad173dd118641e375aa1d..87e7c581f9400bbfbc0b187f404a4914ae23c11e 100644 (file)
@@ -44,4 +44,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test409 test613 test614 test700 test701 test702 test704 test705 test703   \
  test706 test707 test350 test351 test352 test353 test289 test540 test354   \
  test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006    \
- test615
+ test615 test1007
diff --git a/tests/data/test1007 b/tests/data/test1007
new file mode 100644 (file)
index 0000000..5966ab3
--- /dev/null
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+TFTP
+TFTP WRQ
+FAILURE
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+tftp
+</server>
+ <name>
+TFTP send with invalid permission on server
+ </name>
+ <command>
+-T log/test1007.txt tftp://%HOSTIP:%TFTPPORT//invalid-file --trace-ascii log/traceit
+</command>
+<file name="log/test1007.txt">
+This data will not be sent
+</file>
+</client>
+
+#
+# Verify pseudo protocol after the test has been "shot"
+<verify>
+<errorcode>
+69
+</errorcode>
+<protocol>
+opcode: 2
+filename: /invalid-file
+mode: octet
+</protocol>
+</verify>
+</testcase>