aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ftptest.lua10
-rw-r--r--test/httptest.lua1
2 files changed, 0 insertions, 11 deletions
diff --git a/test/ftptest.lua b/test/ftptest.lua
index 37e3edc..f578c82 100644
--- a/test/ftptest.lua
+++ b/test/ftptest.lua
@@ -86,16 +86,6 @@ back, err = socket.ftp.get {
86} 86}
87check(not err and back == index, err) 87check(not err and back == index, err)
88 88
89io.write("testing home directory listing: ")
90expected = capture("ls -F /var/ftp | grep -v /")
91back, err = socket.ftp.get("ftp://localhost/")
92check(back and similar(back, expected), nil, err)
93
94io.write("testing directory listing: ")
95expected = capture("ls -F /var/ftp/pub | grep -v /")
96back, err = socket.ftp.get("ftp://localhost/pub;type=d")
97check(similar(back, expected))
98
99io.write("testing upload denial: ") 89io.write("testing upload denial: ")
100ret, err = socket.ftp.put("ftp://localhost/index.up.html;type=a", index) 90ret, err = socket.ftp.put("ftp://localhost/index.up.html;type=a", index)
101check(err, err) 91check(err, err)
diff --git a/test/httptest.lua b/test/httptest.lua
index d1f2b88..45d7e8d 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -70,7 +70,6 @@ io.write("testing request uri correctness: ")
70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" 70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
71local back, c, h = http.request("http://" .. host .. forth) 71local back, c, h = http.request("http://" .. host .. forth)
72if not back then fail(c) end 72if not back then fail(c) end
73print(back)
74back = url.parse(back) 73back = url.parse(back)
75if similar(back.query, "this+is+the+query+string") then print("ok") 74if similar(back.query, "this+is+the+query+string") then print("ok")
76else fail(back.query) end 75else fail(back.query) end