remove cgi

This commit is contained in:
stubbfel
2015-03-31 22:06:24 +02:00
parent 63f3957e0d
commit 705876d6d5
17 changed files with 78 additions and 198 deletions

View File

@@ -0,0 +1,7 @@
<html>
<Title>Hello in HTML</Title>
<body>
<p>Hello There!</p>
<p><b>Hi There!</b></p>
</body>
</html>

8
example/request/test.xml Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="ISO8859-1" ?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

View File

@@ -0,0 +1,7 @@
<html>
<Title>Hello in HTMLA</Title>
<body>
<p>Hello There!</p>
<p><b>Hi There!</b></p>
</body>
</html>

View File

@@ -0,0 +1,7 @@
<html>
<Title>Hello in HTMLB</Title>
<body>
<p>Hello There!</p>
<p><b>Hi There!</b></p>
</body>
</html>

View File

@@ -0,0 +1,7 @@
<html>
<Title>Hello in HTMLC</Title>
<body>
<p>Hello There!</p>
<p><b>Hi There!</b></p>
</body>
</html>

View File

@@ -3,15 +3,40 @@ __author__ = 'dev'
from fake_services.service.webservice.fake_web_server_manager import FakeWebServerManager
config = {
"/1/a/3/foo/bar.php":
"/test":
[
{
"response_content_path": "cgi-bin/testA.html"
"response_content_path": "request/test.html"
}
],
"/test1":
[
{
"response_content_path": "request/testA.html"
}
],
"/test2":
[
{
"response_content_path": "request/testB.html"
}
],
"/test3":
[
{
"response_content_path": "request/testC.html"
}
],
"/test4":
[
{
"response_content_path": "request/test.xml"
}
]
}
server = FakeWebServerManager(server_port=80, requests_config=config)
server = FakeWebServerManager(server_port=8080, requests_config=config)
server.start_server()
#server.stop_server()