OPSI.web2.test.test_vhost module¶
-
class
OPSI.web2.test.test_vhost.HostResource(children=[])¶ Bases:
OPSI.web2.test.test_server.BaseTestResource-
addSlash= True¶
-
child_bar(req)¶
-
render(req)¶
-
-
class
OPSI.web2.test.test_vhost.PathResource¶ Bases:
OPSI.web2.resource.LeafResource-
render(req)¶
-
-
class
OPSI.web2.test.test_vhost.RemoteAddrResource¶ Bases:
OPSI.web2.resource.LeafResource-
render(req)¶
-
-
class
OPSI.web2.test.test_vhost.TestAutoVHostRewrite(methodName='runTest')¶ Bases:
OPSI.web2.test.test_server.BaseCase-
setUp()¶
-
testFullyRewrite()¶
-
testLackingHeaders()¶
-
testMinimalHeaders()¶
-
testRemoteAddr()¶
-
testSendsRealHost()¶
-
-
class
OPSI.web2.test.test_vhost.TestURIRewrite(methodName='runTest')¶ Bases:
OPSI.web2.test.test_server.BaseCase-
testVHostURIRewrite()¶ Test that the hostname, path, and scheme are properly rewritten to defined domain
-
testVHostURIRewriteAsChild()¶ Test that a VHostURIRewrite can exist anywhere in the resource tree
-
testVHostURIRewriteWithChildren()¶ Test that the hostname is properly rewritten and that children are located
-
testVHostURIRewriteWithSibling()¶ Test that two VHostURIRewrite objects can exist on the same level of the resource tree.
-
-
class
OPSI.web2.test.test_vhost.TestVhost(methodName='runTest')¶ Bases:
OPSI.web2.test.test_server.BaseCase-
root= <OPSI.web2.vhost.NameVirtualHost object>¶
-
setUp()¶
-
testNameVirtualHost()¶ Test basic Name Virtual Host behavior 1) NameVirtualHost.default is defined, so an undefined NVH (localhost)
gets handled by NameVirtualHost.default- A defined NVH gets passed the proper host header and is handled by the proper resource
-
testNameVirtualHostWithChildren()¶ Test that children of a defined NVH are handled appropriately
-
testNameVirtualHostWithNesting()¶ Test that an unknown virtual host gets handled by the domain parent and passed on to the parent’s resource.
-
testNoDefault()¶
-
-
OPSI.web2.test.test_vhost.raw(d)¶