Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (20 sloc) 0.72 kb
ae9d971 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 from base import *
2
3 MAGIC = "Allow From test 2"
4
b6c69ad Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
5 CONF = """
8e7efc4 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@1738 5dc97367-97f1...
alobbs authored
6 vserver!1!rule!740!match = directory
7 vserver!1!rule!740!match!directory = /allow2
8 vserver!1!rule!740!match!final = 0
9 vserver!1!rule!740!allow_from = 127.0.0.1,::1
b6c69ad Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
10 """
11
ae9d971 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
12 class Test (TestBase):
13 def __init__ (self):
bc8d926 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-97f1...
alobbs authored
14 TestBase.__init__ (self, __file__)
ae9d971 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
15 self.name = "Allow from test, allowed"
16 self.request = "GET /allow2/file HTTP/1.0\r\n"
17 self.expected_error = 200
18 self.expected_content = MAGIC
b6c69ad Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
19 self.conf = CONF
7e80a2f Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@2461 5dc97367-97f1...
alobbs authored
20 self.proxy_suitable = False
ae9d971 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
21
22 def Prepare (self, www):
23 self.Mkdir (www, "allow2")
24 self.WriteFile (www, "allow2/file", 0444, MAGIC)
25
Something went wrong with that request. Please try again.