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
82f44f303a
Fix a typo in Test-Proto.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
59a03f15dd
Add new configure option, --enable-race-checking
...
This commit adds a new configure option, --enable-race-checking
which is to be used exclusively for debugging. Also, conditionally
add tests to XFAIL_TESTS when Race Checking is enabled.
2013-12-04 20:45:44 +01:00
Giuseppe Scrivano
d9f1cd05c1
testenv: Remove Test--spider-r.py from XFAIL_TESTS
2013-10-14 00:23:41 +02:00
Giuseppe Scrivano
89024dda4f
testenv: fix make dist
2013-10-06 19:33:19 +02:00
Darshit Shah
7743384820
Update documentation to reflect changes in code
2013-09-17 03:15:01 +05:30
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
0758f47954
Add new test for recursive spider mode
2013-09-16 21:06:20 +05:30
Darshit Shah
43bb61b4e3
Smartly guess content type header
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
f5785003b1
Compatibility fix with multiple servers
...
We will not maintian two different interfaces as earlier decided.
Instead, a common, single interface will be maintained. Hence, the tests
must adhere to the same format expected of the Parallel Tests.
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
99659f3295
Improve Documentation
2013-09-10 12:26:34 +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
e74c2ec25e
Add new test for POST Requests
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
b6f9efe7b5
Add tests for Cookie support
2013-09-07 17:33:53 +05:30
Darshit Shah
4c9e6b4f71
Document pending work
2013-09-07 17:33:53 +05:30
Darshit Shah
e13bc90211
Add new test to ensure Content Disposition and Auth work together
2013-09-07 17:33:53 +05:30
Darshit Shah
60d1f4d1ad
Add new Test for Continue command
2013-09-07 17:33:53 +05:30
Darshit Shah
738b299419
Add test, Test-Head
2013-09-07 17:33:53 +05:30
Darshit Shah
9b9d16b2f3
Edit non-unique TEST_NAME variable
2013-09-07 17:33:53 +05:30
Darshit Shah
ae958db622
Minor optimizations to the way Server Rules are executed
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