Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (25 sloc) 0.968 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 shouldn't inherit in this case"
4
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
5 CONF = """
8e7efc4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-9…
alobbs authored
6 vserver!1!rule!710!match = directory
7 vserver!1!rule!710!match!directory = /inherit2/dir1/dir2/dir3
8 vserver!1!rule!710!auth = plain
9 vserver!1!rule!710!auth!methods = basic
10 vserver!1!rule!710!auth!realm = Test
11 vserver!1!rule!710!auth!passwdfile = %s
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
12
8e7efc4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-9…
alobbs authored
13 vserver!1!rule!711!match = directory
14 vserver!1!rule!711!match!directory = /inherit2
15 vserver!1!rule!711!match!final = 0
16 vserver!1!rule!711!handler = file
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
17 """
18
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
19 class Test (TestBase):
20 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored
21 TestBase.__init__ (self, __file__)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
22 self.name = "Inherit dir config not reverse"
23 self.request = "GET /inherit2/dir1/test HTTP/1.0\r\n"
24 self.expected_error = 200
25 self.expected_content = MAGIC
26
27 def Prepare (self, www):
28 self.Mkdir (www, "inherit2/dir1/dir2/dir3")
29 fn = self.WriteFile (www, "inherit2/dir1/test", 0555, MAGIC)
30
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
31 self.conf = CONF % (fn)
Something went wrong with that request. Please try again.