Commit graph

29 commits

Author SHA1 Message Date
Renato Alves
a6312198e5 Test: t.runError can now also be called by passing a single string to be split 2015-07-03 22:31:47 +01:00
Wilhelm Schuermann
9e20f83f24 Tests: Implement export() for task access 2015-05-28 10:09:02 +02:00
Wilhelm Schuermann
65b6a35ef5 Tests: Make self.t('add proj:"with space" foo') work 2015-05-08 18:19:37 +02:00
Wilhelm Schuermann
f6e04585ae Tests: Add simpler self.t("add foo +bar") syntax 2015-05-05 20:28:10 +02:00
Renato Alves
7fcb26f363 Tests: Increase timeout to 5 seconds 2015-04-26 15:28:51 +01:00
Renato Alves
180c382de2 Tests - Finer control on which binaries to look for on PATH
* It is now possible to control whether taskw and/or taskd are looked up
on the PATH by setting TASK_USE_PATH/TASKD_USE_PATH to "1"
2015-03-03 01:46:53 +00:00
Tomas Babej
75cf742a55 tests: Add taskrc_content property 2015-02-23 19:19:55 -05:00
Renato Alves
d1698eab2d Fix usage of taskd.trust=strict on the test suite
* This reverts commit 67cb30fdce.
* Code also now tests if taskd is listening on IPv4 or IPv6 interfaces.
2015-01-20 11:56:53 +00:00
Renato Alves
67cb30fdce Unittest - default to taskd.trust="ignore hostname"
* The currently available taskd testing certificates fail if
taskd.trust is set to strict. See also: TW-1519
2015-01-19 15:07:06 +00:00
Renato Alves
d261a38d17 Unittest - Enhanced support for testing hooks (wip)
* It is now possible to test:
  * Hook Input/Output on STDIN/STDOUT channels
  * Exit code of hook script
  * Execution count (how many times the hook was executed)
  * Timestamp execution (when was the hook executed - milisec resolution)
2014-11-02 00:01:06 +00:00
Renato Alves
efdb31fb90 Unittest - default to not merging stdout/stderr during tests
* Tests will now check that stderr is used for errors
* Tests were adjusted to reflect the API change
2014-10-20 14:01:21 +01:00
Renato Alves
bb060d5ff8 Unittest - Allow specifying custom timeout for slow commands.
* Useful when testing with big tasks (1000+ annotations) or sync
operations that take longer than 1 second (default)
2014-10-16 20:52:17 +01:00
Renato Alves
27f21d375b Unittest - Clarify documentation of runSuccess/runError 2014-10-09 13:16:47 +01:00
Renato Alves
72823a453f Unittest - Helpers to manage hook scripts during tests 2014-10-08 20:29:56 +01:00
Paul Beckingham
071cf55c00 Unit Tests
- Added a default 'hooks=off' to the basetest class, after it was discovered
  that the scan for runnable hooks takes non-trivial time.
2014-09-27 16:49:06 -04:00
Renato Alves
d9d3b47c31 Unittest - default to ../src/ as location for task/taskd binaries 2014-07-31 17:03:49 +01:00
Renato Alves
b58c6566af Unittest - Make client credentials available as a dictionary 2014-07-19 02:06:21 +01:00
Renato Alves
4c88726dab Unittest - Make taskd the first argument of Task()
* The most common case is to bind a client to a server and not
customizing the location of the task binary
2014-07-19 00:45:17 +01:00
Renato Alves
00ee5b2289 Unittest - Skip tests that use faketime if not available 2014-07-18 17:20:27 +01:00
Renato Alves
15795e514d Unittest - Implement faketime for use in taskw 2014-07-18 17:12:28 +01:00
Renato Alves
02683aecd7 Unittest - Make is easier to reset env vars of task and taskd 2014-07-18 14:01:04 +01:00
Renato Alves
72e8a73ae0 Unittest - Add prefixes to task and taskd temporary folders 2014-07-18 13:20:06 +01:00
Renato Alves
04f5f7e2a8 Unittest - exit code may be None if process failed to finish 2014-07-15 01:37:17 +01:00
Renato Alves
617183612c Unittest - Don't display "task diag" by default on error 2014-07-14 16:10:44 +01:00
Renato Alves
4ae56838e4 Unittest - Include "task diag" output on error
* If any command passed to runSuccess or runError returns an unexpected
exit code, the output of 'task diag' will be added to stdout/stderr.
2014-07-14 00:25:43 +01:00
Renato Alves
906ca1a4aa Unittest - docstring clarification
* Clarify how the alias is supposed to work in case readers are not
familiar with what __call__ does.
2014-07-13 23:10:16 +01:00
Renato Alves
6a28c2d175 UnitTest - Alias for runSuccess
* Use t() (given t = Task()) as an alias to t.runSuccess()
2014-07-13 23:09:23 +01:00
Renato Alves
ceaf9d3462 Unittest - Add a line break on last line of initial config 2014-07-13 23:09:00 +01:00
Renato Alves
715a414abd UnitTests
* Taskd and Taskw classes for testing are now available
 * Testing of server and client can now be performed.
 * The newer test wrappers will eventually replace the BaseTest class
2014-07-06 02:03:04 +01:00