Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 29 lines (23 sloc) 0.706 kB
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
1 from base import *
2
3 MAGIC = "It works"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
4 CONF = """
8e7efc4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-9…
alobbs authored
5 vserver!1!rule!160!match = directory
6 vserver!1!rule!160!match!directory = /cgi-bin2
7 vserver!1!rule!160!handler = cgi
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
8 """
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
9
1e01a86 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2691 5dc97367-9…
alobbs authored
10 CGI_BASE = """#!/bin/sh
11 echo "Content-Type: text/plain"
12 echo
13 echo "%s"
14 """ % (MAGIC)
15
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
16 class Test (TestBase):
17 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored
18 TestBase.__init__ (self, __file__)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
19 self.name = "CGI with pathinfo"
20
21 self.request = "GET /cgi-bin2/test/parameter HTTP/1.0\r\n"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
22 self.conf = CONF
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
23 self.expected_content = MAGIC
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
24 self.expected_error = 200
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
25
26 def Prepare (self, www):
27 self.Mkdir (www, "cgi-bin2")
1e01a86 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2691 5dc97367-9…
alobbs authored
28 self.WriteFile (www, "cgi-bin2/test", 0755, CGI_BASE)
Something went wrong with that request. Please try again.