Zihang Chen
195393bf41
Create package conf where rules and hooks are put
...
create mode 100644 testenv/conf/__init__.py
create mode 100644 testenv/conf/authentication.py
create mode 100644 testenv/conf/expect_header.py
create mode 100644 testenv/conf/expected_files.py
create mode 100644 testenv/conf/expected_ret_code.py
create mode 100644 testenv/conf/files_crawled.py
create mode 100644 testenv/conf/hook_sample.py
create mode 100644 testenv/conf/local_files.py
create mode 100644 testenv/conf/reject_header.py
create mode 100644 testenv/conf/response.py
create mode 100644 testenv/conf/rule_sample.py
create mode 100644 testenv/conf/send_header.py
create mode 100644 testenv/conf/server_conf.py
create mode 100644 testenv/conf/server_files.py
create mode 100644 testenv/conf/urls.py
create mode 100644 testenv/conf/wget_commands.py
2014-06-07 16:34:39 +02:00
Zihang Chen
42e482ad99
Create package exc and move TestFailed to exc
...
create mode 100644 testenv/exc/__init__.py
create mode 100644 testenv/exc/test_failed.py
2014-06-07 16:34:39 +02:00
Zihang Chen
31e5f33b5e
From WgetTest.py move WgetFile to misc
...
create mode 100644 testenv/misc/wget_file.py
2014-06-07 16:34:39 +02:00
Zihang Chen
422171da81
Create package misc, move ColourTerm.py to misc
...
delete mode 100644 testenv/ColourTerm.py
create mode 100644 testenv/misc/__init__.py
create mode 100644 testenv/misc/colour_terminal.py
2014-06-07 16:34:38 +02:00
Darshit Shah
b31e6e4674
Add support for HTTPS Servers
2014-01-03 20:32:06 +01:00
Darshit Shah
b828a6e4a7
Sleep for n seconds before calling Wget Executable
...
This commit adds support for a new Environment Variable, SERVER_WAIT
which if set will cause the script to sleep for SERVER_WAIT seconds
before calling the wget executable. During this period, the custom
HTTP/HTTPS/FTP servers are all set up and running and can be used
for any other purposes. This feature is often used when a separate
executable must be used for testing apart from the one at src/wget
2014-01-03 20:32:06 +01:00
Darshit Shah
7effa90359
Support programatically setting Handler class variables
2014-01-03 20:32:06 +01:00
Darshit Shah
7e1f4c1abc
Correct the call to stop_HTTP_Server
2014-01-03 20:32:06 +01:00
Darshit Shah
f616192dfd
Improve error handling when wget executable isn't available
2014-01-03 20:32:06 +01:00
Darshit Shah
31868fed6c
Split large function to improve readability and extensibility
2014-01-03 20:32:06 +01:00
Darshit Shah
b703633715
Add feature that allows to ensure that Wget correctly crawls the website in recursive mode
2013-09-16 21:06:20 +05:30
Darshit Shah
d4d0e6378c
Support substring replace in File Contents too
2013-09-16 21:06:20 +05:30
Darshit Shah
8b1a9b6de7
Extend Functionality to support spawning multiple servers
2013-09-16 21:06:20 +05:30
Darshit Shah
e84192a8d3
Use the provided calls to shutdown server instead of rewriting it
2013-09-10 12:27:00 +05:30
Darshit Shah
cb94e52d0f
Slight code cleanup. Remove unused code
2013-09-07 17:33:54 +05:30
Darshit Shah
886ac1a89b
Shift to new Threading Model from Multiprocessing model
...
This eliminated the use of Global Variables from the HTTPServer module
and uses the more correct threading.Threads module to spawn a new
server. However, on multi-core systems, the performance may deteriorate
when too many servers are launched due to CPython implementation of GIL.
Many artefacts from the old model still remain, sometimes as commenst,
else as executable code. These will be cleaned up soon
2013-09-07 17:33:54 +05:30
Darshit Shah
48644f174e
Print diff when file contents don't match
2013-09-07 17:33:53 +05:30
Darshit Shah
50b4f0c72b
The rules need not be a defaultdict.
2013-09-07 17:33:53 +05:30
Darshit Shah
dccc154a0e
Introducing Python based Test Environment
2013-09-07 17:33:53 +05:30