Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (20 sloc) 0.649 kB
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
1 from base import *
2
cefda56 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1766 5dc97367-9…
alobbs authored
3 HOST = "nn2"
4
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
5 CONF = """
cefda56 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1766 5dc97367-9…
alobbs authored
6 vserver!490!nick = %s
7 vserver!490!document_root = %s
8 vserver!490!rule!1!match = default
9 vserver!490!rule!1!handler = file
10 vserver!490!error_handler = error_nn
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
11 """
12
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
13 class Test (TestBase):
14 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored
15 TestBase.__init__ (self, __file__)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
16 self.name = "Broken NN"
17
cefda56 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1766 5dc97367-9…
alobbs authored
18 self.request = "GET /missing HTTP/1.1\r\n" + \
0684479 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1962 5dc97367-9…
alobbs authored
19 "Connection: Close\r\n" + \
cefda56 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1766 5dc97367-9…
alobbs authored
20 "Host: %s\r\n" % (HOST)
21 self.expected_error = 404
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
22
cefda56 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1766 5dc97367-9…
alobbs authored
23 def Prepare (self, www):
24 d = self.Mkdir (www, "nn2_root")
25 self.conf = CONF % (HOST, d)
Something went wrong with that request. Please try again.