aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Shift SSL parameters into Pathoc classAldo Cortesi2013-01-041-2/+30
|
* Fix timeout test.Aldo Cortesi2012-11-181-1/+1
|
* Add disconnect specifiers to test suite.Aldo Cortesi2012-11-184-14/+14
| | | | Fixes hangs seen in test suite with recent versions of requetss.
* :u belongs on Request not ResponseAldo Cortesi2012-11-161-2/+3
|
* Add u User-agent shortcut.Aldo Cortesi2012-11-162-2/+21
| | | | | | | | Usage: 200:ua - Shortcut "a" for Android. 200:u"foo" - Or a value literal Shortcuts can be listed using the --show-uas argument to pathoc.
* Use .freeze to implement the -e explain flags for pathod and pathoc.Aldo Cortesi2012-10-312-1/+6
| | | | | This now prints (in pathoc) or logs (in pathod) a frozen specification that includes an expanded record of all generated values and locations.
* Fix generated values in request path specification.Aldo Cortesi2012-10-311-0/+5
|
* Add a .freeze() method to all components.Aldo Cortesi2012-10-311-45/+118
| | | | | This expands and freezes all randomly generated values. The message returned can be queried for a precise spec to reproduce the message.
* Add a .values method to messages, simplify a lot of stuff as a consequence.Aldo Cortesi2012-10-301-4/+4
|
* Make Message classes more self-contained.Aldo Cortesi2012-10-301-6/+6
|
* Extract .serve() method from message classes.Aldo Cortesi2012-10-301-11/+11
|
* Change preview_safe to return a safe copy of the current message.Aldo Cortesi2012-10-301-3/+3
|
* Simplify Request/Response class hierarchy.Aldo Cortesi2012-10-301-2/+1
|
* Add .spec methods for Request and Response objects.Aldo Cortesi2012-10-291-0/+15
|
* Add a .spec method to the token ABC, and to all tokens.Aldo Cortesi2012-10-291-30/+63
|
* Refactoring: canonical storage of a message is now the sequence of tokens ↵Aldo Cortesi2012-10-291-21/+9
| | | | | | | that defines it. We use a set of accessor properties to ease access to tokens. We can now ditch the .accept() methods.
* Cleaup, some more ABCs.Aldo Cortesi2012-10-291-3/+3
|
* Change response spec format to code[:features]Aldo Cortesi2012-10-282-8/+7
| | | | Reason message is now specified as just another feature with the "m" mnemonic.
* Cleaup, ABC for Value classes.Aldo Cortesi2012-10-282-2/+2
|
* Clean up .accept() signature.Aldo Cortesi2012-10-281-4/+0
|
* Split Code and Reason into separate _Component objects.Aldo Cortesi2012-10-281-7/+13
|
* .body and .method to lazy generator instantiation.Aldo Cortesi2012-10-281-11/+11
| | | | Also introduce a _Component ABC.
* Move message body to new lazy-generator scheme.Aldo Cortesi2012-10-283-4/+8
|
* Adjust serve() API.Aldo Cortesi2012-10-281-11/+11
|
* Remove check argument to serve() methods.Aldo Cortesi2012-10-272-25/+15
| | | | | | | Refactoring means we can now do this without a callback. Also introduce the maximum_length method that estimates the max possible message length.
* Major refactoring towars separate representation of expressions and ↵Aldo Cortesi2012-10-271-6/+6
| | | | request/response service.
* Unit test suite love: 100% coverageAldo Cortesi2012-10-255-1/+30
| | | | Also start figuring out how to sanitize binary data in the JSON API.
* Start moving policy checks to service-time, rather than parse-time.Aldo Cortesi2012-10-251-48/+35
|
* Extend Action and Value classesAldo Cortesi2012-10-241-59/+121
| | | | | | - Values now know how to print their own specs - Actions now know how to print their own specs - Actions have a resolve_offset method that resolves relative and random offsets.
* Start making Action objects more sophisticated.Aldo Cortesi2012-10-051-3/+15
|
* Remove actions log and explain, preparing for a more sophisticated take on this.Aldo Cortesi2012-10-051-5/+1
|
* rparse.py -> language.pyAldo Cortesi2012-10-051-100/+100
|
* Add -q and -r flags to pathod, logging request and respnose bytes.Aldo Cortesi2012-10-011-0/+2
| | | | | | | - These flags also mean that a bytes log is included in the internal log buffer. - There's an -x flag to turn on hex dump output in the text logs (does not affect the log buffer).
* Add timeout argument to Pathod, and matching -t command-line option.Aldo Cortesi2012-10-012-1/+12
|
* Add pathoc -T to ignore timeouts.Aldo Cortesi2012-09-281-1/+2
| | | | Also move -c to -C for consistency.
* Add pathoc -c to specify a list of return codes to ignore.Aldo Cortesi2012-09-271-1/+8
|
* Refactor print_requests -> print_requestAldo Cortesi2012-09-261-8/+9
| | | | | - Change to handle one request at a time - Shift error handling around
* Response printingAldo Cortesi2012-09-261-13/+14
| | | | Options to output full response, as sniffed from the socket.
* Hex and verbatim output of requests.Aldo Cortesi2012-09-261-1/+6
| | | | | This works by sniffing traffic through the socket, so always gives us the exact traffic sent upstream.
* Stub out new output argument structure.Aldo Cortesi2012-09-261-6/+17
|
* Download page, MANIFEST.inAldo Cortesi2012-08-231-5/+0
|
* Testing examples and docs.Aldo Cortesi2012-07-301-5/+4
|
* Cleanup of libpathod.test, test example for front page.Aldo Cortesi2012-07-302-10/+10
|
* 100% test coverage.Aldo Cortesi2012-07-302-0/+7
|
* Add a --nohang flag that turns off pauses in response generation.Aldo Cortesi2012-07-262-1/+12
|
* Note that pauses are skipped during previews.Aldo Cortesi2012-07-251-1/+1
|
* Unit test about page.Aldo Cortesi2012-07-251-0/+4
|
* Nicer error for empty preview spec submission.Aldo Cortesi2012-07-251-0/+4
|
* Refine parse error message a bit.Aldo Cortesi2012-07-251-0/+5
|
* Refactor test.py, add unit tests for app.py corner case.Aldo Cortesi2012-07-252-6/+14
|